Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Yo baby yo baby yo." -- Eddie Murphy


devel / comp.os.msdos.djgpp / Re: command line lenght problems?

SubjectAuthor
* Re: command line lenght problems?Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com]
`- Re: command line lenght problems?Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com]

1
Re: command line lenght problems?

<83h79qhcft.fsf@gnu.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=137&group=comp.os.msdos.djgpp#137

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 26 Jan 2022 07:08:38 -0600
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sPPg4mOn4QyPTPqCFM7RBKnd8SGsyYvYYfaSv09RnXE=; b=ozlViV8aT96o JxJUq861Qo2zOKEnbn8NBzeLRf5wKD2uo4k7620QXWOYcbWBTaQucFh3JMbmH05Hc2BD6uJgHxCjs adlNCoECyQ5mI73inTD37w+9K92eC+4pvxlJ1yJdrd+9WU4472VCtIBM4K/zka/ZPImo1yaQJgea0 M6PI+BTz2oLRBw74YYv2GLE5qImxO+K5So64FSNAya8YKApz4x4q1Rd9FW7Hh9pXojLdqGshNZgNQ r/k/HUlZ9Ye+mDi/AtR1GTWPhQu2K7+83A4EwFbFvkKuptGfTpEhfcyy82iJ7zK6SKMOGJTpH1PoM W/SOr/lyZ7cBNRY7Lu29HQ==;
Date: Wed, 26 Jan 2022 15:08:22 +0200
Message-Id: <83h79qhcft.fsf@gnu.org>
From: djg...@delorie.com (Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com])
To: "Jay K (jayk123@hotmail.com) [via djgpp@delorie.com]" <djgpp@delorie.com>
In-Reply-To: <MWHPR1401MB1951CCC95276E44447921D28E6209@MWHPR1401MB1951.namprd14.prod.outlook.com> (djgpp@delorie.com)
Subject: Re: command line lenght problems?
References: <MWHPR1401MB1951CCC95276E44447921D28E6209@MWHPR1401MB1951.namprd14.prod.outlook.com>
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 65
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-630ss1TlnW6SD3rhWblRv8lI83Kj3zm8l/VAf1hSxDj4aLgPnVc9Nop1f0jpaMrPFa7jSbKHWsiq1A6!/rQnAa+pYE049p+kpXP5/6v7XlS/sHP98rvttwJC/71M
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4504
 by: Eli Zaretskii (eliz@ - Wed, 26 Jan 2022 13:08 UTC

> From: "Jay K (jayk123@hotmail.com) [via djgpp@delorie.com]" <djgpp@delorie.com>
> Date: Wed, 26 Jan 2022 09:53:31 +0000
> suggested_attachment_session_id: 69785034-0787-e0af-85a1-df4fb0b67acf
>
> I am trying to port my program to MS-DOS. For fun, granted.
> I figured DJGPP would help.
> Esp. because it seems to have a useful "sigalarm" functionality,
> I might use to implement preemptive threads.
> I have a prototype that suggests that will work:
>
> https://github.com/modula3/cm3/blob/3be819ed8e2fa60885aff0cb6278934a17b30702/m3-libs/m3core/src/thread/POSIX/test_dos_threads.cpp
>
>
> The rest of the Posix support helps also.
> I'm not sure about network/sockets, maybe give up.
>
> I have experimented with a few "DOS"s.
> FreeDOS, DosBos-X, 32bit Windows 10 VM.
>
> They all have advantages and disadvantages.
>
> Granted I could spend more time configuring each and none is "really" MS-DOS.
>
> My program is a compiler, that produces .cpp files and would run g++ or gxx, etc.
> (I might experiment with e.g. OpenWatcom, might, like if it can link the djpp libraries.)
>
> I am seeing, I guess, command line length limitations.
>
> gcc and collect2 crash, but if I run them manually with shorter equivalent-enough commands, they work.
>
> Advise?
> [...]
> bash:
> ---------------------------
> 16 bit MS-DOS Subsystem
> ---------------------------
> Administrator: C:\Windows\system32\cmd.exe
> NTVDM has encountered a System Error
> NTVDM has encountered a System Error 4001h Choose 'Close' to terminate the application.
> ---------------------------
> Close Ignore
> ---------------------------

On what version of Windows is that?

> Exiting due to signal SIGSEGV
> Stack Fault at eip=00000a11

This is stack fault, not necessarily related to the command-line
length.

What does go32-v2 report there if run without arguments?

> eax=00010001 ebx=01ad0080 ecx=01549400 edx=004207bf esi=00001223 edi=00001213
> ebp=0042773a esp=0042773a program=C:\DOS\BIN\GCC.EXE
> cs: sel=00cf base=000d3a50 limit=00000db0
> ds: sel=00b7 base=000cc160 limit=0000ffff
> es: sel=0040 invalid
> fs: sel=0000
> gs: sel=0000
> ss: sel=00b7 base=000cc160 limit=0000ffff
> App stack: [00423b78..00223b7c] Exceptn stack: [00223ac8..00221b88]

Something is very wrong in the run environment: the SS segment has
very small limit, ES is invalid...

Re: command line lenght problems?

<4f48e61a-df17-9926-aaa0-e48f8a62d403@iki.fi>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=138&group=comp.os.msdos.djgpp#138

  copy link   Newsgroups: comp.os.msdos.djgpp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 27 Jan 2022 23:29:38 -0600
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp@delorie.com
Message-ID: <4f48e61a-df17-9926-aaa0-e48f8a62d403@iki.fi>
Date: Fri, 28 Jan 2022 07:29:24 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: command line lenght problems?
Content-Language: en-US-large
To: djgpp@delorie.com
References: <MWHPR1401MB1951CCC95276E44447921D28E6209@MWHPR1401MB1951.namprd14.prod.outlook.com>
<83h79qhcft.fsf@gnu.org>
From: djg...@delorie.com (Andris Pavenis (andris.pavenis@iki.fi) [via djgpp@delorie.com])
In-Reply-To: <83h79qhcft.fsf@gnu.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Reply-To: djgpp@delorie.com
Errors-To: nobody@delorie.com
X-Mailing-List: djgpp@delorie.com
X-Unsubscribes-To: listserv@delorie.com
Precedence: bulk
Newsgroups: comp.os.msdos.djgpp
Organization: None provided
DJ-Gateway: from mailing list djgpp@delorie.com
Lines: 36
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-EdlVOXt9gwkGBCvMDXUzMY2EBeZm+8IEfZsDyWuTaWxWxjbzqSvc0ExlDlTICCyZJEQb8tM0fmQRPLR!mlYeDCfzqUQAmybP04WPNGaAbYGRFr2XCy8jeqAzKfbnaC1Y/ToMzFjPyrwgJ1drijDhqSoA
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2985
 by: Andris Pavenis (andr - Fri, 28 Jan 2022 05:29 UTC

On 1/26/22 15:08, Eli Zaretskii (eliz@gnu.org) [via djgpp@delorie.com] wrote:
>
> On what version of Windows is that?
>
>> Exiting due to signal SIGSEGV
>> Stack Fault at eip=00000a11
> This is stack fault, not necessarily related to the command-line
> length.
>
> What does go32-v2 report there if run without arguments?
>
>> eax=00010001 ebx=01ad0080 ecx=01549400 edx=004207bf esi=00001223 edi=00001213
>> ebp=0042773a esp=0042773a program=C:\DOS\BIN\GCC.EXE
>> cs: sel=00cf base=000d3a50 limit=00000db0
>> ds: sel=00b7 base=000cc160 limit=0000ffff
>> es: sel=0040 invalid
>> fs: sel=0000
>> gs: sel=0000
>> ss: sel=00b7 base=000cc160 limit=0000ffff
>> App stack: [00423b78..00223b7c] Exceptn stack: [00223ac8..00221b88]
> Something is very wrong in the run environment: the SS segment has
> very small limit, ES is invalid...

Is that under Windows 10 32 bit?

GCC does not work in all recent builds of Win 10 32 bit.

This will be (stack trace above) how any attempt to execute DJGPP program from another one will end
in this case. It down not matter whether its executed directly or through some other non DJGPP
program or bat file. I do not know whether it is intentional or got broken accidentally. It is
perhaps extremely unlikely that it could be ever fixed.

Andris

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor