From owner-freebsd-questions@FreeBSD.ORG Fri Feb 2 21:40:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 374F316A4DE for ; Fri, 2 Feb 2007 21:40:22 +0000 (UTC) (envelope-from gregory.nou@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id C18F713C441 for ; Fri, 2 Feb 2007 21:40:19 +0000 (UTC) (envelope-from gregory.nou@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so855887uge for ; Fri, 02 Feb 2007 13:40:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kQavsO0h2WS6sZU4eHXNoKCbDxWhxXrEoz/Xbn5K7qNDQfa1CJo0kx+AFXxfRKo5Oxom/dJuw7Df0i1KSLXhUCUIJRPjC2YoQYqfF0bmyuddq8ZTUtv57/4aKygv8/iipWY3j0o9jzTjQhKy70ZdNL90d1r5xd9+h9N1awpE62s= Received: by 10.82.163.13 with SMTP id l13mr1426682bue.1170452418081; Fri, 02 Feb 2007 13:40:18 -0800 (PST) Received: by 10.82.185.15 with HTTP; Fri, 2 Feb 2007 13:40:18 -0800 (PST) Message-ID: <85c22ba00702021340k640fd0a2u61f4209c9ebd8315@mail.gmail.com> Date: Fri, 2 Feb 2007 16:40:18 -0500 From: "Gregory Nou" To: freebsd-questions@freebsd.org In-Reply-To: <85c22ba00702012048m710cee5dpf08db29298d407ca@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <85c22ba00702012048m710cee5dpf08db29298d407ca@mail.gmail.com> Subject: Re: Problem of segmentation fault with a lot of KDE programs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2007 21:40:22 -0000 Hi again ! Replying to myself, as I made some progress, and would like to share them. I put the line : libpthread.so.2 libpthread.so.1 (which are /lib/libpthread.so.2 and /usr/local/lib/compat/libpthread.so.1) in /etc/libmap.conf and now, kdevelop, kdvi and amarok work... but with this tuning, Terminal and Mozilla are not working, and I suspect that it's the case for lot of other programs. Error is : /libexec/ld-elf.so.1: /usr/local/lib/compat/libpthread.so.1: Undefined symbol "__malloc_lock" So how could I make it work ? How could I help the system to choose between both ? I tried to put things like : [/usr/local/bin/kdevelop-bin] libpthread.so.2 libpthread.so.1 in libmap.conf, but it does not work for all the programs, and that force me to add a lot of things manually to the libmap.conf file, which is not that good... Thanks ! Gr=E9gory 2007/2/1, Gregory Nou : > Hi, > > After trying to figure out how to solve the problem I have on my own, > I'd like to submit it to you, to get some hints. > Here it is: almost all programs related to kde (kdevelop, kghosviewer, > kile, ...) and gaim are segfaulting, because of a problem which seems > to be related to pthread. > Please note that everything else is working fine : xfce-4.4, anjuta, > firefox, etc... > > FreeBSD 7.0-CURRENT #6: Fri Feb 2 13:47:26 EST 2007 > root@greg:/usr/obj/usr/src/sys/MYSMP i386 > > running gdb kile : > > Program received signal SIGSEGV, Segmentation fault. > [Switching to LWP 100060] > 0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2 > (gdb) bt > #0 0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2 > #1 0x29d0374a in pthread_self () from /lib/libpthread.so.2 > #2 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 > #3 0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2 > #4 0x29d0374a in pthread_self () from /lib/libpthread.so.2 > #5 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 > #6 0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2 > #7 0x29d0374a in pthread_self () from /lib/libpthread.so.2 > #8 0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 > ... > > and it goes far, repeating it ad vitam. (using ktrace and kdump, wc -l > outputs 637047) > By the way, the equivalent in the ktrace part is : > 2913 kile CALL getpid > 2913 kile RET getpid 2913/0xb61 > 2913 kile CALL getpid > 2913 kile RET getpid 2913/0xb61 > 2913 kile CALL getpid > 2913 kile RET getpid 2913/0xb61 > > Same for kdevelop-bin and all the kde-related who segfault (because > some rare k(something) work, like konsole oder KDE System Guard) > > For gaim, the error message is a bit different, but bt gives the same out= put : > > Program received signal SIGSEGV, Segmentation fault. > [Switching to LWP 100079] > 0x28b38d3e in sysctl () from /lib/libc.so.6 > (gdb) bt > #0 0x28b38d3e in sysctl () from /lib/libc.so.6 > #1 0x28a852b2 in pthread_join () from /lib/libpthread.so.2 > #2 0x28a7974a in pthread_self () from /lib/libpthread.so.2 > #3 0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 > #4 0x28a852b2 in pthread_join () from /lib/libpthread.so.2 > #5 0x28a7974a in pthread_self () from /lib/libpthread.so.2 > #6 0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2 > > I experience these problems for more than a week now. Everything is > up-to-date on my system (src + ports) - last cvsup a few hours ago. I > recompiled everything a few time. > As I did not see feedback on forums or on mailing lists, I assume I am > the only one who has this problem. Which makes me feel a bit lonely ;) > > Could you please me help me ? Also, I would be glad to provide any > further information like dmesg, bt, ktrace, whatever, ... > > Thanks ! > Gregory >