This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Core dump on 32-bit Cygwin if program calls dlopen
- From: Ken Brown <kbrown at cornell dot edu>
- To: cygwin <cygwin at cygwin dot com>
- Date: Mon, 14 Jul 2014 19:42:05 -0400
- Subject: Core dump on 32-bit Cygwin if program calls dlopen
- Authentication-results: sourceware.org; auth=none
I'm getting a core dump on exit from a program that does nothing but
call dlopen. (But the call to dlopen succeeds.) This happens only in
the 32-bit case. Here's a simple test case.
$ cat test_dlopen.c
#include <stdio.h>
#include <dlfcn.h>
int
main()
{
const char *dllname = "cyggs-9.dll";
void *handle;
printf ("Trying to dlopen %s...", dllname);
handle = dlopen (dllname, RTLD_LAZY);
if (handle)
{
printf ("succeeded.\n");
return 0;
}
else
{
printf ("failed.\n");
return 1;
}
}
$ gcc test_dlopen.c
$ ./a
Trying to dlopen cyggs-9.dll...succeeded.
Aborted (core dumped)
$ echo $?
134
Ken
--
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