Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-21 Thread Gustau Pérez i Querol
Now let me dig into qthread_unix.cpp, see how QThreadData::current() works: QThreadData *QThreadData::current() { QThreadData *data = get_thread_data(); if (!data) { void *a; if (QInternal::activateCallbacks(QInternal::AdoptCurrentThread, &a)) { QThread

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-21 Thread Konstantin Belousov
On Mon, May 21, 2012 at 10:54:54AM +0800, David Xu wrote: > On 2012/5/21 1:24, Konstantin Belousov wrote: > >On Sun, May 20, 2012 at 06:42:35PM +0200, Alberto Villa wrote: > >>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

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-21 Thread Dimitry Andric
On 2012-05-21 04:54, David Xu wrote: ... > As I said, it depends on ordering the global objects are destructed, if > the object which deleting > the current_thread_data_key is destructed lastly, the problem wont > happen, but now > it is destructed too early. I believe there is no specification s

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-20 Thread David Xu
On 2012/5/21 10:54, David Xu wrote: On 2012/5/21 1:24, Konstantin Belousov wrote: On Sun, May 20, 2012 at 06:42:35PM +0200, Alberto Villa wrote: 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 problem is in QT, it deleted c

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-20 Thread David Xu
On 2012/5/21 1:24, Konstantin Belousov wrote: On Sun, May 20, 2012 at 06:42:35PM +0200, Alberto Villa wrote: 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 problem is in QT, it deleted current_thread_data_key, but it still

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-20 Thread Konstantin Belousov
On Sun, May 20, 2012 at 06:42:35PM +0200, Alberto Villa wrote: > 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 problem > > is in QT, > > it deleted current_thread_data_key,  but it still uses it in some cxa hooks, > >  I  a

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-20 Thread Alberto Villa
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 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 analysi

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-19 Thread David Xu
On 2012/4/30 22:13, Gustau Pérez i Querol wrote: Hi, the kde team is seeing some strange problems with the new version (4.8.1) of devel/dbus-qt4 with current. It does work with stable. I also suspect that the problem described below is affecting the experimental cinnamon port (an alternativ

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Alberto Villa
On Sat, May 19, 2012 at 12:52 AM, Konstantin Belousov wrote: > How to reproduce the issue locally ? (I do not want to install all KDE > to my test box). Just build devel/dbus-qt4 on 10-CURRENT and run qdbus. It should crash (should you have D-Bus running, which you probably don't have, it would f

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Konstantin Belousov
On Sat, May 19, 2012 at 12:49:02AM +0200, Alberto Villa wrote: > On Sat, May 19, 2012 at 12:37 AM, Konstantin Belousov > wrote: > > Well, there is still not much to read. And, http://pastebin.com/ryBXtqGF. > > shows 'Unknown Paste ID!'. > > Eh, sorry, Gus will provide updated data. > > > That sa

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Alberto Villa
On Sat, May 19, 2012 at 12:37 AM, Konstantin Belousov wrote: > Well, there is still not much to read. And, http://pastebin.com/ryBXtqGF. > shows 'Unknown Paste ID!'. Eh, sorry, Gus will provide updated data. > That said, why do you think that the problem is in system and not in the > application

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Konstantin Belousov
On Sat, May 19, 2012 at 12:16:59AM +0200, Alberto Villa wrote: > On Fri, May 18, 2012 at 11:28 PM, Andriy Gapon wrote: > > you have add new people to the discussion, but unfortunately too little of > > the > > original context is present here...  That is, this email doesn't even > > include a >

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Alberto Villa
On Fri, May 18, 2012 at 11:28 PM, Andriy Gapon wrote: > you have add new people to the discussion, but unfortunately too little of the > original context is present here...  That is, this email doesn't even include > a > description of an actual problem. > Could you please provide the useful cont

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Andriy Gapon
on 18/05/2012 20:01 Alberto Villa said the following: > On Tue, May 1, 2012 at 8:18 PM, Gustau Pérez i Querol > wrote: >> So the problem seems to be not related to jemalloc or malloc. As the >> experimental 4.8.1 devel/dbus-qt4 port works fine in stable, the problem has >> do to with some differe

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Konstantin Belousov
On Fri, May 18, 2012 at 07:01:25PM +0200, Alberto Villa wrote: > On Tue, May 1, 2012 at 8:18 PM, Gustau P?rez i Querol > wrote: > >  So the problem seems to be not related to jemalloc or malloc. As the > > experimental 4.8.1 devel/dbus-qt4 port works fine in stable, the problem has > > do to with

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-18 Thread Alberto Villa
On Tue, May 1, 2012 at 8:18 PM, Gustau Pérez i Querol wrote: >  So the problem seems to be not related to jemalloc or malloc. As the > experimental 4.8.1 devel/dbus-qt4 port works fine in stable, the problem has > do to with some differences between head and stable. When we get more hints > where

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-05-01 Thread Gustau Pérez i Querol
Al 30/04/2012 21:34, En/na Jason Evans ha escrit: On Apr 30, 2012, at 7:13 AM, Gustau Pérez i Querol wrote: the kde team is seeing some strange problems with the new version (4.8.1) of devel/dbus-qt4 with current. It does work with stable. I also suspect that the problem described below is a

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-04-30 Thread Jason Evans
On Apr 30, 2012, at 7:13 AM, Gustau Pérez i Querol wrote: > the kde team is seeing some strange problems with the new version (4.8.1) of > devel/dbus-qt4 with current. It does work with stable. I also suspect that > the problem described below is affecting the experimental cinnamon port (an > a

Re: RFC: jemalloc: qdbus sigsegv in malloc_init

2012-04-30 Thread Adrian Chadd
Hi, Please install valgrind and run the program inside valgrind. See what kind of errors it generates. Adrian ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "free

RFC: jemalloc: qdbus sigsegv in malloc_init

2012-04-30 Thread Gustau Pérez i Querol
Hi, the kde team is seeing some strange problems with the new version (4.8.1) of devel/dbus-qt4 with current. It does work with stable. I also suspect that the problem described below is affecting the experimental cinnamon port (an alternative to gnome3, possible replacement of gnome2).