[LCP] Debugging a core dump

Zach netrek at gmail.com
Fri Jul 27 00:37:52 UTC 2007


Thank you Dr. Nagasuri.

Zach

On 7/26/07, DR. N. B. Venkat Nagasuri <venkat_ritch at yahoo.com> wrote:
> Try
> ulimit -S -c 100000
> ./yourprogram (which is compiled using -g option)
> gdb -q yourprogram corefile
>
> Venkat
>
> Zach <netrek at gmail.com> wrote:
> I have had the same problem. Hope someone answers.
>
> Zach
>
> On 7/26/07, Ludwig Isaac Lim wrote:
> >
> > Hi:
> >
> > I'm trying to debug a program which dumps a core file (
> > I compiled the program with a "-g" flag). I tried setting
> > the core size by using the following command:
> >
> > ulimit -c 1000
> >
> > I tried debugging it by :
> > gdb
> >
> >
> > gdb gives me the following error message :
> > is not a core dump: file format not
> > recognized.
> >
> > What is should be ideal size of a core dump for it be
> > helpful in debugging a program?
> >
> > Many thanks!
> >
> > ludwig
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Get the free Yahoo! toolbar and rest assured with the added security of
> spyware protection.
> >
> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
> >
> > _______________________________________________
> > This is the Linux C Programming List
> > : http://lists.linux.org.au/listinfo/linuxcprogramming
> List
> >
>
> _______________________________________________
> This is the Linux C Programming List
> : http://lists.linux.org.au/listinfo/linuxcprogramming List
>
>
>
> Prof NB Venkateswarlu
> B.Tech(SVU), M.Tech(IIT-Kanpur), Ph.D(BITS,Pilani), PDF(U of Leeds,UK)
> Visit My Home at: www.ritchcenter.com/nbv
>
>  ________________________________
> Shape Yahoo! in your own image. Join our Network Research Panel today!
>
>
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming
> List
>
>



More information about the linuxCprogramming mailing list