ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2020/08/30/23:23:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Subject: Re: SIGSEGV when trying to compile helloworld
To: djgpp AT delorie DOT com
References: <f39d7f31-8815-e9fe-7ac1-4b8551098a59 AT gmx DOT de>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Message-ID: <20f9fc4e-bfab-c2af-38e8-c6a108555165@iki.fi>
Date: Mon, 31 Aug 2020 06:18:35 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.12.0
MIME-Version: 1.0
In-Reply-To: <f39d7f31-8815-e9fe-7ac1-4b8551098a59@gmx.de>
X-MIME-Autoconverted: from Quoted-Printable to 8bit by delorie.com id 07V3JRY1019738
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 8/30/20 6:30 PM, sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com] wrote:
>
> Saved in: C:\DOSBOX_dos_projects\DJGPP\testproj\test.cpp
> With Windows7 (32bit) Cmd shell in that folder, called this, and got the
> output:
>
> C:\DOSBOX~3\DJGPP\testproj>gcc -g test.cpp -o test.exe
> Exiting due to signal SIGSEGV
> Stack Fault at eip=00000a11
> eax=00010001 ebx=01c40080 ecx=0165a400 edx=004207bf esi=000023c2
> edi=000023b2
> ebp=0042773a esp=0042773a program=C:\DJGPP_~1\BIN\GCC.EXE
> cs: sel=00cf  base=0000d150  limit=00000db0
> ds: sel=00b7  base=00005860  limit=0000ffff
> es: sel=0040  invalid
> fs: sel=0000
> gs: sel=0000
> ss: sel=00b7  base=00005860  limit=0000ffff
> App stack: [00423b78..00223b7c]  Exceptn stack: [00223ac8..00221b88]

Looks very similar to NTVDM crashes in Windows 10 32 bit when executing nested

32 bit DPMI programs:

- any attempt to run DJGPP program directly or indirectly (for example through bat file) fails

Microsoft broke NTVDM DPMI support some years ago in Windows 10.

I have not tested Windows 7 or 8 but according to some tests

(http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp/2020/04/15/16:34:15):

- worked in Windows 7 32 bit some time ago

- did not work in Windows 8 32 bit that time

Also: have You set DPMI memory limit to something larger than the default 32 MB? There is no need to

to reboot after adding setting to registry for that.


Andris



- Raw text -


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