* SIGSEGV after continue
@ 2015-05-28 2:02 Fei Ding
2015-05-28 9:03 ` Shahbaz Youssefi
0 siblings, 1 reply; 2+ messages in thread
From: Fei Ding @ 2015-05-28 2:02 UTC (permalink / raw)
To: gdb
Hi all:
I'm using gdb-7.6 and gdbserver-7.6 of android-ndk-r10d to debug
native sharedlib (libxxx.so) on an arm android device. And I've found
that after I set a breakpoint on some sharedlib and continue running,
gdb tells me Program received signal SIGSEGV, Segmentation fault.
However, if I set no bps and just run it, there will be no problem.
What's more, I've test the same lib on another Linux, all good.
Unfortunately, I cannot list all the differences between these two
dev-environment, except one is Ubuntu 12 and another is Ubuntu 14.
Any thoughts is helpful, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SIGSEGV after continue
2015-05-28 2:02 SIGSEGV after continue Fei Ding
@ 2015-05-28 9:03 ` Shahbaz Youssefi
0 siblings, 0 replies; 2+ messages in thread
From: Shahbaz Youssefi @ 2015-05-28 9:03 UTC (permalink / raw)
To: Fei Ding; +Cc: gdb
Did you try looking at where SIGSEGV happens and whether it makes
sense or not? If you are accessing out of array bounds, or any other
reason for SIGSEGV, there are many reasons why it could remain
undetected.
A shortcut to debugging such cases is to run your program through `valgrind`.
On Thu, May 28, 2015 at 4:02 AM, Fei Ding <fdingiit@gmail.com> wrote:
> Hi all:
>
> I'm using gdb-7.6 and gdbserver-7.6 of android-ndk-r10d to debug
> native sharedlib (libxxx.so) on an arm android device. And I've found
> that after I set a breakpoint on some sharedlib and continue running,
> gdb tells me Program received signal SIGSEGV, Segmentation fault.
> However, if I set no bps and just run it, there will be no problem.
> What's more, I've test the same lib on another Linux, all good.
> Unfortunately, I cannot list all the differences between these two
> dev-environment, except one is Ubuntu 12 and another is Ubuntu 14.
>
> Any thoughts is helpful, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-28 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 2:02 SIGSEGV after continue Fei Ding
2015-05-28 9:03 ` Shahbaz Youssefi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).