From owner-freebsd-questions@FreeBSD.ORG Wed Jun 3 07:22:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14213AFA for ; Wed, 3 Jun 2015 07:22:48 +0000 (UTC) (envelope-from ortadur@web.de) Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.web.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 96C571D8C for ; Wed, 3 Jun 2015 07:22:47 +0000 (UTC) (envelope-from ortadur@web.de) Received: from [31.16.117.145] by 3capp-webde-bs56.server.lan (via HTTP); Wed, 3 Jun 2015 09:09:43 +0200 Message-ID: From: ortadur@web.de To: freebsd-questions@freebsd.org Subject: Many core dumps in pthread_getspecific - how to debug? Date: Wed, 3 Jun 2015 09:09:43 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:g1d761YI9282fiiZJw1owhnAaIB3MXbLuzNWmra6ElX muFyNUUlwFmLAmhVNpRpzzgABmbkoOF0g2Yf6WQTgFe1V79ZTy aB4+7Z5ODYj1TJGcCgrj2DBtu8x7Lw4T3tuhClozpoDLQYPZsn XOBwrAgmAiEhbCZfK2Sb2m/VMP86GTZMbxY3lMe7mR0XNCM9uV Q9v3Iczm5tGKhNPu8odPK0jCg+geHt4n30txbPvRjphKOrvdTW qdK5rnJv51wV9CFtOjlDpDg6TYZdgGuOmzOY1O9mvExtJf/Wej S/rx7E= X-UI-Out-Filterresults: notjunk:1;V01:K0:Kb11EBbqyJ8=:KPvZxy+IyypBuWB04ILzgP JRMa7aOcFF6rx/JKBDPyh/n5ku4jjXW+T1Dyh0GQ7iakxIenonf2eKWKZj/aamixMAqPYRFna fyYxBSZDDv3sDSpAL9kMgJ3aHXcyTQUevKsdSw2XdsNAG/V1T0uNZaLUmWr7PGNjlwz8YImot 6nMZ5k89yh5M0TXBzW7ayJRiT8BcmqNkcXw6f9QMvYRH42bvpMyuipUUWvV6Avmn6H37+9nwH n4qRorb/Iw0Cd1SswMhBJr+p6gUJRroWr7+igNOSSRg5CL3TtKbWgEJjO4zs3JZjR/xYIWKYy ZY7JrTX7LI5CFsBPoPv4lsjoLd6zZgPyuWw1Ek7lYUqkidCNT7Vgi1OdxULuJ0PIxAZWpDBHd /lS9E8LDGZysu/ys8Gbh/zAnm7rD45z3lg3u8OvvWqB41/FGZEey+QASyFeHTlLZ7JvA9NUZ8 IcNlPJ7Xeg== MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2015 07:22:48 -0000 Hi, I'm new to FreeBSD, and it looks nice so far. There is just one thing which bugs me. I'm getting a lot of core dumps in many different programmes like Xorg, vim, firefox, ... and looking into the backtrace it's always inside pthread_getspecific () from /lib/libthr.so.3. You can imagine that especially Xorg is very annoying. I'm using awesome as a window manager and I'm always up to date with the latest patches. Sometimes it's crashing multiple times a day, sometimes a few days without a core dump. This week I'd just 1 core dump of vim, the last week I'd 11 core dumps from Xorg and also some more from other programmes. I didn't found /lib/libthr.so.3 inside the ports, so I guess it's part of the base system. The typical backtrace looks like this (not always exactly the same, but always ends up at pthread_getspecific): [New Thread 803c07c00 (LWP 100601/Xorg)] [New Thread 803c06400 (LWP 100205/Xorg)] (gdb) bt #0 0x00000008014816a2 in pthread_getspecific () from /lib/libthr.so.3 #1 0x00000008014815ed in pthread_getspecific () from /lib/libthr.so.3 #2 0x0000000801483b01 in pthread_mutex_unlock () from /lib/libthr.so.3 #3 0x000000080266afe8 in sbrk () from /lib/libc.so.7 #4 0x000000080266b251 in sbrk () from /lib/libc.so.7 #5 0x0000000802674264 in realloc () from /lib/libc.so.7 #6 0x000000000059c988 in ReadRequestFromClient () #7 0x00000000004353f9 in UpdateCurrentTimeIf () #8 0x000000000042a007 in _start () #9 0x0000000000429aff in _start () #10 0x0000000800816000 in ?? () #11 0x0000000000000000 in ?? () % uname -a FreeBSD andre 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 It's running on real hardware, it's not a VM. And now the questions: What do I have to do to debug this and get rid of this bug? Whom do I need to send those debug infos? Sincerely yours Andre.