Skip to contentSkip to conversation

2.6.14-rc3-rt10 crashes on boot

DISCUSSION John Rigg 2 participants 2 messages Oct 7, 2005

lore
Share & tools
lore

John Rigg

author
#0 lore raw
Quoted 3 lines · On Friday 7 October 2005 Ingo Molnar wrote:

i got overflows in initramfs's gunzip with certain debug options. I have improved the stack footprint of the worst offenders in -rt11 (see the standalone patch below) - John, does it boot any better?

Ah. I'm using initrd. With CONFIG_LATENCY_TRACE=y my initrd.img is large, > 3.6MB. Maybe it's time to try initramfs.

BTW I'm having trouble enabling DEBUG_STACKOVERFLOW. I can see it in arch/i386/Kconfig.debug (and not in arch/x86_64/Kconfig.debug), but it doesn't appear in menuconfig no matter what other kernel hacking options I enable. If I add it manually to .config it just gets removed by `make oldconfig'. Is this an x86_64 issue?

For now I'll assume that there is a stack overflow and try initramfs.

John

#1 lore raw
Quoted 8 lines · John Rigg
Quoted 3 lines · On Friday 7 October 2005 Ingo Molnar wrote:

i got overflows in initramfs's gunzip with certain debug options. I have improved the stack footprint of the worst offenders in -rt11 (see the standalone patch below) - John, does it boot any better?

Ah. I'm using initrd. With CONFIG_LATENCY_TRACE=y my initrd.img is large, > 3.6MB. Maybe it's time to try initramfs.

Quoted 8 lines

BTW I'm having trouble enabling DEBUG_STACKOVERFLOW. I can see it in arch/i386/Kconfig.debug (and not in arch/x86_64/Kconfig.debug), but it doesn't appear in menuconfig no matter what other kernel hacking options I enable. If I add it manually to .config it just gets removed by `make oldconfig'. Is this an x86_64 issue?

For now I'll assume that there is a stack overflow and try initramfs.

Here John,

Add this patch and it will add the option for you in x86_64 (I forgot that you were using that). I even set it to be default on. I didn't add a test in do_IRQ, but I believe that the tests in latency.c should be good enough.

-- Steve

arch/x86_64/Kconfig.debug +8 -0
Index: linux-rt-quilt/arch/x86_64/Kconfig.debug
===================================================================
@@ -33,6 +33,14 @@
 	 options. See Documentation/x86_64/boot-options.txt for more
 	 details.
 
+config DEBUG_STACKOVERFLOW
+        bool "Check for stack overflows"
+        depends on DEBUG_KERNEL
+        default y
+        help
+          This option will cause messages to be printed if free stack space
+          drops below a certain limit.
+
 config KPROBES
 	bool "Kprobes"
 	depends on DEBUG_KERNEL