From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9135 invoked by alias); 31 Jul 2003 14:28:55 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 9114 invoked from network); 31 Jul 2003 14:28:55 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 31 Jul 2003 14:28:55 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 46FF3148BE for ; Thu, 31 Jul 2003 16:28:01 +0200 (MEST) Date: Thu, 31 Jul 2003 14:28:00 -0000 From: Thorsten Kukuk To: libc-hacker@sources.redhat.com Subject: C++/dlerror/pthread problem Message-ID: <20030731142801.GA9594@suse.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline User-Agent: Mutt/1.4i Organization: SuSE Linux AG, Nuernberg, Germany X-SW-Source: 2003-07/txt/msg00073.txt.bz2 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 608 Hi, The appended example program works fine, if not linked against libpthread or if it is compiled as C program. But as C++ program linked against libpthread, it will seg.fault in dlerror(). Does somebody know why? I know it is a bad idea to call dlerror() without any other dl* call before, but people are doing so ... -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SuSE Linux AG Deutschherrnstr. 15-19 D-90429 Nuernberg -------------------------------------------------------------------- Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dlerror.cc" Content-length: 175 /* Compile with g++ dlerror.cc -ldl -lpthread */ #include #include int main () { std::cerr << "vor dlerror" << std::endl; dlerror(); return 0; } --tThc/1wpZn/ma/RB--