delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/09/20/14:42:02

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: <cygwin-apps AT cygwin DOT com>
Subject: RE: get windows error message 0xc0000142 on starting cygwin app
Date: Thu, 20 Sep 2001 20:46:07 +0200
Message-ID: <015c01c14204$8200d6c0$af6407d5@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <20010919110507.H13403@redhat.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal

< On Wed, Sep 19, 2001 at 04:53:09PM +0200, Ralf Habacker wrote:
> >> No, I mean that an instruction that manipulates the stack results in an
> >> error.  That indicates to me that the stack pointer is screwed up.
> >>
> >But that would be code in the ntdll.dll or kernel32.dll ? But as I understand
> >does this code uses the stack of the current process, that is for
> example bash
> >or ssp or gdb, isn't it ?
>
> If you don't think it's the stack pointer, you can verify the issue very
> quickly.  Inspect it in gdb.
>
> (gdb) info reg $esp
> (gdb) x/20x $esp
>
Can you tell me to which adress the stack is be set on starting a new app ?

> >2.  objdump shows that ld by default reserves about 2MB for the dll and
> >exe stack.  Isn't this enough ?
>
> Who knows?  This depends on the application.  Have you tried setting the
> stack size to something larger?  You'd probably have to add a
>
> -Wl,--stack,4194304
>
> to your gcc linker line.
>
This does make no difference.

By the way: How does the process loader calculate the reserved stack size for
the newly started app. Does he takes on of the entry in the executable or dll
below ?

SizeOfStackReserve      00200000 (a)
SizeOfStackCommit       00001000
SizeOfHeapReserve       00100000 b)
SizeOfHeapCommit        00001000

(I have changed the value (as) and (b) but the taskmanager tells no difference.)

> >3.  Do you know where I can find informations (online docu) about the
> >pe format ?  I have recognized some differences in the header like a
> >native win32 app and a ld produced app.  For example the "Subsystem"
> >field differs.  Perhaps this is a relocation problem.  Do you know any
> >way to verify this guess ?
>
> There must be a lot of documentation in Microsoft's MSDN:
>
> http://msdn.microsoft.com/library/default.asp
>
Thanks. I have found the infos.
> cgf
>

- Raw text -


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