Mail Archives: djgpp/1997/04/29/04:52:13
On Wed, 23 Apr 1997, David Stockton wrote:
> I am working on a library of routines and a small test program
> (about 30 lines; the call a routine, print a message type)
> dies with the following stack trace. Since it dies in a standard
> library routine I was not sure how to track it down.
The usual way: get the library sources, compile them with -g and step
into them with a debugger.
> Note also
> that if I change the declaration of selects timeout argument
> to static the GPF goes away. Am I running out of stack space?
Hmm... I'm not sure, but the traceback does seem bogus (crnl2lf never
calls itself, and shouldn't be called by tzload anywa), which might mean
you are overflowing the stack.
However, such problems usually yield a Page fault, not GPF. Is there
any reason that your program should use large parts of stack space?
- Raw text -