delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/14/19:42:42

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=Yom
5XJxRWCcsctWw6oEfA3265x0rIYw2Ey1zw/LFW6oCP8uVU7igVd3M0RfqiENUiwU
U54iDJxBdo3Btt9YlyCNJerDi8OfWA++cLndDXpAEtaqjTEglDcNI2fo8eHDYaP8
JgpSPg8/O33euHxXKOOvLcOgm8e2igZVUlXidUaA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=T9aqeHaPH
xLAfz5kviUjEg2Lf18=; b=l/GpzE+/w6O8uqK8MfGlburCkj/DuxEhvgbslUao5
ZrA3t8X1tvbfQllRiFyn9puh6KWbxWA3PJ/71u8HuGTKZz2FdIDz/ZddHgwJQ2uV
i95fTIfY41MgVyj6rAUKldFd2Jjd0UewLDuBEZjBPSXvneV3gcz3ttPd93hECVWK
Ls=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: limerock03.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <53C46ACD.5060601@cornell.edu>
Date: Mon, 14 Jul 2014 19:42:05 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: Core dump on 32-bit Cygwin if program calls dlopen
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019