This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Electric Fence for Cygwin
On Fri, Jun 25, 1999 at 01:24:56PM -0400, Glenn Spell wrote:
>> I have a simple hello-world with a single 'char*
>> p=(char*)malloc(10);' line. I compile it with 'gcc hello.c -o
>> hello.exe -lefence'.
>>
>> It crashes with a 'instruction references memory at "0x00000000"'
>> error. A simple debug session with gdb shows that it crashes at
>> '0x61006cd2 in _size_of_stack_reserve__()', before main.
>
>I don't understand any of this. I'm not a programmer. I know that the
>memory location is related to cygwin. I know that all references I
>can find on the net to "_size_of_stack_reserve__()" relate to cygwin
>or mingw (and Mumit reads them all!) or some articles on memory
>management at Microsoft.
Actually this memory location indicates an error that is *not* in
cygwin. It seems that gdb spits this out in some circumstances when
it doesn't know the symbolic name for an address. gdb should always
know symbolic names for addresses in the DLL.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com