[gnutls-devel] crash inside of wrap_nettle_rnd?

Jason A. Donenfeld Jason at zx2c4.com
Wed Feb 12 23:44:13 CET 2014


Well this is interesting. Evidently sometimes it crashes in this error
path instead:

#0  0x00006cc0a1495e8e in raise () from /lib64/libc.so.6
#1  0x00006cc0a14975df in abort () from /lib64/libc.so.6
#2  0x00006cc0a148e2b2 in ?? () from /lib64/libc.so.6
#3  0x00006cc0a148e376 in __assert_fail () from /lib64/libc.so.6
#4  0x00006cc09ea2fec0 in __pthread_tpp_change_priority () from
/lib64/libpthread.so.0
#5  0x00006cc09ea23ed8 in __pthread_mutex_lock_full () from
/lib64/libpthread.so.0
#6  0x00006cc0a224ac8c in gnutls_system_mutex_lock
(priv=0x6cc0a25583b8 <rnd_mutex>) at system.c:228
#7  0x00006cc0a231d6fc in wrap_nettle_rnd (_ctx=0x0, level=0,
data=0xfc3f4a5207b, datasize=29) at rnd.c:441
#8  0x00006cc0a222162d in _gnutls_rnd (level=GNUTLS_RND_NONCE,
data=0xfc3f4a5207b, len=29) at ./random.h:37
#9  0x00006cc0a2221bdb in _gnutls_tls_create_random (dst=0xfc3f4a52078
"R\373\370y") at gnutls_handshake.c:206
#10 0x00006cc0a2221ce2 in _gnutls_set_client_random
(session=0xfc3f4a52030, rnd=0x0) at gnutls_handshake.c:231
#11 0x00006cc0a2227168 in _gnutls_send_client_hello
(session=0xfc3f4a52030, again=0) at gnutls_handshake.c:1990
#12 0x00006cc0a2227b26 in _gnutls_send_hello (session=0xfc3f4a52030,
again=0) at gnutls_handshake.c:2203
#13 0x00006cc0a2228892 in _gnutls_handshake_client
(session=0xfc3f4a52030) at gnutls_handshake.c:2656
#14 0x00006cc0a22285ea in gnutls_handshake (session=0xfc3f4a52030) at
gnutls_handshake.c:2527
#15 0x00000fc3f1c82581 in network_connect_child_read_cb
(arg_hook_connect=0xfc3f4a51470, fd=12)
    at /var/tmp/portage/net-irc/weechat-0.4.3/work/weechat-0.4.3/src/core/wee-network.c:1484
#16 0x00000fc3f1c7466d in hook_fd_exec (read_fds=0x724715d46df0,
write_fds=0x724715d46e70, exception_fds=0x724715d46ef0)
    at /var/tmp/portage/net-irc/weechat-0.4.3/work/weechat-0.4.3/src/core/wee-hook.c:1329
#17 0x00000fc3f1bf60f2 in gui_main_loop ()
    at /var/tmp/portage/net-irc/weechat-0.4.3/work/weechat-0.4.3/src/gui/curses/gui-curses-main.c:501
#18 0x00000fc3f1c408cf in main (argc=1, argv=0x724715d470b8)
    at /var/tmp/portage/net-irc/weechat-0.4.3/work/weechat-0.4.3/src/core/weechat.c:477



More information about the Gnutls-devel mailing list