Mail Archives: djgpp/1999/05/20/18:55:58
Mark Yeo wrote:
>
> Have been compiling my own btree code. Have been giving out-of segment
> errors. first problem is that i donno understand the segment errors and
> the sources.
You mean something like "Exiting due to SIGSEGV"? That's caused by
trying to access memory you don't own. Overrun, corrupted or NULL
pointers, usually. FAQ section 9.2 explains some ways to find the bug.
> Second problem is that A printf statement in my code has
> TWO outputs on the screen However, the next time i started my pc, the
> code works well.
Are you sure you didn't somehow manage to execute that code twice?
It's also possible that secondary damage from whatever bug caused the
above crash (or another one) messed up the program's state. If you
can't reproduce it, there's probably not much anyone can do about it.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -