public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Core dump on 32-bit Cygwin if program calls dlopen
@ 2014-07-15 13:34 Houder
  0 siblings, 0 replies; 22+ messages in thread
From: Houder @ 2014-07-15 13:34 UTC (permalink / raw)
  To: cygwin

>> 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

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Core dump on 32-bit Cygwin if program calls dlopen
@ 2014-07-15 14:45 Jan Nijtmans
  2014-07-15 15:29 ` Corinna Vinschen
  0 siblings, 1 reply; 22+ messages in thread
From: Jan Nijtmans @ 2014-07-15 14:45 UTC (permalink / raw)
  To: cygwin

2014-07-15 16:39 GMT+02:00 Corinna Vinschen:
> On Jul 15 21:55, JonY wrote:
>> On 7/15/2014 21:08, Corinna Vinschen wrote:
>> >>
>> >> 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?
>> >
>>
>> Sorry, I have been busy these few weeks, but I am well aware that there
>> is a problem with one of the libgcc changes, but has yet to investigate it.
>>
>> I believe Jon Turney has looked into it somewhat.
>
> Sounds good.  Thanks in advance.

Is this essentially the same problem as described here?

    <http://gcc.gnu.org/ml/gcc/2013-05/msg00180.html>

Regards,
           Jan Nijtmans

--
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

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Core dump on 32-bit Cygwin if program calls dlopen
@ 2014-07-14 23:42 Ken Brown
  2014-07-15  9:03 ` Corinna Vinschen
  0 siblings, 1 reply; 22+ messages in thread
From: Ken Brown @ 2014-07-14 23:42 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-07-25 12:37 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-15 13:34 Core dump on 32-bit Cygwin if program calls dlopen Houder
  -- strict thread matches above, loose matches on Subject: below --
2014-07-15 14:45 Jan Nijtmans
2014-07-15 15:29 ` Corinna Vinschen
2014-07-14 23:42 Ken Brown
2014-07-15  9:03 ` Corinna Vinschen
2014-07-15 11:45   ` Ken Brown
2014-07-15 13:08     ` Corinna Vinschen
2014-07-15 13:56       ` JonY
2014-07-15 14:39         ` Corinna Vinschen
2014-07-16  7:02           ` Corinna Vinschen
2014-07-16 22:03             ` JonY
2014-07-17  7:37               ` Corinna Vinschen
2014-07-17 15:31                 ` Jon TURNEY
2014-07-17 18:24                   ` Corinna Vinschen
2014-07-20 22:02                     ` JonY
2014-07-22  8:27                     ` Corinna Vinschen
2014-07-22 13:00                       ` Jon TURNEY
2014-07-22 13:20                         ` Corinna Vinschen
2014-07-24 13:08                           ` Kai Tietz
2014-07-24 13:45                             ` Corinna Vinschen
2014-07-24 22:15                               ` JonY
2014-07-25 12:37                                 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).