ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/09/19/11:04:49

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
Date: Wed, 19 Sep 2001 11:05:07 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-apps AT cygwin DOT com
Subject: Re: get windows error message 0xc0000142 on starting cygwin app
Message-ID: <20010919110507.H13403@redhat.com>
Reply-To: cygwin-apps AT cygwin DOT com
Mail-Followup-To: cygwin-apps AT cygwin DOT com
References: <20010919095716 DOT B13403 AT redhat DOT com> <000201c1411a$cc3cb410$651c440a AT BRAMSCHE>
Mime-Version: 1.0
In-Reply-To: <000201c1411a$cc3cb410$651c440a@BRAMSCHE>
User-Agent: Mutt/1.3.21i

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

>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.

>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

cgf

- Raw text -


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