This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Sporadic failures of selftest tests
- From: Pedro Alves <palves at redhat dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>, gdb-patches at sourceware dot org
- Date: Tue, 17 Oct 2017 15:40:44 +0100
- Subject: Re: Sporadic failures of selftest tests
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 53BC981E02
- References: <20171017140032.2D8AAD807C2@oc3748833570.ibm.com> <7e8c90cf-c12b-0095-16e5-3dcae94aff6f@redhat.com> <39dde79f-2540-6718-8fab-e65b159fdf9f@redhat.com>
On 10/17/2017 03:34 PM, Pedro Alves wrote:
> Wait, is your build of GDB an optimized build? Maybe the compiler
> managed to inline captured_command_loop for you? Currnetly, when
> GDB stops for an inline breakpoint, it stops at the stack caller,
> which would explain this.
Yup, I can reproduce this with:
$ rm -f main.o && make CXXFLAGS="-g3 -O2"
$ make check TESTS="*/complaints.exp"
[...]
Running src/gdb/testsuite/gdb.gdb/complaints.exp ...
FAIL: gdb.gdb/complaints.exp: run until breakpoint at captured_command_loop
WARNING: Couldn't test self
Thanks,
Pedro Alves