From: jcditz AT my-deja DOT com Newsgroups: comp.os.msdos.djgpp Subject: SIGSEGV problem (disaster!) Date: Fri, 25 Aug 2000 15:52:36 GMT Organization: Deja.com - Before you buy. Lines: 55 Message-ID: <8o64nq$s1q$1@nnrp1.deja.com> NNTP-Posting-Host: 198.110.21.201 X-Article-Creation-Date: Fri Aug 25 15:35:13 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) X-Http-Proxy: 1.1 x71.deja.com:80 (Squid/1.1.22) for client 198.110.21.201 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am currently writing a program for my senior Optical Physics research at svsu. Anyhow, I've got the program written (DJGPP of course), and it sure seems correct. At least, it compiles with no errors/warnings. The problem is, when I try to run it, it dumps a huge long nasty message: Exiting Due to signal SIGSEGV. stack fault at eip=000015d1 and all the other stuff (values of the registers at the time and everything. I don't have an awful lot of experience programming in C, so I'm not sure what is wrong (at least the syntax is right). But I can't seem to find any way to get this running (I wanted it running by monday since thats the first day of class but thankfully its not due for another 9-10 months) :) Heres something that I noticed, I get similar problems using other compilers (but thats not surprising its not like this is DJGPPs fault). Using Turbo C++ 3.0 I get "stack overflow" messages when I try to run it. In Borland C++ 5.02 for Windows I get a "This program has performed an illegal operation and will be shut down" message which says it caused a "stack fault". I'm guessing that if I knew much about C programming these messages would all fit together into some obvious problem. Hopefully someone else can see what I can't. The only other thing I can think of thats relavent is this: My program isn't trying to do anything all that unusual. It uses only the simple functions and I don't try to do any fancy assembler anywhere in the program. The only thing I should point out is that I'm using some really big arrays. I use about half a dozen doubles which are [61] [61][3] as well as one huge one int array [1281][1281]; Originally I was using Turbo C++ but when I got the error I figured it was just too much for a 16- bit compiler. Is it too much for a 32-bit compiler too? Someone please help I've been trying to fix this for weeks with no luck! Sent via Deja.com http://www.deja.com/ Before you buy.