delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/11/11/13:12:16

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: V01U2FsdGVkX191LrdrNrt1lurLooRz1B0WPdxiSkOOssP04yxbEX
oTdzo/n7LZphkk
Message-ID: <509FE38A.9030207@gmx.de>
Date: Sun, 11 Nov 2012 18:42:34 +0100
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Difficulties using DJGPP 2.04 together with DOSLFN 0.41 on MSDOS
6.22
X-Y-GMX-Trusted: 0

I have tried to compile a simple "hello world" like program.  I have used MSDOS 6.22
together with DOSLFN 0.41 (used options  ~- t+; this means that no numeric tail
will be created).  I have used djdev204, gcc472b, bnu223b and CWSDPMI r7 without
activated swap file.  The system has 64 MB.  The program crashes with the
following stack trace:

   Stack Fault at eip=1902d; flags=3293
   eax=11000000 ebx=00000000 ecx=00000000 edx=00000000 esi=4f575c3a edi=4407712f
   ebp=415c4b52 esp=00000781 cs=e7 ds=ef es=ef fs=cf gs=0 ss=cf error=0000


It makes no difference if I use gcc471b and bnu222br4.  It crashes in the same
way.  If I try to debug the program, I get the following output:

   GNU gdb (GDB) 7.5
   [snip]
   Reading symbols from d:/work/a.exe...Dwarf Error: wrong version in compilation
   unit header (is 0, should be 2, 3, or 4) [in module d:/work/a.exe]
   (gdb) q


The program has been compiled with the following options:
   gcc -Wall -g -O0 1.c

If I remove DOSLFN from autoexec.bat, reboot and recompile the program again
then it runs flawlessly.  Removing DOSLFN and rebooting alone is not enough.
The program must be recompiled without DOSLFN installed at all.
If I use djdev203, gcc472b and bnu223b the produced program runs flawlessly.
Recompiling libc from CVS repository code will not solve the problem.  The new
library make the program crashes in the same way.  It seems to be a new problem
with DOSLFN support by DJGPP.  I have never tested with FreeDOS.

If more information is need, please contact me.


Regards,
Juan M. Guerrero

- Raw text -


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