LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Turning off oops report (crash/memory dump) (https://www.linuxquestions.org/questions/programming-9/turning-off-oops-report-crash-memory-dump-719268/)

kubaPL 04-15-2009 06:52 AM

Turning off oops report (crash/memory dump)
 
Hi guys,

This has been bugging me for some time now, but does anyone know how to turn OFF the oops report that is generated when my application crashes? Obviously it would be great to be able to do so without a kernel recompile or booting into different kernels ;)

My problem is as follows. I've already used GDB to find out where my application is crashing which is great but my current setup does not allow me to use breakpoints and watches in my application and therefore I'm relying printfs for debugging. But just as my application crashes, my debugging printfs are overlapped by the oops report which ends up as an unreadable mess. So is there any way to suppress these logs (or delay them till my application has finished printing)? The application can create a core file if necessary, but I need it to not print the oops report.

Thanks in advance,
Kuba.

And by oops report, I mean:
CPU 0
Pid: 2680, comm: bash Not tainted
RIP: 0010:[<ffffffff8013ae64>]
<ffffffff8013ae64>{proc_dointvec_trap_kernel+84}
RSP: 0018:00000100111c9ea8 EFLAGS: 00010216
RAX: 0000000000000031 RBX: 00000100111c8000 RCX: ffffffff80413210
RDX: 0000010011cd9280 RSI: ffffffff80413970 RDI: 0000000000000000
and so on...

NilesBor 04-15-2009 09:05 AM

Let me take a stab at this (I'm no Linux expert), but aren't all kernel messages (printk's and all) written to the kernel ring buffer? In that case, could you just do a "dmesg" at the prompt to see your print messages nicely formatted?


All times are GMT -5. The time now is 04:51 PM.