From: Shahbaz Youssefi <shabbyx@gmail.com>
To: Fei Ding <fdingiit@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: SIGSEGV after continue
Date: Thu, 28 May 2015 09:03:00 -0000 [thread overview]
Message-ID: <CALeOzZ_5fUtqAMWDGro7UUvvS=wyZv5H4AAJAVpqjEQ4unuNJA@mail.gmail.com> (raw)
In-Reply-To: <CAGmPkf+odifG_7f+CKAYz4EaRKwiNEawzw-afGxdLo-J1rvmXw@mail.gmail.com>
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.
prev parent reply other threads:[~2015-05-28 9:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-28 2:02 Fei Ding
2015-05-28 9:03 ` Shahbaz Youssefi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALeOzZ_5fUtqAMWDGro7UUvvS=wyZv5H4AAJAVpqjEQ4unuNJA@mail.gmail.com' \
--to=shabbyx@gmail.com \
--cc=fdingiit@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox