From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15036 invoked by alias); 30 Oct 2009 14:53:19 -0000 Received: (qmail 15003 invoked by uid 48); 30 Oct 2009 14:53:04 -0000 Date: Fri, 30 Oct 2009 14:53:00 -0000 Message-ID: <20091030145304.15002.qmail@sourceware.org> From: "heuler at infosim dot net" To: glibc-bugs@sources.redhat.com In-Reply-To: <20090917113439.10652.heuler@infosim.net> References: <20090917113439.10652.heuler@infosim.net> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/10652] getaddrinfo causes segfault if multithreaded and linked statically X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00201.txt.bz2 ------- Additional Comments From heuler at infosim dot net 2009-10-30 14:53 ------- Hello! I included the whole pbthread: Using "-static -lpthread" or "-static /usr/lib64/libpthread.a" creates the same binary. The lib pthread is also used by our code so should be included in the binary. But the binary create like above still has the problems! Our solution is to link libc, libm and libpthread dynamic on a Ubuntu LTS 8.0.4 system. This binary works also on most other systems (with reasonable new glibc). On strange thing is: if I compile dynamic the same on a Fedora 7 system and run it on e.g. SLES 10 the binary breaks already in the loader with Floating Exception. The binary compiled on Unbuntu with the same setup works fine. That is strange (probable SLES has no standard glibc) -- What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED http://sourceware.org/bugzilla/show_bug.cgi?id=10652 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.