Re: Weird Segfaulting

2006-05-19 Thread Matt Hull
i would use gdb. tells you what line segfaulted. On Fri, 19 May 2006, Jordan Walsh wrote: > Ok. I have been scratching my head on this one for a couple days now. First > here is the code: > > http://dega.hopto.org/database.c > > The problem is this. That "read_dir" works fine, the first time it

Re: Weird Segfaulting

2006-05-18 Thread Jordan Walsh
On Fri, 2006-05-19 at 00:03 -0400, Jordan Walsh wrote: > > Ok. I have been scratching my head on this one for a couple days now. > First here is the code: > > http://dega.hopto.org/database.c > > The problem is this. That "read_dir" works fine, the first time it is > run. But the second time it

Weird Segfaulting

2006-05-18 Thread Jordan Walsh
Ok. I have been scratching my head on this one for a couple days now. First here is the code: http://dega.hopto.org/database.c The problem is this. That "read_dir" works fine, the first time it is run. But the second time it is called the program segfaults. I have narrowed the segfault down to "