Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.os.os2.programmer.misc / Re: BSS

SubjectAuthor
* BSSPaul Edwards
+* Re: BSSPaul Edwards
|`- Re: BSSMarcel Mueller
`- Re: BSSMarcel Mueller

1
BSS

<uruf3b$1o06i$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=118&group=comp.os.os2.programmer.misc#118

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazi...@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: BSS
Date: Sat, 2 Mar 2024 13:56:58 +0800
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uruf3b$1o06i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 2 Mar 2024 05:57:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="54a092635716d5e0e81b49a89bdcae15";
logging-data="1835218"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4/t2+S26jguFvALzetCens7m8cda/mpo="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:rGYw85ns8V+kWijHzIM7QHD9zA8=
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Paul Edwards - Sat, 2 Mar 2024 05:56 UTC

Whose responsibility is it to clear BSS?

I assume it is the operating system.

I am now able to open and read/write files,
but during testing (on PDOS/386) I found an
issue which I believe is due to uninitialized BSS.

Thanks. Paul.

Re: BSS

<urumcf$1p9kd$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=125&group=comp.os.os2.programmer.misc#125

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazi...@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: BSS
Date: Sat, 2 Mar 2024 16:01:14 +0800
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <urumcf$1p9kd$1@dont-email.me>
References: <uruf3b$1o06i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 2 Mar 2024 08:01:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="54a092635716d5e0e81b49a89bdcae15";
logging-data="1877645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mLpidVt9OdpSQSCukPbEJwGN3NAblcmI="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:o38C/+gzmdgOqLSmQOFwWqPkfaw=
In-Reply-To: <uruf3b$1o06i$1@dont-email.me>
 by: Paul Edwards - Sat, 2 Mar 2024 08:01 UTC

On 02/03/24 13:56, Paul Edwards wrote:
> Whose responsibility is it to clear BSS?
>
> I assume it is the operating system.
>
> I am now able to open and read/write files,
> but during testing (on PDOS/386) I found an
> issue which I believe is due to uninitialized BSS.

I changed malloc to calloc in exeload.c and
the problem was resolved. I didn't notice a
specific BSS section in the LX header so will
leave any refining of that to another day.

My theory of how I could get files working
for DOSCALLS appears to be correct - I can
indeed turn them around back into FILE accesses,
except if the handle is less than 3. Quite
neat result for 200 lines of code so far.

I will defer fleshing out DosDevIOCtl in terms
of setvbuf plus others until some other things
are resolved (bug reports, compiler, pdld,
microemacs makefile).

New pdos.zip etc uploaded.

BFN. Paul.

Re: BSS

<us53te$2ln8s$2@gwaiyur.mb-net.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=133&group=comp.os.os2.programmer.misc#133

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail
From: news.5.m...@spamgourmet.org (Marcel Mueller)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: BSS
Date: Mon, 4 Mar 2024 19:29:02 +0100
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <us53te$2ln8s$2@gwaiyur.mb-net.net>
References: <uruf3b$1o06i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 18:29:02 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net;
logging-data="2809116"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mCzuKFAGDSvD9S69XOs+ZhX8IMQ= sha256:ag5rWbu4PkAlZQpY/Uc5nswp2S8VnqFVnZiAJMXPVf4=
sha1:dPczIabbktZT/GqdpRj7hS7DlvY= sha256:ovJMwfnC3QajtCu2Z9NMMQjpGSSYgNrrn5v8RQMndpw=
Content-Language: de-DE, en-US
In-Reply-To: <uruf3b$1o06i$1@dont-email.me>
 by: Marcel Mueller - Mon, 4 Mar 2024 18:29 UTC

Am 02.03.24 um 06:56 schrieb Paul Edwards:
> Whose responsibility is it to clear BSS?
>
> I assume it is the operating system.

Yes. More accurately the operating system initializes memory before it
is mapped into a different process. Otherwise one could simply allocate
memory and read from it to get information from other processes or even
kernel mode code.

> I am now able to open and read/write files,
> but during testing (on PDOS/386) I found an
> issue which I believe is due to uninitialized BSS.

OS/2 and modern operating systems clear the memory. DOS does not clear
anything. And in the C language reading from memory that has not been
written before is undefined behavior.

Marcel

Re: BSS

<us543p$2ln8s$3@gwaiyur.mb-net.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=134&group=comp.os.os2.programmer.misc#134

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail
From: news.5.m...@spamgourmet.org (Marcel Mueller)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: BSS
Date: Mon, 4 Mar 2024 19:32:25 +0100
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <us543p$2ln8s$3@gwaiyur.mb-net.net>
References: <uruf3b$1o06i$1@dont-email.me> <urumcf$1p9kd$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 18:32:25 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net;
logging-data="2809116"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fYDhDroIEo+8E1it9pLxq22yqE0= sha256:9VU7Tzjz65xvbKWxfCOOsx5N5dzKbKgoksftzpf1U9s=
sha1:nctdiO66jvlyFYtNO6IIW2gwWYM= sha256:l88DYXewu287IoRsKIcDJtA2ClvnZUAX1OgM7avTalU=
Content-Language: de-DE, en-US
In-Reply-To: <urumcf$1p9kd$1@dont-email.me>
 by: Marcel Mueller - Mon, 4 Mar 2024 18:32 UTC

Am 02.03.24 um 09:01 schrieb Paul Edwards:
> I changed malloc to calloc in exeload.c and
> the problem was resolved. I didn't notice a
> specific BSS section in the LX header so will
> leave any refining of that to another day.

This is another story. malloc does not clear memory.
Even when the operating system clears memory before it is mapped into a
process malloc may still return dirty memory that has been used by the
same process before when free has been called.

Marcel


devel / comp.os.os2.programmer.misc / Re: BSS

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor