Core dump on 32-bit Cygwin if program calls dlopen

Houder houder@xs4all.nl
Tue Jul 15 13:34:00 GMT 2014


>> FWIW, the problem disappears if I revert gcc-core and libgcc1 to 4.8.2-2.

> JonY, do you have a chance to have a look into this issue?

Trying to help ...

----- test program
#include <windows.h>
#include <stdio.h>

//int main (int argc, char **argv)
int main (int argc, char *argv[])
{
  HMODULE m = LoadLibrary (argv[1]);
  if (!m)
    printf ("%s: %lu\n", argv[1], GetLastError ());
  else
    printf ("Success.\n");
    // 15/07/2014: currently resulting in a crash on 32-bits only (gcc only)
  return 0;
}
-----

The test program above fails (abort) for every cyg*.dll in /usr/bin that pulls in cyggcc_s-1.dll.

(if not, the test program exits normally)

(using the same compiler and cygwin1.dll as Ken did)

H.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list