Re: RFC: jemalloc: qdbus sigsegv in malloc_init

From: Alberto Villa <avilla_at_FreeBSD.org>
Date: Sun, 20 May 2012 18:42:35 +0200
On Sun, May 20, 2012 at 8:03 AM, David Xu <listlog2011_at_gmail.com> wrote:
> qdbus segfaults on my machine too, I tracked it down, and found the problem
> is in QT,
> it deleted current_thread_data_key,  but it still uses it in some cxa hooks,
>  I  applied the
> following patch,  and 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?
-- 
Alberto Villa, FreeBSD committer <avilla_at_FreeBSD.org>
http://people.FreeBSD.org/~avilla
Received on Sun May 20 2012 - 14:43:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:27 UTC