<div>Try</div>  <div>ulimit -S -c 100000</div>  <div>./yourprogram (which is compiled using -g option)</div>  <div>gdb -q yourprogram corefile</div>  <div>&nbsp;</div>  <div>Venkat<BR><BR><B><I>Zach &lt;netrek@gmail.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I have had the same problem. Hope someone answers.<BR><BR>Zach<BR><BR>On 7/26/07, Ludwig Isaac Lim <LUDZ_LIM@YAHOO.COM>wrote:<BR>&gt;<BR>&gt; Hi:<BR>&gt;<BR>&gt; I'm trying to debug a program which dumps a core file (<BR>&gt; I compiled the program with a "-g" flag). I tried setting<BR>&gt; the core size by using the following command:<BR>&gt;<BR>&gt; ulimit -c 1000<BR>&gt;<BR>&gt; I tried debugging it by :<BR>&gt; gdb <PROGRAM name><NAME core the of><BR>&gt;<BR>&gt;<BR>&gt; gdb gives me the following error message :<BR>&gt; <CORE file>is not a core dump: file format not<BR>&gt; recognized.<BR>&gt;<BR>&gt; What is should be ideal
 size of a core dump for it be<BR>&gt; helpful in debugging a program?<BR>&gt;<BR>&gt; Many thanks!<BR>&gt;<BR>&gt; ludwig<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; ____________________________________________________________________________________<BR>&gt; Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.<BR>&gt; http://new.toolbar.yahoo.com/toolbar/features/norton/index.php<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; This is the Linux C Programming List<BR>&gt; : http://lists.linux.org.au/listinfo/linuxcprogramming List<BR>&gt;<BR><BR>_______________________________________________<BR>This is the Linux C Programming List<BR>: http://lists.linux.org.au/listinfo/linuxcprogramming List<BR></BLOCKQUOTE><BR><BR><BR><DIV><FONT color=#ff0000>Prof NB Venkateswarlu</FONT></DIV>  <DIV><FONT size=1>B.Tech(SVU), M.Tech(IIT-Kanpur), Ph.D(BITS,Pilani), PDF(U of Leeds,UK)</FONT></DIV>  <DIV><FONT color=#ff0000>Visit My Home
 at:</FONT> <FONT color=#0000ff>www.ritchcenter.com/nbv</FONT></DIV><p>&#32;
      <hr size=1>Shape Yahoo! in your own image.  
<a href="http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7">Join our Network Research Panel today!</a>