delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/24/22:12:26

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: JRSON AT NetZero DOT Net (John R Hanson)
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Seg fault in _size_of_stack_reserve__ ()
Date: Wed, 25 Aug 1999 02:05:18 GMT
Reply-To: JRSON AT NetZero DOT Net
Message-ID: <37c44a86.30788955@smtp.netzero.net>
References: <19990824230149 DOT 2523 DOT rocketmail AT web1404 DOT mail DOT yahoo DOT com>
In-Reply-To: <19990824230149.2523.rocketmail@web1404.mail.yahoo.com>
X-Mailer: Forte Agent 1.5/32.452
MIME-Version: 1.0
Note-from-DJ: This may be spam

_size_of_stack_reserve__()

(It is actually in the 'A'bsolute .section, and is the 
Size you want windows to reserve for your stack-)

Is the Highest addressed symbol in your program it just means
that the program is dying in a system .dll that doesn't have any
symbols.

you need to compile and link with -gcoff == /ZI
link the program with ld.exe

gdb yourprog.exe
b main  /* or WinMain */
run /* to get the dll symbols to load */
b    /* at the function you are trying to call in the .dll */
s   /* until you get to the call into the system .dll that's having
   the problem */
  figure out what went wrong.-)

Otherwise use Visual Stupidio if you can't link with ld.

On Tue, 24 Aug 1999 16:01:49 -0700 (PDT), you wrote:

>This is the latest chapter in my struggle with Windows
>DLLs.
>
>I combined the advice of Mumit Khan (use dllwrap) with
>that of Paul Sokolovsky (link your static libraries
>into one DLL), with the result that I can finally
>build a DLL.  My thanks to both of you.
>
>My DLL consists of two files, static link library

No, this is a stub library, or implib

>libntonly.a and "DLL proper" ntonly.dll.
>
>BTW, I had to put ntonly.dll in the directory that
>holds my executables.  I couldn't get either -rpath or
>LD_RUN_PATH to work.  But never mind.  That's minor.

windows searches %path% and a few other places. use

path %path%;path\to\dll\dir or PATH=$PATH:path/to/dll/dir depending on your shell

>
>What's major is what happens when I run the program. 
>I call a function, it enters a `for' loop and I die in
>_size_of_stack_reserve__().  Anyone got an
>explanation?
>
>Other clues:  `nm' says that both the executable and
>ntonly.dll know the above symbol, as well as a
>__size_of_heap_reserve__.  Each file says the symbols
>are type 'A' and they agree on their addresses.
>===
>-- 
>Opinions expressed above are not necessarily my employer's.
>James M. Stern
>ITG Inc.  Culver City, CA (213) 270-7955
>__________________________________________________
>Do You Yahoo!?
>Bid and sell for free at http://auctions.yahoo.com

________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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