X-Spam-Check-By: sourceware.org Subject: Re: help with dynamic linkage? From: skaller To: cygwin AT cygwin DOT com In-Reply-To: <43ED76B1.A42C47CF@dessent.net> References: <1139634710 DOT 8498 DOT 16 DOT camel AT rosella> <1139635375 DOT 8498 DOT 19 DOT camel AT rosella> <43ED76B1 DOT A42C47CF AT dessent DOT net> Content-Type: text/plain Date: Sat, 11 Feb 2006 16:54:51 +1100 Message-Id: <1139637291.8498.27.camel@rosella> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Fri, 2006-02-10 at 21:31 -0800, Brian Dessent wrote: > skaller wrote: > > > Program received signal SIGSEGV, Segmentation fault. > > 0x610ae938 in pthread_key_create () from /usr/bin/cygwin1.dll > > (gdb) bt > > *sigh* Not an actual fault. Ah, ok. Thanks. But now it is worse! I type continue and the program aborts with a core dump. The statically linked version doesn't. The code IS different: the cygwin dynamic link version is the same as the linux code (which works). There is one difference though: on Linux I'm using gcc 4.0, Cygwin is using gcc 3.4.4. Curious -- seems like the dll isn't loaded until it is referenced, is that right? (Thats bad .. is there any way to force all the symbols to resolve at startup?) -- John Skaller Felix, successor to C++: http://felix.sf.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/