From owner-freebsd-stable@FreeBSD.ORG Wed Jun 3 11:34:06 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E4201668 for ; Wed, 3 Jun 2015 11:34:06 +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 785C719B2 for ; Wed, 3 Jun 2015 11:34:06 +0000 (UTC) (envelope-from ortadur@web.de) Received: from [131.169.214.139] by 3capp-webde-bs60.server.lan (via HTTP); Wed, 3 Jun 2015 13:34:04 +0200 MIME-Version: 1.0 Message-ID: From: "Andre Meiser" To: freebsd-stable@freebsd.org Subject: Many core dumps in pthread_getspecific. Content-Type: text/plain; charset=UTF-8 Date: Wed, 3 Jun 2015 13:34:04 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:Zy+WSBjq7xjv1O/qkChLViXlecd1H2wiahJLiQhi1lF bTMO/6uFDTz41rZyBXKnysvXj9VgAiUK1islYdCVUIa9BFiHQP /72ATUbXXab0LftZWAPjH1JdLnGPbyANeLoMMzbVWNW4Mow3T1 //MwLeFnK114c9lrJwKu6O53s+Sip9PZSA30Lnyf9IiutVC72y p+VY15znL/y7f/FII+1KCt8riXT1bigDQka870ZMKw5qgrSwZM irYGmmAhqlv2TNEqD3cY+8+CoR6SL+Hefj7TOVQeYYO5clA65f DmtLLk= X-UI-Out-Filterresults: notjunk:1;V01:K0:icLovBhqe/w=:RMJ2s+RrBeGG4hRirXOswe Vy8D8+AVHd+I3USRjW4v7LWNjbCFargJ3XfAA9HfrPc+bJWzFx5tMKY3VwgOFkMDAyTFXUwlG CB4sQ6OEQWxpPiiCtb6pmqWzcYdOiqi08SsS8Yg9BGJ1L64HNBAaKvsd8SSeFldMXaBFZ4sKL K9zA7EEOIgtgJkWAG2Y1fthA491ld4yxN7injgkVehQcSVj0aFc4Z+tU+sRoRz8dpnIbKtYLo csvYFd1dPG1GhQBcM/QxL8C+LEmFPFDgiGUxtq2KMGgJXcHY9WmjFGbQIgJgoMZCgeH+JMorH u9760YhiipI4z4IVGBqQam+bfCMAodW3BczSXcIiLHSfonxMxDHZi00BwjkZgpu0kMeAhqnK6 O31sxBGMVERjGNFRY3mQjTYAZIZR1agZqBbunEmueJbmMOIOYmb7eKFE7XofT+LG/LWu3xcBB Nk7wyuJcbA== X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2015 11:34:07 -0000 Hi, I'm new to FreeBSD and I'm running into a lot of core dumps (mainly from Xorg, but also from vim, firefox, ...). That's why I asked on freebsd-questions: https://lists.freebsd.org/pipermail/freebsd-questions/2015-June/266138.html https://lists.freebsd.org/pipermail/freebsd-questions/2015-June/266141.html The last Xorg crash was less than 2h ago. :( It looks like that there is a missing check for NULL in lib/libkse/thread/thr_spec.c (line 211-214): pthread = _get_curthread(); /* Check if there is specific data: */ if (pthread->specific != NULL && (unsigned int)key < PTHREAD_KEYS_MAX) { If pthread is NULL it will core dump. So maybe something like this would help: if (pthread != NULL && pthread->specific != NULL && (unsigned int)key < PTHREAD_KEYS_MAX) { But as I'm said, I'm new to FreeBSD I can't evaluate it yet. I'm running the most recent stable: % uname -a FreeBSD andre 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 UTC 2015 I haven't compiled the base system so far. Maybe a more experienced FreeBSD guy can verify this and decide if it makes any sense or if I have to dig any deeper into it. Sincerely yours Andre.