Re: unkillable dpkg-query processes

2007-11-02 Thread Bernd Zeimetz
David Miller wrote:
 From: David Miller [EMAIL PROTECTED]
 Date: Thu, 01 Nov 2007 15:01:13 -0700 (PDT)
 
 I'm working on a kernel patch for 2.6.23 that will allow you to get
 some useful debugging information in situations like this.

 I'll try to get you that patch by the end of tonight.
 
 As promised, here is the patch below.

Thanks for the patch. Applied and used libnss-db + aptitude -u to hang
the machine.

I've sent g several times to sysrq, output is attached.
According to top the two hanging aptitude processes were running on CPU
1 + 3.

 3204 root  20   0 19552 5088 4072 R  100  0.1   6:54.49 1 aptitude
 3203 root  20   0 19552 5088 4072 R  100  0.1   6:56.39 3 aptitude


Cheers,

Bernd

-- 
Bernd Zeimetz
[EMAIL PROTECTED] http://bzed.de/


sysrq-g.txt
Description: application/pgp-keys


Re: unkillable dpkg-query processes

2007-11-02 Thread Josip Rodin
On Thu, Nov 01, 2007 at 09:55:44PM -0700, David Miller wrote:
  I'm working on a kernel patch for 2.6.23 that will allow you to get
  some useful debugging information in situations like this.
 
  I'll try to get you that patch by the end of tonight.
 
 As promised, here is the patch below.
 echo g /proc/sysrq-trigger
 
 So when you get a stuck process or whatever, trigger this and
 send the output :-)

Great. Here you go, three of them, while the load was 3 and this process was
stuck:

buildd   10813  100  0.8 987368 17504 ?RN   14:44 155:49 dpkg-query 
--search libpthread.so.0 libdl.so.2 libstdc++.so.6 libm.so.6 libgcc_s.so.1 
libc.so.6 libFLAC.so.8 libid3tag.so.0 libz.so.1 libmad.so.0 libglib-2.0.so.0 
libmikmod.so.2 libsndfile.so.1 libvorbis.so.0 libogg.so.0 libvorbisfile.so.3

-- 
 2. That which causes joy or happiness.
Nov  2 17:01:52 lebrun kernel: SysRq : Show Global CPU Regs
Nov  2 17:01:52 lebrun kernel:   CPU[  0]: TSTATE[] 
TPC[] TNPC[] TASK[NULL:-1]
Nov  2 17:01:52 lebrun kernel:  
TPC[sparc64_realfault_common+0x8/0x20]
Nov  2 17:01:52 lebrun kernel: * CPU[  1]: TSTATE[] 
TPC[] TNPC[] TASK[sh:12919]
Nov  2 17:02:04 lebrun kernel: SysRq : Show Global CPU Regs
Nov  2 17:02:04 lebrun kernel:   CPU[  0]: TSTATE[80009604] 
TPC[00407924] TNPC[00407928] TASK[dpkg-query:10813]
Nov  2 17:02:04 lebrun kernel:  
TPC[sparc64_realfault_common+0x8/0x20]
Nov  2 17:02:04 lebrun kernel: * CPU[  1]: TSTATE[] 
TPC[] TNPC[] TASK[sh:12928]
Nov  2 17:17:02 lebrun kernel: SysRq : Show Global CPU Regs
Nov  2 17:17:02 lebrun kernel:   CPU[  0]: TSTATE[] 
TPC[00407924] TNPC[00407928] TASK[dpkg-query:10813]
Nov  2 17:17:02 lebrun kernel:  
TPC[sparc64_realfault_common+0x8/0x20]
Nov  2 17:17:02 lebrun kernel: * CPU[  1]: TSTATE[] 
TPC[] TNPC[] TASK[sh:16444]