RE: A couple of small problems

"Gross, Mark" <[email protected]>
Newsgroups gmane.linux.ngpt.devel
Message-ID <[email protected]>
The only problem I've seen with GDB dong core file based debugging was with
older distros using a version of GDB that would get confused if
libpthreads.so was not "stripped".

The fix was simple, cd /lib; strip libpthread.so.  Then things work.  

However; no issues where known for doing live debugging.  

I never tried attach :( 

Try the strip libpthread thing first.  There may be more work to do here.
Sorry.

--mgross

-----Original Message-----
From: Kip Macy [mailto:[email protected]] 
Sent: Monday, December 16, 2002 10:52 PM
To: Gross, Mark
Cc: Howell, David P; [email protected]
Subject: RE: [pthreads-devel] A couple of small problems


I reworked the patch to apply cleanly to 2.4.19. It works fine for my
purposes.
However, GDB isn't just crippled when it comes to looking at ULT in a
core-file, 
it isn't able to attach to a running process without hitting an assertion
failure. Any suggestions on what to do to fix this?


[kmacy@hershey ~/gdb-5.2]$ sudo /usr/netapp/bin/gdb-ngpt
~/p4/ontap/linuxdev/prod/build/maytag.Ld
GNU gdb 5.2
Copyright 2002 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"...attach 6904

(gdb) attach 6904
Attaching to program:
/x/eng/build6/scratch/kmacy/linuxdev.13542.331_20_54_08/prod/build/maytag.Ld
,
process 6904
Reading symbols from /usr/lib/libpthread.so.20...done.
lin-lwp.c:1034: gdb-internal-error: lin_lwp_wait: Assertion `num_lwps == 0
||
iterate_over_lwps (resumed_callback, NULL)' failed.
An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n) 


			-Kip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.