unkillable process in R state, 2.6.6
Noticed any site I go through my proxy chain was not reachable, and poked about. squid sits in the 'R' state forever, and I can't shut it down with kill -KILL | -STOP | -ILL | -FPU | -SEGV
The first site I go to through it works fine. I can browse pages off it and follow links within that domain. When I go to another site through squid, it hits the 'R' state and sits there forever. I can't even attach with gdb/strace to find out what code it's looping on.
It's the binary out of debian/testing for sparc, using a bk pull of 2.6.6.
Anyone have ideas how I can go about debugging this to see what's going on?
It's an Ultra 5 (Ultra IIi/333MHz), gcc 3.3.3, binutils 2.14.90.0.7, make 3.80, following possibly relevant flags set:CONFIG_IOSCHED_AS=yCONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_PREEMPT=y
Previous kernel, 2.6.5 from a bk pull, worked fine.
-- DN
Daniel
Quoted 2 lines
CONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_PREEMPT=y
Try getting rid of these two just to see what happens.
Signature · 4 lines
Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/
Quoted 4 lines · Ben Collins
Quoted 2 lines
CONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_PREEMPT=yTry getting rid of these two just to see what happens.
Tried without, and still happens. I repulled the bk tree before doing so about 22:30 PDT, and booted with a kernel built with the above two turned off -- system froze.
Is there a way to enable a watchdog oopser? Or some other way of finding out where the kernel's hanging?
-- DN
Daniel
Quoted 4 lines · carbonated beverage
Quoted 3 lines · Ben Collins
Quoted 2 lines
CONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_PREEMPT=y
Quoted 8 lines
Quoted 1 line
Try getting rid of these two just to see what happens.
Tried without, and still happens. I repulled the bk tree before doing so about 22:30 PDT, and booted with a kernel built with the above two turned off -- system froze.
Is there a way to enable a watchdog oopser? Or some other way of finding out where the kernel's hanging?
Try enabling some debug options, like spinlock debug and such.
Signature · 4 lines
Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/
Quoted 1 line · Ben Collins
Try enabling some debug options, like spinlock debug and such.
Enabled the following:
CONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_PREEMPT=yCONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_SLAB=yCONFIG_MAGIC_SYSRQ=yCONFIG_DEBUG_SPINLOCK=yCONFIG_DEBUG_SPINLOCK_SLEEP=yCONFIG_STACK_DEBUG=yCONFIG_MCOUNT=yCONFIG_FRAME_POINTER=y
And it doesn't boot.
After the Loading... at... message, it just sits there once the spinner goes away. The disk is pretty loud when accessed, so I know it's not even hitting the disk.
I can't even break out into the OpenPROM prompt.
Ideas?
-- DN
Daniel
Quoted 1 line
Quoted 1 line
Try enabling some debug options, like spinlock debug and such.
cb>
cb> Enabled the following:
cb>
cb> CONFIG_CC_OPTIMIZE_FOR_SIZE=y
cb> CONFIG_PREEMPT=y
cb> CONFIG_DEBUG_KERNEL=y
cb> CONFIG_DEBUG_SLAB=y
cb> CONFIG_MAGIC_SYSRQ=y
cb> CONFIG_DEBUG_SPINLOCK=y
cb> CONFIG_DEBUG_SPINLOCK_SLEEP=y
cb> CONFIG_STACK_DEBUG=y
cb> CONFIG_MCOUNT=y
cb> CONFIG_FRAME_POINTER=y
cb>
cb>
cb> And it doesn't boot.
Same here on an UE2. Turned on spinlock debugging, gained no info. Turned on stack debug:
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_DCFLUSH=y
# CONFIG_DEBUG_INFO is not set
-# CONFIG_STACK_DEBUG is not set
+CONFIG_STACK_DEBUG=y
# CONFIG_DEBUG_BOOTMEM is not set
+CONFIG_MCOUNT=y
+CONFIG_FRAME_POINTER=y
This causes lots of warning about undefined module symbols _mcount but I tried the kernel anyway. This kernel does not load at all - the last thing I see is SILO telling that it's loading the kernel.
Signature · 1 line
Meelis Roos