LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2009, 06:52 AM   #1
kubaPL
LQ Newbie
 
Registered: Apr 2009
Location: Poland
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
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...
 
Old 04-15-2009, 09:05 AM   #2
NilesBor
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vmcore dump files double with every crash using diskdump polar_bear Linux - Server 5 07-20-2012 04:34 AM
Server crash periodically - no core dump Bionics Linux - Server 3 09-25-2008 07:17 AM
help with kernel oops dump jlm01801 Linux - General 0 06-11-2008 06:28 AM
Enabling Crash Dump Collection dmx203 Red Hat 3 05-22-2008 01:45 PM
kernel crash dump: where do I debug? ashlesha Linux - Software 0 08-23-2006 07:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration