* gdb.mi/mi-pthreads.exp query
@ 2003-01-02 3:47 Michael Elizabeth Chastain
2003-01-02 17:07 ` Elena Zannoni
0 siblings, 1 reply; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2003-01-02 3:47 UTC (permalink / raw)
To: ezannoni, keiths; +Cc: gdb
Hi Elena and Keith,
I'm looking at some intermittent failures in gdb.mi/mi-threads.exp.
You fixed do_captured_list_thread_ids recently and I wonder if this
rings any bells for you.
I ran it 256 times on an unloaded system and collected the results.
My configuration is:
target=native, host=i686-pc-linux-gnu, osversion=red-hat-8.0,
gdb=HEAD%20021231, gcc=3.2.1, binutils=2.13.2, libc=vendor,
gformat=dwarf-2
Two tests always FAIL:
gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 2
gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
These tests FAIL intermittently:
gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 3
gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 4
gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 5
gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 6
There is a table at:
http://www.shout.net/~mec/sunday/mi-pthreads/Non-PASS-gdb-HEAD.html
Does this ring any bells? If not, that's fine, I'll throw it on the
giant heap of FAILs to analyze later.
Michael C
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb.mi/mi-pthreads.exp query
2003-01-02 3:47 gdb.mi/mi-pthreads.exp query Michael Elizabeth Chastain
@ 2003-01-02 17:07 ` Elena Zannoni
0 siblings, 0 replies; 4+ messages in thread
From: Elena Zannoni @ 2003-01-02 17:07 UTC (permalink / raw)
To: Michael Elizabeth Chastain; +Cc: ezannoni, keiths, gdb
Michael Elizabeth Chastain writes:
> Hi Elena and Keith,
>
> I'm looking at some intermittent failures in gdb.mi/mi-threads.exp.
> You fixed do_captured_list_thread_ids recently and I wonder if this
> rings any bells for you.
>
No, I am running an older configuration, and they all pass for me.
Do you have the relevant portions of the gdb.log file?
Elena
> I ran it 256 times on an unloaded system and collected the results.
>
> My configuration is:
>
> target=native, host=i686-pc-linux-gnu, osversion=red-hat-8.0,
> gdb=HEAD%20021231, gcc=3.2.1, binutils=2.13.2, libc=vendor,
> gformat=dwarf-2
>
> Two tests always FAIL:
>
> gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 2
> gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
>
> These tests FAIL intermittently:
>
> gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 3
> gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 4
> gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 5
> gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 6
>
> There is a table at:
>
> http://www.shout.net/~mec/sunday/mi-pthreads/Non-PASS-gdb-HEAD.html
>
> Does this ring any bells? If not, that's fine, I'll throw it on the
> giant heap of FAILs to analyze later.
>
> Michael C
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdb.mi/mi-pthreads.exp query
@ 2003-01-02 17:41 Michael Elizabeth Chastain
2003-01-06 17:32 ` Elena Zannoni
0 siblings, 1 reply; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2003-01-02 17:41 UTC (permalink / raw)
To: ezannoni, keiths; +Cc: gdb
Sure, here is the whole sections for mi-pthreads.exp from one gdb.log.
Hmmm, I see this:
-thread-select 7
^done,new-thread-id="7",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
The test script wants to see:
frame={.*},line=\"(-)?\[0-9\]+\",file=\".*\""
It looks like a test script problem rather than a gdb problem.
I'm using the vendor libc (without symbols). Maybe you have a libc with
symbols? Or maybe the frames are never in libc on your system.
Michael C
===
Running /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/mi-pthreads.exp ...
~"GNU gdb 2002-12-31-cvs\n"
~"Copyright 2002 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you are\n"
~"welcome to change it and/or distribute copies of it under certain conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
~"This GDB was configured as \"i686-pc-linux-gnu\"."
~"\n"
(gdb)
100-gdb-set height 0
100^done
(gdb)
101-gdb-set width 0
101^done
(gdb)
Executing on host: gcc /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c -Igdb.mi -gdwarf-2 -lpthreads -lm -o /berman/fsf/_today_/berman/test/gdb.mi/pthreads (timeout = 300)
/berman/migchain/install/target/native/binutils-2.13.2/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/berman/migchain/install/target/native/binutils-2.13.2/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
gdb compile failed, /berman/migchain/install/target/native/binutils-2.13.2/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
Executing on host: gcc /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c -Igdb.mi -gdwarf-2 -lpthread -lm -o /berman/fsf/_today_/berman/test/gdb.mi/pthreads (timeout = 300)
PASS: gdb.mi/mi-pthreads.exp: successfully compiled posix threads test case
104-environment-directory -r
104^done,source-path="$cdir:$cwd"
(gdb)
105-environment-directory /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi
105^done,source-path="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi:$cdir:$cwd"
(gdb)
105-file-exec-and-symbols /berman/fsf/_today_/berman/test/gdb.mi/pthreads
105^done
(gdb)
200-break-insert done_making_threads
200^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804849b",func="done_making_threads",file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c",line="51",times="0"}
(gdb)
PASS: gdb.mi/mi-pthreads.exp: breakpoint at done_making_threads
000-exec-run
000^running
(gdb)
~"[New Thread 8192 (LWP 28515)]\n"
~"[New Thread 16385 (LWP 28516)]\n"
~"[New Thread 8194 (LWP 28517)]\n"
~"[New Thread 16387 (LWP 28518)]\n"
~"[New Thread 24580 (LWP 28519)]\n"
~"[New Thread 32773 (LWP 28520)]\n"
~"[New Thread 40966 (LWP 28521)]\n"
~"[Switching to Thread 8192 (LWP 28515)]\n"
000*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x0804849b",func="done_making_threads",args=[],file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c",line="51"}
(gdb)
PASS: gdb.mi/mi-pthreads.exp: mi runto done_making_threads
-thread-list-ids
^done,thread-ids={thread-id="7",thread-id="6",thread-id="5",thread-id="4",thread-id="3",thread-id="2",thread-id="1"},number-of-threads="7"
(gdb)
PASS: gdb.mi/mi-pthreads.exp: -thread_list_ids (in check_mi_thread_command_set)
PASS: gdb.mi/mi-pthreads.exp: finding threads in MI output (in check_mi_thread_command_set)
-thread-select
^error,msg="mi_cmd_thread_select: USAGE: threadnum."
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select
-thread-select 123456789
&"Thread ID 123456789 not known.\n"
^error,msg="Thread ID 123456789 not known."
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 123456789
-thread-select 7
^done,new-thread-id="7",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
-thread-select 6
^done,new-thread-id="6",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 6
-thread-select 5
^done,new-thread-id="5",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 5
-thread-select 4
^done,new-thread-id="4",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 4
-thread-select 3
^done,new-thread-id="3",frame={level="0",addr="0x420da1be",func="clone",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 3
-thread-select 2
^done,new-thread-id="2",frame={level="0",addr="0x420d224b",func="poll",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 2
-thread-select 1
^done,new-thread-id="1",frame={level="0",func="done_making_threads",args=[],file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c",line="51"},line="51",file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c"
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 1
testcase /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/mi-pthreads.exp completed in 1 seconds
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: gdb.mi/mi-pthreads.exp query
2003-01-02 17:41 Michael Elizabeth Chastain
@ 2003-01-06 17:32 ` Elena Zannoni
0 siblings, 0 replies; 4+ messages in thread
From: Elena Zannoni @ 2003-01-06 17:32 UTC (permalink / raw)
To: Michael Elizabeth Chastain; +Cc: ezannoni, keiths, gdb
Michael Elizabeth Chastain writes:
> Sure, here is the whole sections for mi-pthreads.exp from one gdb.log.
>
> Hmmm, I see this:
>
> -thread-select 7
> ^done,new-thread-id="7",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
> (gdb)
> FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
>
> The test script wants to see:
>
> frame={.*},line=\"(-)?\[0-9\]+\",file=\".*\""
>
> It looks like a test script problem rather than a gdb problem.
>
> I'm using the vendor libc (without symbols). Maybe you have a libc with
> symbols? Or maybe the frames are never in libc on your system.
>
Yes, seems that way:
I get:
-thread-select 7
^done,new-thread-id="7",frame={level="0",addr="0x4008abb5",func="__sigsuspend",args=[{name="set",value="0x42997abc"}],file="../sysdeps/unix/sysv/linux/sigsuspend.c",line="45"},line="45",file="../sysdeps/unix/sysv/linux/sigsuspend.c"
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
-thread-select 6
^done,new-thread-id="6",frame={level="0",addr="0x401175e1",func="__libc_nanosleep",args=[],file="__libc_nanosleep",line="-1"},line="-1",file="__libc_nanosleep"
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 6
-thread-select 2
^done,new-thread-id="2",frame={level="0",addr="0x4008ab11",func="__kill",args=[],file="__kill",line="-1"},line="-1",file="__kill"
(gdb)
Elena
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-06 17:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-02 3:47 gdb.mi/mi-pthreads.exp query Michael Elizabeth Chastain
2003-01-02 17:07 ` Elena Zannoni
2003-01-02 17:41 Michael Elizabeth Chastain
2003-01-06 17:32 ` Elena Zannoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox