Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.misc > #174

Re: EMX problem

From Ilya Zakharevich <nospam-abuse@ilyaz.org>
Newsgroups comp.os.os2.programmer.misc
Subject Re: EMX problem
Date 2011-04-05 18:55 +0000
Organization U.C. Berkeley Math. Department.
Message-ID <slrnipmpck.p8d.nospam-abuse@powdermilk.math.berkeley.edu> (permalink)
References (1 earlier) <fV45K0OBJxbE-pn2-UW9Gwdgwbd4f@localhost> <slrnipjvr6.kmq.nospam-abuse@powdermilk.math.berkeley.edu> <fV45K0OBJxbE-pn2-T1if6jK8e8Ni@localhost> <slrnipke37.ljg.nospam-abuse@powdermilk.math.berkeley.edu> <fV45K0OBJxbE-pn2-1bCYdMdR4XW2@localhost>

Show all headers | View raw


On 2011-04-05, Dave Saville <dave@invalid.invalid> wrote:
> On Mon, 4 Apr 2011 21:30:15 UTC, Ilya Zakharevich 
><nospam-abuse@ilyaz.org> wrote:
>
>> On 2011-04-04, Dave Saville <dave@invalid.invalid> wrote:
>> >> a) Update the max command line to the correct value, 32K.
>> 
>> >> b) Read what the crash errorlog tells you.
>> 
>> > Not easy when there is none - Just a SYS* message.
>> 
>> It shoulda have been quite enough.  Do the corresponding
>> 
>>     help sys*
>> 
>> (actually, one can drop SYS as well ;-).
>> 
>> Ilya
>
> Which boiled down to "you have accessed RAM that does not belong to 
> you" Really helpful :-)

Stupid me; yes, stack overflows do not ALWAYS produce a meaningful
SYS* code if one allocates a large enough chunk on stack!

A similar topic: brain-damaged layout of "native" OS/2 executables:
while executables produced with EMX's bind.exe have a large no-read
no-write gap between stack and other segments, it is (at least)
non-obvious how to do it with link386 (or ilink).

Therefore, if one allocates 1MB on stack, one would just jump from one
segment to another; if the other one is writable, one may get into a
lot of trouble...

Ilya

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: EMX problem "Dave Saville" <dave@invalid.invalid> - 2011-04-03 20:31 +0000
  Re: EMX problem Ilya Zakharevich <nospam-abuse@ilyaz.org> - 2011-04-04 17:27 +0000
    Re: EMX problem "Dave Saville" <dave@invalid.invalid> - 2011-04-04 19:01 +0000
      Re: EMX problem Ilya Zakharevich <nospam-abuse@ilyaz.org> - 2011-04-04 21:30 +0000
        Re: EMX problem "Dave Saville" <dave@invalid.invalid> - 2011-04-05 13:43 +0000
          Re: EMX problem Ilya Zakharevich <nospam-abuse@ilyaz.org> - 2011-04-05 18:55 +0000
      Re: EMX problem "A.D. Fundum" <what.ever@neverm.ind> - 2011-04-06 13:24 +0200

csiph-web