This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 00/16] branch tracing support (resend)
On 05/29/2012 03:30 PM, Metzger, Markus T wrote:
> I cannot reproduce this. I tried on several different systems including
> 3.3.7-1.fc16.x86_64.
> Have you seen this on other systems, as well?
I tried again with the same kernel, and the crash was still there.
I've updated my kernel to that version, and the crashes disappeared.
I reverted to the previous kernel, and the crashes disappeared too...
The update also brought along other system components, but it might
be that there was just something broken in my gdb build. I don't
have that particular binary any more.
> Is there some configuration file or so that would allow me to build gdb
> exactly the same way you do?
just the usual: configure CFLAGS="-g3 -O0" && make
> I can reproduce this. I changed the configuration without running autoconf.
...
> After
> configuring, the gdb/testsuite/gdb.btrace directory is missing. I'll add a
> patch
> with the autoconf changes to the series.
Ah, I ran autoconf. The tests now run, but I get intermittent failures. Tested
in a loop with:
$ (set -e; while true; do make check RUNTESTFLAGS="--directory=gdb.btrace"; done)
I got one time:
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../src/gdb/testsuite/gdb.btrace/allthreads_trace.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/decrement.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/disable_all.exp ...
NOTE: This is 64 bit host.
NOTE: 64 bit platform
Running ../../../src/gdb/testsuite/gdb.btrace/enable.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/enable_all.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/enable_range.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/list.exp ...
FAIL: gdb.btrace/list.exp: btrace list 1.3
FAIL: gdb.btrace/list.exp: btrace list 1.4
FAIL: gdb.btrace/list.exp: btrace list 1.5
FAIL: gdb.btrace/list.exp: btrace list 1.6
FAIL: gdb.btrace/list.exp: btrace list 1.8
FAIL: gdb.btrace/list.exp: btrace list 1.9
FAIL: gdb.btrace/list.exp: btrace list 1.10
FAIL: gdb.btrace/list.exp: btrace list 1.11
FAIL: gdb.btrace/list.exp: btrace list 1.12
Running ../../../src/gdb/testsuite/gdb.btrace/list_function.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/list_options.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/main_asm.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/main_segv.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/sanity_crash.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_auto.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_independent.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_nonstop.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/trace_iteration.exp ...
=== gdb Summary ===
# of expected passes 240
# of unexpected failures 9
On another run I got:
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../src/gdb/testsuite/gdb.btrace/allthreads_trace.exp ...
FAIL: gdb.btrace/allthreads_trace.exp: BTR listing for thread 4, 1.12
Running ../../../src/gdb/testsuite/gdb.btrace/decrement.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/disable_all.exp ...
NOTE: This is 64 bit host.
NOTE: 64 bit platform
Running ../../../src/gdb/testsuite/gdb.btrace/enable.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/enable_all.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/enable_range.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/list.exp ...
FAIL: gdb.btrace/list.exp: btrace list 3.2
FAIL: gdb.btrace/list.exp: btrace list 3.3
Running ../../../src/gdb/testsuite/gdb.btrace/list_function.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/list_options.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/main_asm.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/main_segv.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/sanity_crash.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_auto.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_independent.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_nonstop.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/trace_iteration.exp ...
=== gdb Summary ===
# of expected passes 246
# of unexpected failures 3
/home/pedro/gdb/mygit/build/gdb/testsuite/../../gdb/gdb version 7.4.50.20120524-cvs -nw -nx -data-directory /home/pedro/gdb/mygit/build/gdb/testsuite/../data-directory
Yet another I got:
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../src/gdb/testsuite/gdb.btrace/allthreads_trace.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/decrement.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/disable_all.exp ...
NOTE: This is 64 bit host.
NOTE: 64 bit platform
Running ../../../src/gdb/testsuite/gdb.btrace/enable.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/enable_all.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/enable_range.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/list.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/list_function.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/list_options.exp ...
FAIL: gdb.btrace/list_options.exp: Listing at return, 1.6
FAIL: gdb.btrace/list_options.exp: Listing at return, 1.7
FAIL: gdb.btrace/list_options.exp: btrace for 1 to 3, 1.8
FAIL: gdb.btrace/list_options.exp: btrace with /r options at 3, 1.9
Running ../../../src/gdb/testsuite/gdb.btrace/main_asm.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/main_segv.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/sanity_crash.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_auto.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_independent.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/threads_nonstop.exp ...
Running ../../../src/gdb/testsuite/gdb.btrace/trace_iteration.exp ...
=== gdb Summary ===
# of expected passes 245
# of unexpected failures 4
(Those "NOTE"'s looks quite unnecessary, btw.)
--
Pedro Alves