Subject: Re: CVS commit: src/lib/libpthread
To: None <current-users@netbsd.org>
From: =?ISO-8859-1?Q?Stefan_Kr=FCger?= <skrueger@meinberlikomm.de>
List: current-users
Date: 03/13/2005 16:50:45
Frederick Bruckman wrote:
> In article <422CBD1E.6060007@meinberlikomm.de>,
> 	Stefan Krüger <skrueger@meinberlikomm.de> writes:
> 
> 
>>% env PTHREAD_CONCURRENCY=2 ogg123 song.ogg (let it a few secs play)
>>CRTL+Z
>>% fg
>>CRTL+C
>>Done. (<- Last msg from ogg123)
>>panic: kernel diagnostic assertion "p->p_nrlwps == 0" failed: file
>>"/usr/src/sys/kern/kern_exit.c", line 781
>>Stopped in pid 30.1 (csh) at netbsd:cpu_Debugger+0x4:      popl     %ebp
>>db{0}> bt
>>cpu_Debugger(c02b0062,c47cfec0,206,c031de80,c02d4cc0) at
>>netbsd:cpu_debugger+0x4
>>panic(c02f5280,c02b0def,c02b495f,c02d4800,30d) at netbsd:panic+0xb5
>>__assert(c02b0def,c02d4800,30d,c02b495f,0) at netbsd:__assert+0x2e
>>proc_free(c3e4cab4,bfbfe7e8,48,c47cff40,0) at netbsd:proc_free+0x81
>>sys_wait4(c3e4b6b4,c47cff70,c47cff68,c031daa8,c02fa834) at
>>netbsd:sys_wait4+0xf5
>>syscall_plain() at netbsd:syscall_plain+0x10f
>>--- syscall (number 7) ---
>>0xbdb3893f
>>db{0}> sync
>>...
>>I also got a crashdump but the netbsd.?.core is somehow damaged, I've
>>tried it several times but gdb refuses it :-(
>>so, what's next?
> 
> 
> What command are you using with "gdb"?  You do know that you
> can't open a kernel core like a program core; you have to use
> "target kcore netbsd.N.core" from within "gdb", and that if you
> have the full symbols, you'll want to do "file netbsd.gdb"?
> "ps -N netbsd.N.core" might also be informative.
# savecore -v /home/crash
dumplo = 521338368 (1018239 * 512)
savecore: reboot after panic: panic: kernel diagnostic assertion
"p->p_nrlwps == 0" failed: file "/usr/src/sys/kern/kern_exit.c", line 781
savecore: system went down at Sun Mar 13 17:36:26 2005
savecore: /home/crash/bounds: No such file or directory
savecore: writing core to /home/crash/netbsd.0.core
savecore: writing kernel to /home/crash/netbsd.0
Script started on Sun Mar 13 17:44:08 2005
# file netbsd.0.core
netbsd.0.core: data
# ls -l netbsd.0.core
-rw-------  1 root  wheel  17429012 Mar 13 17:39 netbsd.0.core
# gdb --core netbsd.0.core /netbsd.minimal.gdb
GNU gdb 5.3nb1
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 "i386--netbsdelf"...
"/home/crash/netbsd.0.core" is not a core dump: File format not recognized
(gdb) quit

> Frederick
> 
> 
> --
> Posted automagically by a mail2news gateway at muc.de e.V.
> Please direct questions, flames, donations, etc. to news-admin@muc.de