RFC: jemalloc: qdbus sigsegv in malloc_init

Alberto Villa avilla at FreeBSD.org
Sun May 20 16:43:04 UTC 2012


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


More information about the freebsd-current mailing list