This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: cygwin.dll bug
- To: colin at bird dot fu dot is dot saga-u dot ac dot jp
- Subject: RE: cygwin.dll bug
- From: dahms at ifk20 dot mach dot uni-karlsruhe dot de
- Date: Fri, 31 Jan 1997 03:00:42 EST
- CC: gnu-win32 at cygnus dot com, dahms at ifk20 dot mach dot uni-karlsruhe dot de
Hi, you wrote:
: >Program received signal SIGSEGV, Segmentation fault.
: >strncpy (dst=0x263eb30 "H_c\002\027&@", src=0x0, n=20)
: The debugger appears to be telling you that you called strncpy with a null
: src pointer (src=0x0), which would indeed cause a segmentation fault. If
: your code is not at fault then something truly bizarre is happening to make
: the src pointer zero before it gets to the strncpy function. I have to
: admit I suspect the calling code (i.e. your code), not the library... sorry.
I hope that's not very old, bad code relying to dereference NULL...
Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".