Message-ID: <320B6F20.62A8@cs.pdx.edu> Date: Fri, 09 Aug 1996 17:02:24 +0000 From: Ian Romanick MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Crash before main strangeness. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have just run into something REALLY strange. For some reason, my program crashes before it even gets to main(). I don't have any constructors or anything, so all that's being run is crt startup code. Further, if I comment out a certain line in one of my source files, it works just fine. Note, that this line is NEVER executed. In fact, my main() is just: main() { return 0; } I guess my only question is what on earth could possibly cause this? I've experimented with changing the link order, moving stuff around in the suspect function...just about everything I can think of, but I still crashes. Here is the output: Exiting due to signal SIGILL Invalid Opcode at eip=00000000 eax=00000000 ebx=0004cc9e ecx=fffffff6 edx=00000024 esi=0000002d edi=0004cca7 ebp=0004cbf0 esp=0004cbe0 cs=00a7 ds=00af es=00af fs=0087 gs=00bf ss=00af Call frame traceback EIPs: 0x00000000 0 0x000065f5 ___crt0_setup_arguments+137 0x00004a54 ___crt1_startup+336 I would really appriciate any help. Thanks.