This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

threads/1423: After application recieves a SIGSEGV, threads database contains threads.


>Number:         1423
>Category:       threads
>Synopsis:       After application recieves a SIGSEGV, threads database contains threads.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 20 13:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Shmyrev
>Release:        gdb-6.0
>Organization:
>Environment:
Linux t94 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown

glibc-2.2.5
>Description:
After application recieves a SIGSEGV, threads database contains threads.
>How-To-Repeat:
test.c
-----------------------------------
int
main (int argc, char *argv[])
{
   char *a;
                                                                                
   memset(a, 0, 10000);
                                                                                
   return 0;
}
                                                                                ------------------------------------

shmyrev@t94 test $ gcc -lpthread file.c                                                                                
shmyrev@t94 test $ gdb ./a.out
GNU gdb 2003-10-07-cvs
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
 
(gdb) r
Starting program: /home/shmyrev/tmp/test/a.out
[Thread debugging using libthread_db enabled]
[New Thread 1024 (LWP 12860)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 12860)]
0x42082477 in memset () from /lib/i686/libc.so.6
(gdb) c
Continuing.
Cannot find user-level thread for LWP 12860: generic error
(gdb) c
Continuing.
Cannot find thread 1024: generic error
(gdb)

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]