delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/08/30/17:10:34

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1/SgwUYt6zSC9ZSzHprwE6aYSlfFVNnQjbbb9gH2l
FVzidwVCPe/3lC
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp AT delorie DOT com
Subject: gcc behaviour if djgpp.env is not available.
Date: Thu, 30 Aug 2012 22:44:31 +0200
User-Agent: KMail/1.9.10
MIME-Version: 1.0
Message-Id: <201208302244.31877.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0

I do not know if this issue has already been discused but I have noticed
that the DJGPP port of gcc crashes if it does not find djgpp.env.  If gcc
needs to load djgpp.env and fails, would not it be better that it issues
some kind of error message instead of crashing?
For an user not familiar with DJGPP it would be hard to figure out
what has gone wrong.

The output below is produced by gcc471b on WinXP after having deleted
djgpp.env.


F:\x\XZ-50~1.4\_build.204\_build.tmp>gcc  1.c
Exiting due to signal SIGSEGV
General Protection Fault at eip=00001be2
eax=0c720000 ebx=00000299 ecx=0b93d411 edx=3ac30000 esi=00010000 edi=0c730000
ebp=00000158 esp=00302114 program=C:\DJGPP-2.04\BIN\GCC.EXE
cs: sel=01a7  base=02990000  limit=3ac2ffff
ds: sel=017f  base=00008aa0  limit=0000ffff
es: sel=01af  base=02990000  limit=3ac2ffff
fs: sel=017f  base=00008aa0  limit=0000ffff
gs: sel=01bf  base=00000000  limit=0010ffff
ss: sel=01af  base=02990000  limit=3ac2ffff
App stack: [00302470..00182470]  Exceptn stack: [00182390..00180450]

Call frame traceback EIPs:
  0x00001be2



Regards,
Juan M. Guerrero

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019