From: Jawed Karim Newsgroups: comp.os.msdos.djgpp Subject: DJGPP MEM BUG? Date: Sat, 14 Jun 1997 22:25:18 -0600 Organization: University of Minnesota Lines: 36 Message-ID: <33A36EAE.17D4@tc.umn.edu> Reply-To: jawed AT tc DOT umn DOT edu NNTP-Posting-Host: pub-20-b-159.dialup.umn.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I really need the following code to work. Under Linux, this works PERFECTLY. Under DJGPP I get SIGSEVs every single time. See for yourself: -- #include typedef struct { int r, g, b; int closest_fit; } Table; main() { Table thingy[255][128]; } --- Exiting due to signal SIGSEGV Stack Fault at eip=00001559 eax=00000000 ebx=0004c100 ecx=00000000 edx=0000033e esi=00000054 edi=0000a2d4 ebp=0004a2a8 esp=fffcaaa8 program=D:\JAW3D\A.EXE cs: sel=00a7 base=82e4e000 limit=0005ffff ds: sel=00af base=82e4e000 limit=0005ffff es: sel=00af base=82e4e000 limit=0005ffff fs: sel=0087 base=0000cfc0 limit=0000ffff gs: sel=00bf base=00000000 limit=ffffffff ss: sel=00af base=82e4e000 limit=0005ffff --------- It doesnt crash with [255][32] but it does with [255][64]. In any case, even with 128 it SHOULD NOT. It's not that much memory, and under linux gcc it works. Any ideas? Please email me directly... Jawed Karim jawed AT tc DOT umn DOT edu http://umn.edu/~jawed