J
jackassplus
I have a program that iterates through files in a directory parsing
them using regex.h
I compile it with
gcc -g -Wall -o parser.exe parser.c
in Windows (DJGPP), if I give it 8 files, it makes it through through
them fine, outputs what I expect and exits clean. If I give it 9
files, it silently dies towards the end of the ninth file before the
fclose() for that file.
in Linux, it segfaults after opening the first file.
What is the best way to debug it?
When I run it in gdb, it exits with status 02 earlier than if I run it
outside the debugger.
Where do I start?
This is by far my most ambitious program.
source is here: http://docs.google.com/Doc?id=ddbsfftc_9g2bndmhf
(hope its ugliness does not cause blindness)
feel free to email me directly if need be.
them using regex.h
I compile it with
gcc -g -Wall -o parser.exe parser.c
in Windows (DJGPP), if I give it 8 files, it makes it through through
them fine, outputs what I expect and exits clean. If I give it 9
files, it silently dies towards the end of the ninth file before the
fclose() for that file.
in Linux, it segfaults after opening the first file.
What is the best way to debug it?
When I run it in gdb, it exits with status 02 earlier than if I run it
outside the debugger.
Where do I start?
This is by far my most ambitious program.
source is here: http://docs.google.com/Doc?id=ddbsfftc_9g2bndmhf
(hope its ugliness does not cause blindness)
feel free to email me directly if need be.