This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 00/23] All-stop on top of non-stop
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 10 Apr 2015 09:50:50 +0100
- Subject: Re: [PATCH v2 00/23] All-stop on top of non-stop
- Authentication-results: sourceware.org; auth=none
- References: <1428410990-28560-1-git-send-email-palves at redhat dot com> <86mw2jvtqk dot fsf at gmail dot com> <55250048 dot 9050801 at redhat dot com> <86h9sov0iv dot fsf at gmail dot com>
On 04/10/2015 09:40 AM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
>
>>> 3, on native,
>>> -PASS: gdb.base/info-shared.exp: continue to breakpoint: library function #4
>>> +FAIL: gdb.base/info-shared.exp: continue to breakpoint: library function #4
>>>
>>> continue^M
>>> Continuing.^M
>>> ^M
>>> Program received signal SIGSEGV, Segmentation fault.^M
>>> 0x40021564 in ?? () gdb/testsuite/gdb.base/info-shared-solib1.so^M
>>> (gdb) FAIL: gdb.base/info-shared.exp: continue to breakpoint:
>>> library function #4
>>
>> Most of the SIGSEGV/SIGILL/SIGBUS inferior crashes I saw were
>> due to a displaced stepping bug. Force disabling displaced
>> stepping with "set displaced off" usually "fixes" it. The next
>> step I would usually take would be to run the test manually, with
>> "set debug infrun 1" + "set debug displaced 1" + "set debug lin-lwp 1".
>
> Yeah, it is a bug in displaced stepping... Here is the patch to fix it.
Looks great to me. Thanks!
Thanks,
Pedro Alves