Race Condition Crashes on 0.4.2 and 0.4.3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Race Condition Crashes on 0.4.2 and 0.4.3

Jason A. Donenfeld
Hi all,

I've been receiving crashes with weechat since 0.4.2. I had hoped
0.4.3 would fix things, but it does not. The latest version I can run
is 0.4.1.

When weechat starts, it segfaults and prints this message:

 weechat: ../nptl/pthread_mutex_lock.c:350: __pthread_mutex_lock_full:
Assertion `(-(e)) != 3 || !robust' failed.

                                                     Aborted
or

weechat: tpp.c:62: __pthread_tpp_change_priority: Assertion `new_prio
== -1 || (new_prio >= __sched_fifo_min_prio && new_prio <=
__sched_fifo_max_prio)' failed.


                               Aborted

Othertimes it exits with "illegal instruction" and this in dmesg
"[558232.781319] traps: weechat[25733] trap invalid opcode
ip:6a2866c6aad4 sp:7173723bd320 error:0 in
libpthread-2.18.so[6a2866c58000+19000]", and othertimes with simply
"Aborted".

I suppose there's some sort of race I'm hitting.

This occurs on Gentoo Hardened.

Thanks,
Jason

_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

Re: Race Condition Crashes on 0.4.2 and 0.4.3

Sébastien Helleu
On Wed, Feb 12, 2014 at 04:00:46PM +0100, Jason A. Donenfeld wrote:

> Hi all,
>
> I've been receiving crashes with weechat since 0.4.2. I had hoped
> 0.4.3 would fix things, but it does not. The latest version I can run
> is 0.4.1.
>
> When weechat starts, it segfaults and prints this message:
>
>  weechat: ../nptl/pthread_mutex_lock.c:350: __pthread_mutex_lock_full:
> Assertion `(-(e)) != 3 || !robust' failed.
>
>                                                      Aborted
> or
>
> weechat: tpp.c:62: __pthread_tpp_change_priority: Assertion `new_prio
> == -1 || (new_prio >= __sched_fifo_min_prio && new_prio <=
> __sched_fifo_max_prio)' failed.
>
>
>                                Aborted
>
> Othertimes it exits with "illegal instruction" and this in dmesg
> "[558232.781319] traps: weechat[25733] trap invalid opcode
> ip:6a2866c6aad4 sp:7173723bd320 error:0 in
> libpthread-2.18.so[6a2866c58000+19000]", and othertimes with simply
> "Aborted".
>
> I suppose there's some sort of race I'm hitting.
>
> This occurs on Gentoo Hardened.
>
> Thanks,
> Jason
>
> _______________________________________________
> Weechat-dev mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/weechat-dev
Hi Jason,

Could you try to run weechat without plugins, with: weechat -p
Does it crash too?

If not, maybe one plugin is causing the problem. So you can start without
plugins and try to load them one by one (/plugin load <tab>).

If you still have crash with the -p argument, then try:

  weechat -p --no-gnutls --no-gcrypt

These 2 debug parameters will disable gnutls and gcrypt (they must not be used
in a normal run). Maybe the init of these libs is crashing.

And could you please get a backtrace of the problem by running weechat in gdb?
Look at user's guide for more info:
http://weechat.org/files/doc/devel/weechat_user.en.html#report_crashes

If you need more help, please join #weechat on irc.freenode.net, there are lot
of people (including me) to help you.

Cordialement / Best regards.

--
Sébastien Helleu

web: flashtux.org / weechat.org      mail: [hidden email]
irc: FlashCode @ irc.freenode.net    xmpp: [hidden email]

_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Race Condition Crashes on 0.4.2 and 0.4.3

Jason A. Donenfeld
On Wed, Feb 12, 2014 at 6:22 PM, Sébastien Helleu
<[hidden email]> wrote:
> Could you try to run weechat without plugins, with: weechat -p
> Does it crash too?
>
> If not, maybe one plugin is causing the problem. So you can start without
> plugins and try to load them one by one (/plugin load <tab>).

It crashes during /plugin load irc, but not the others. I'll play some
more, try to get a backtrace, etc.

_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

Re: Race Condition Crashes on 0.4.2 and 0.4.3

Jason A. Donenfeld
More details:

This occurs only if irc is loaded when python is also loaded.

_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

Re: Race Condition Crashes on 0.4.2 and 0.4.3

Jason A. Donenfeld
In reply to this post by Jason A. Donenfeld
Okay, two different backtraces, neither having to do with python....


(gdb) bt
#0  0x00006448f718fad4 in __lll_lock_elision () from /lib64/libpthread.so.0
#1  0x00006448fa98e8be in ?? () from /usr/lib64/libgnutls.so.28
#2  0x00006448faa2c16e in ?? () from /usr/lib64/libgnutls.so.28
#3  0x00006448fa972218 in ?? () from /usr/lib64/libgnutls.so.28
#4  0x00006448fa97261a in ?? () from /usr/lib64/libgnutls.so.28
#5  0x00006448fa974116 in ?? () from /usr/lib64/libgnutls.so.28
#6  0x00006448fa976928 in gnutls_handshake () from /usr/lib64/libgnutls.so.28
#7  0x00000e43a73e14d1 in network_connect_child_read_cb ()
#8  0x00000e43a73d8a46 in hook_fd_exec ()
#9  0x00000e43a73734fe in gui_main_loop ()
#10 0x00000e43a7368820 in main ()

(gdb) bt
#0  0x000074975344fe8e in raise () from /lib64/libc.so.6
#1  0x00007497534515df in abort () from /lib64/libc.so.6
#2  0x000074975428f324 in ?? () from /usr/lib64/libgnutls.so.28
#3  0x00007497541d5218 in ?? () from /usr/lib64/libgnutls.so.28
#4  0x00007497541d561a in ?? () from /usr/lib64/libgnutls.so.28
#5  0x00007497541d7116 in ?? () from /usr/lib64/libgnutls.so.28
#6  0x00007497541d9928 in gnutls_handshake () from /usr/lib64/libgnutls.so.28
#7  0x00000fbe153084d1 in network_connect_child_read_cb ()
#8  0x00000fbe152ffa46 in hook_fd_exec ()
#9  0x00000fbe1529a4fe in gui_main_loop ()
#10 0x00000fbe1528f820 in main ()

_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev