On ons, 2007-10-17 at 20:50 +0200, Dr. Markus Waldeck wrote: > Hello Andreas, > > I added in the Makefile "-ggdb"! [...] > Program received signal SIGSEGV, Segmentation fault. > 0x0804924e in main (argc=1, argv=0xbf88d4f4) at lnstat.c:171 > 171 snprintf(th.hdr[0]+ofs, width+2, fmt,
This is very helpful! Now we now the exact line (171 in lnstat.c) where it blows up. Now we only need to figure out why. :) Next step in debugging (because the more information we have, the easier it probably is to find the cause of the problem) is to print what the contents of the variables used there contains. One of them that should contain a pointer probably contains NULL. ie. run in gdb until you get a segfault then try these commands: print th.hdr[0] print ofs print width print fmt print fps print i print fps->params[i].lf print fps->params[i].lf->file print fps->params[i].lf->file->basename -- Regards, Andreas Henriksson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]