Control: found -1 0.17.0-1

Dear Maintainer,
I tried to collect some more information and could
reproduce the issue.

I guess the interesting thread is not that with
the main function.

Instead it is that thread with the tox_kill / __GI_abort.
There I think that tox_kill in libtoxcore2 is reached
while not completely shut down, therefore aborts in
this LOGGER_ASSERT.
Unfortunately that message was not printed on stderr/out.

There exists upstream issue [1] based on this bug,
with a workaround mentioned.

This issue can already be seen in Buster/stable too.

Kind regards,
Bernhard


(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f6209ebb535 in __GI_abort () at abort.c:79
#2  0x00007f620ad3385a in tox_kill (tox=tox@entry=0x7f61c4000d50) at 
./toxcore/tox.c:578
#3  0x0000560b734da5a1 in toxcore_thread (UNUSED_args=<optimized out>) at 
./src/tox.c:572
#4  0x00007f620aa52fb7 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#5  0x00007f6209f902df in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

(gdb) 
#2  0x00007f620ad3385a in tox_kill (tox=tox@entry=0x7f61c4000d50) at 
./toxcore/tox.c:578
578         LOGGER_ASSERT(m->log, m->msi_packet == nullptr, "Attempted to kill 
tox while toxav is still alive");
(gdb) print m->msi_packet
$1 = (m_msi_packet_cb *) 0x7f620ad389b0 <handle_msi_packet>


https://sources.debian.org/src/libtoxcore/0.2.10-1/toxcore/tox.c/#L578
https://sources.debian.org/src/utox/0.17.1-1/src/tox.c/#L572


[1] https://github.com/uTox/uTox/issues/1376
# Bullseye/testing amd64 qemu VM 2020-01-14


apt update
apt dist-upgrade


apt install systemd-coredump xserver-xorg sddm openbox xterm fakeroot gdb utox 
utox-dbgsym libtoxcore2-dbgsym
apt build-dep utox

reboot


mkdir /home/benutzer/source/utox/orig -p
cd    /home/benutzer/source/utox/orig
apt source utox
cd

mkdir /home/benutzer/source/libtoxcore/orig -p
cd    /home/benutzer/source/libtoxcore/orig
apt source libtoxcore
cd


export LANG=C
export DISPLAY=:0
utox


coredumpctl list
coredumpctl gdb 696

set width 0
set pagination off
directory /home/benutzer/source/libtoxcore/orig/libtoxcore-0.2.10
directory /home/benutzer/source/utox/orig/utox-0.17.1




##########



benutzer@debian:~$ utox
Settings:     Unable to parse utox_save.ini.
Settings:     Unable to open utox_save.
Settings:     Unable to load uTox settings. Use defaults.
XLib Tray:    Incoming tray window event (28)
XLib tray:    Reached end of function, this is bad juju!
Aborted (core dumped)


root@debian:~# coredumpctl list
TIME                            PID   UID   GID SIG COREFILE  EXE
Tue 2020-01-14 23:33:51 CET     696  1000  1000   6 present   /usr/bin/utox

root@debian:~# coredumpctl gdb 696
           PID: 696 (utox)
           UID: 1000 (benutzer)
           GID: 1000 (benutzer)
        Signal: 6 (ABRT)
     Timestamp: Tue 2020-01-14 23:33:50 CET (1min 9s ago)
  Command Line: utox
    Executable: /usr/bin/utox
 Control Group: /user.slice/user-1000.slice/session-7.scope
          Unit: session-7.scope
         Slice: user-1000.slice
       Session: 7
     Owner UID: 1000 (benutzer)
       Boot ID: 7b7aab6c8d274a96b162737e6c652404
    Machine ID: 33f18f39d2a9438eb75b0ed52848afcd
      Hostname: debian
       Storage: 
/var/lib/systemd/coredump/core.utox.1000.7b7aab6c8d274a96b162737e6c652404.696.1579041230000000000000.lz4
       Message: Process 696 (utox) of user 1000 dumped core.
                
                Stack trace of thread 711:
                #0  0x00007f6209ed0081 __GI_raise (libc.so.6 + 0x3a081)
                #1  0x00007f6209ebb535 __GI_abort (libc.so.6 + 0x25535)
                #2  0x00007f620ad3385a tox_kill (libtoxcore.so.2 + 0x2c85a)
                #3  0x0000560b734da5a1 toxcore_thread (utox + 0x2b5a1)
                #4  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #5  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 708:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 702:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 700:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 699:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 696:
                #0  0x00007f6209f85d1f __GI___poll (libc.so.6 + 0xefd1f)
                #1  0x00007f6209991cf7 n/a (libxcb.so.1 + 0xccf7)
                #2  0x00007f620999391a xcb_wait_for_event (libxcb.so.1 + 0xe91a)
                #3  0x00007f620a5ceb88 _XReadEvents (libX11.so.6 + 0x43b88)
                #4  0x00007f620a5bdae8 XNextEvent (libX11.so.6 + 0x32ae8)
                #5  0x0000560b734c4dfc main (utox + 0x15dfc)
                #6  0x00007f6209ebcbbb __libc_start_main (libc.so.6 + 0x26bbb)
                #7  0x0000560b734c518a _start (utox + 0x1618a)
                
                Stack trace of thread 713:
                #0  0x00007f6209f5dbb5 __GI___nanosleep (libc.so.6 + 0xc7bb5)
                #1  0x00007f6209f88a25 usleep (libc.so.6 + 0xf2a25)
                #2  0x0000560b7350b011 utox_video_thread (utox + 0x5c011)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 710:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 701:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 698:
                #0  0x00007f6209f5dbb5 __GI___nanosleep (libc.so.6 + 0xc7bb5)
                #1  0x00007f6209f88a25 usleep (libc.so.6 + 0xf2a25)
                #2  0x0000560b73507f5b utox_av_ctrl_thread (utox + 0x58f5b)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 705:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 709:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 712:
                #0  0x00007f6209f5dbb5 __GI___nanosleep (libc.so.6 + 0xc7bb5)
                #1  0x00007f6209f88a25 usleep (libc.so.6 + 0xf2a25)
                #2  0x0000560b735097f0 utox_audio_thread (utox + 0x5a7f0)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 707:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 704:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 703:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)
                
                Stack trace of thread 706:
                #0  0x00007f620aa58db5 futex_wait_cancelable (libpthread.so.0 + 
0xedb5)
                #1  0x00007f620597403b n/a (swrast_dri.so + 0x18203b)
                #2  0x00007f6205973eb7 n/a (swrast_dri.so + 0x181eb7)
                #3  0x00007f620aa52fb7 start_thread (libpthread.so.0 + 0x8fb7)
                #4  0x00007f6209f902df __clone (libc.so.6 + 0xfa2df)

GNU gdb (Debian 8.3.1-1) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/utox...
(No debugging symbols found in /usr/bin/utox)
[New LWP 711]
[New LWP 708]
[New LWP 702]
[New LWP 700]
[New LWP 699]
[New LWP 696]
[New LWP 713]
[New LWP 710]
[New LWP 701]
[New LWP 698]
[New LWP 705]
[New LWP 709]
[New LWP 712]
[New LWP 707]
[New LWP 704]
[New LWP 703]
[New LWP 706]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `utox'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht 
gefunden.
[Current thread is 1 (Thread 0x7f61fc23a700 (LWP 711))]
(gdb) set width 0
(gdb) set pagination off
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f6209ebb535 in __GI_abort () at abort.c:79
#2  0x00007f620ad3385a in tox_kill () from /lib/x86_64-linux-gnu/libtoxcore.so.2
#3  0x0000560b734da5a1 in toxcore_thread ()
#4  0x00007f620aa52fb7 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#5  0x00007f6209f902df in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95


Core was generated by `utox'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht 
gefunden.
[Current thread is 1 (Thread 0x7f61fc23a700 (LWP 711))]
(gdb) set width 0
(gdb) set pagination off
(gdb) directory /home/benutzer/source/libtoxcore/orig/libtoxcore-0.2.10
Source directories searched: 
/home/benutzer/source/libtoxcore/orig/libtoxcore-0.2.10:$cdir:$cwd
(gdb) directory /home/benutzer/source/utox/orig/utox-0.17.1
Source directories searched: 
/home/benutzer/source/utox/orig/utox-0.17.1:/home/benutzer/source/libtoxcore/orig/libtoxcore-0.2.10:$cdir:$cwd
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f6209ebb535 in __GI_abort () at abort.c:79
#2  0x00007f620ad3385a in tox_kill (tox=tox@entry=0x7f61c4000d50) at 
./toxcore/tox.c:578
#3  0x0000560b734da5a1 in toxcore_thread (UNUSED_args=<optimized out>) at 
./src/tox.c:572
#4  0x00007f620aa52fb7 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
#5  0x00007f6209f902df in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

(gdb) bt full
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        set = {__val = {0, 4095, 4096, 140057876889632, 18446744073709550968, 
2118, 140059051627872, 140059050363407, 0, 4096, 140057876892448, 
140057877160928, 140059051627872, 140059050278325, 2049, 928295}}
        pid = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
#1  0x00007f6209ebb535 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x7f61c4000b20, sa_sigaction 
= 0x7f61c4000b20}, sa_mask = {__val = {0, 2118, 140057877163056, 
140057876893008, 4623351843057608192, 2198, 2198, 140058818747104, 
140057877160928, 2118, 140057877163056, 140057876893008, 94607179091405, 4, 
140057876893008, 140057876893248}}, sa_flags = -1006629552, sa_restorer = 
0x7f61fc239b30}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007f620ad3385a in tox_kill (tox=tox@entry=0x7f61c4000d50) at 
./toxcore/tox.c:578
        m = 0x7f61c4000e40
        __func__ = "tox_kill"
#3  0x0000560b734da5a1 in toxcore_thread (UNUSED_args=<optimized out>) at 
./src/tox.c:572
        tox = 0x7f61c4000d50
        connected = true
        last_connection = <optimized out>
        last_save = 159945031402
        time = <optimized out>
        av = 0x7f61c4044c00
        reconfig = <optimized out>
        toxcore_init_err = 0
#4  0x00007f620aa52fb7 in start_thread (arg=<optimized out>) at 
pthread_create.c:486
        ret = <optimized out>
        pd = <optimized out>
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140058818750208, 
3869608407316079695, 140734183021950, 140734183021951, 140058818750208, 
140058818747520, -3787417201801124785, -3785406249377815473}, mask_was_saved = 
0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, 
canceltype = 0}}}
        not_first_call = <optimized out>
#5  0x00007f6209f902df in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.

(gdb) up
#1  0x00007f6209ebb535 in __GI_abort () at abort.c:79
79      abort.c: Datei oder Verzeichnis nicht gefunden.

(gdb) 
#2  0x00007f620ad3385a in tox_kill (tox=tox@entry=0x7f61c4000d50) at 
./toxcore/tox.c:578
578         LOGGER_ASSERT(m->log, m->msi_packet == nullptr, "Attempted to kill 
tox while toxav is still alive");
(gdb) print m->msi_packet
$1 = (m_msi_packet_cb *) 0x7f620ad389b0 <handle_msi_packet>


benutzer@debian:~/source/utox/orig/utox-0.17.1$ dpkg -l | grep tox
ii  libtoxcore-dev:amd64             0.2.10-1+b1                    amd64       
 Distributed, secure messenger - development headers
ii  libtoxcore2:amd64                0.2.10-1+b1                    amd64       
 Distributed, secure messenger
ii  libtoxcore2-dbgsym:amd64         0.2.10-1+b1                    amd64       
 debug symbols for libtoxcore2
ii  utox                             0.17.1-1                       amd64       
 lightest and fluffiest Tox client
ii  utox-dbgsym                      0.17.1-1                       amd64       
 debug symbols for utox


https://sources.debian.org/src/utox/0.17.1-1/src/tox.c/#L572
https://sources.debian.org/src/libtoxcore/0.2.10-1/toxcore/tox.c/#L578

https://github.com/irungentoo/toxcore

https://github.com/uTox/uTox
https://github.com/uTox/uTox/issues/1376

Reply via email to