[PATCH] initialize variable for RtlLookupFunctionEntry

Michael Haubenwallner michael.haubenwallner@ssi-schaefer.com
Mon Oct 9 16:15:00 GMT 2017


Hi,

for the records: The (random) situation leading to attached patch:

Reproducibly encountered the binutils-nm process falling into an
endless loop during some build process - but the reproducibility
depended on the length and/or the number of elements in the PATH
environment variable. Attaching with gdb shows endless wait for
tls::stacklock in _sigbe. More debugging outlines that nm first
received the expected SIGPIPE, but subsequently received SIGSEGV
while in the RtlLookupFunctionEntry windows function, causing no
signal handler to be finally executed, but returning to _sigbe.

The command in question (with longer PATH environment variable) was:
$ x86_64-pc-cygwin-nm -f posix -A /lib/libcygwin.a | sed 1q
It was important to locate nm via PATH, not with /path/to/nm.

Thanks!
/haubi/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cygwin-initialize-variable-for-stack-unwinding.patch
Type: text/x-patch
Size: 940 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20171009/5b1e4d48/attachment.bin>


More information about the Cygwin-patches mailing list