From owner-freebsd-current@FreeBSD.ORG Sun May 20 16:43:03 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7D351065670; Sun, 20 May 2012 16:43:03 +0000 (UTC) (envelope-from villa.alberto@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 535EC8FC0C; Sun, 20 May 2012 16:43:03 +0000 (UTC) Received: by wibhj8 with SMTP id hj8so1325591wib.13 for ; Sun, 20 May 2012 09:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=irILV3o6MoT3HUosA6Eth+G/hKoNt3VTAjCeXLK3dHA=; b=j13MtzR4UfnYbwOY8Z/Uv5PLOvTa5ZqETBDr6xJrnEVoCsN1BdR/66cAD3HLhc/uHr Y/eZ0R7q7k618RUi43+rnw4xE7/Lhd2FqNVoM1wEuMP3iHYKE9CLNz0t3bgbtlSYR9HZ /I/puRC7MEkPkE60V9jJk2WeIaJzsiP6jCRH94xOc9e93RKsjGD/veZjmPjwlLV16qrz Had0Lh3kVErLcvUz11H0NitdXrz7Bm5x9KybEHTPynN7+YYZrWWZrbufocTCJWA9HjlZ 6FV/K+BxIbTty/0Sn18CUDr4qhDG7IGRgkQqL3JKJmvKkqUFTUE5Kmzf+vIUPnsbx17q F/nA== Received: by 10.216.214.82 with SMTP id b60mr3983270wep.38.1337532175832; Sun, 20 May 2012 09:42:55 -0700 (PDT) MIME-Version: 1.0 Sender: villa.alberto@gmail.com Received: by 10.227.112.132 with HTTP; Sun, 20 May 2012 09:42:35 -0700 (PDT) In-Reply-To: <4FB88925.4070008@gmail.com> References: <4F9E9E06.4070004@entel.upc.edu> <4FB88925.4070008@gmail.com> From: Alberto Villa Date: Sun, 20 May 2012 18:42:35 +0200 X-Google-Sender-Auth: bRPwHfff8O2Bq9ixPiyqOkul0wo Message-ID: To: davidxu@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: =?ISO-8859-1?Q?Gustau_P=E9rez_i_Querol?= , FreeBSD current Subject: Re: RFC: jemalloc: qdbus sigsegv in malloc_init X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2012 16:43:04 -0000 On Sun, May 20, 2012 at 8:03 AM, David Xu wrote: > qdbus segfaults on my machine too, I tracked it down, and found the probl= em > is in QT, > it deleted current_thread_data_key, =A0but it still uses it in some cxa h= ooks, > =A0I =A0applied the > following patch, =A0and it works fine. Thanks for the analysis David! > I think the bug depends on linking order in QT library ? if the > qthread_unix.cpp is linked > as lastest module, the key will be deleted after all cxa hooks run, then = it > will be fine, > otherwise, it would crash. Is this really possible? --=20 Alberto Villa, FreeBSD committer http://people.FreeBSD.org/~avilla