Mail Archives: djgpp/2003/07/21/15:28:43
Additional information:
When I add a trivial output statement (printf("test\n");) to malloc.c,
in this case in the malloc function, line 112, the prog crashes even
before reaching the main function.
Eli Zaretskii wrote:
>>Date: Mon, 21 Jul 2003 15:09:04 +0200
>>From: Peter Claessens <peter DOT claessens AT psy DOT kuleuven DOT ac DOT be>
>>
>>
>>I thought it would be a good idea to set the #DEBUG preprocessor symbol
>>in that file to 1. Apparently it wasn't. I get the ugliest crashes at
>>startup of the program, apparently based on a segmentation fault (at
>>least that's what GDB says) in the beginning of the program, before any
>>output is sent to the screen, resulting in blue screens etc in win98. I
>>guess the debugging code isn't meant to run under windows? Or is it
>>really indicating something about my program being very wrong?
>>
>>
>
>The latter, I guess. Can you post a SYMIFY'ed traceback of such a
>crash? Also, what happens if you boot into plain DOS (by holding F8
>or F2 during startup), and then run your program? does it crash, and
>if so, what gets printed when it does?
>
>(To run a DJGPP program on plain DOS, you will need to make sure you
>have CWSDPMI installed.)
>
>
- Raw text -