gdb/2145: GDB6.4 fails lots of thread related tests on SPARC

johan.walles@bea.com johan.walles@bea.com
Thu Jul 13 12:08:00 GMT 2006


>Number:         2145
>Category:       gdb
>Synopsis:       GDB6.4 fails lots of thread related tests on SPARC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 13 12:08:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     johan.walles@bea.com
>Release:        gdb 6.4
>Organization:
>Environment:
This GDB was configured as "sparc-sun-solaris2.9".
SunOS sthsparc01 5.9 Generic_117171-17 sun4u sparc SUNW,UltraAX-i2 Solaris
>Description:
This test case is a program that has a bunch of threads doing different permutations of:
1. Being inside a signal handler.
2. Being inside a signal handler on an alternate stack.
3. Not being inside a signal handler.

1. Being inside a system call.
2. Not being inside a system call.

One of the threads crash.

The shell script first crashes the program outside of gdb and uses gdb to analyze the core file.  Then it runs the program inside of gdb and analyzes the threads after the program SIGSEGVs.

These tests pass with different versions of gdb on ia32 and ia64.  Don't know about AMD64.

This fails on SPARC.

Setting severity "serious", because to us this makes using GDB quite difficult (since multi-threaded crashes inside of signal handlers are the norm rather than the exception when our product crashes).
>How-To-Repeat:
Unpack the attached tar file.
gcc -g -lpthread threadcrash.c
./verifyGdb.sh a.out

Expected result:
"All tests passed"

Current result:
"19 tests failed"
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-tar; name="gdbtest.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdbtest.tar.gz"

H4sIAAg2skQAA+1beXfbNhLP3/wUsKxtKFWWqMty4ih9qu2k3ipyKtnb3a27fhQJStxQpEqAPrrp
d98ZgLfoIz6StE94z5aIYzDHD4MBOOJzn+qm4etsXjeePU3RoGx3OvjZ1NrN8LMt6jWtpbW3W8+a
Wqfb6bSbrY72TIP/3c4zoj0RP5kSMK77hDz7rzfX3Rv63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