While looking at another issue (no audio) I started CubeSDR from the terminal to check if there are any errors printed to the terminal. I noticed that CubeSDR dumps every time on exit.
Ubuntu Mate 20.04 x64 (with Compiz)
Linux workbox 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ gdb /usr/bin/CubicSDR core.431676
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 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"...
/home/oxoocoffee/.gdbinit:7: Error in sourced command file:
Requires an argument. Valid arguments are child, parent.
Reading symbols from /usr/bin/CubicSDR...
(No debugging symbols found in /usr/bin/CubicSDR)
[New LWP 431838]
[New LWP 431679]
[New LWP 431725]
[New LWP 431676]
[New LWP 431730]
[New LWP 431728]
[New LWP 431681]
[New LWP 431839]
[New LWP 431710]
[New LWP 431843]
[New LWP 431682]
[New LWP 431722]
[New LWP 431736]
[New LWP 431678]
[New LWP 431677]
[New LWP 431821]
[New LWP 431734]
[New LWP 431726]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `CubicSDR'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __GI___pthread_mutex_lock (mutex=0x298) at ../nptl/pthread_mutex_lock.c:67
67 ../nptl/pthread_mutex_lock.c: No such file or directory.
[Current thread is 1 (Thread 0x7f3f267fc700 (LWP 431838))]
(gdb) where
#0 __GI___pthread_mutex_lock (mutex=0x298) at ../nptl/pthread_mutex_lock.c:67
#1 0x000055c1c4a81960 in AudioThread::run() ()
#2 0x000055c1c4a2f6c2 in IOThread::threadMain() ()
#3 0x00007f3f62238de4 in () at /lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007f3f61fde609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#5 0x00007f3f61f05293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f3f267fc700 (LWP 431838) 0x000055c1c4a81960 in AudioThread::run() ()
2 Thread 0x7f3f5db12700 (LWP 431679) 0x00007f3f61ef8aff in __GI___poll (fds=0x55c1c61937e0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
3 Thread 0x7f3edffff700 (LWP 431725) futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f3f3a59a140) at ../sysdeps/nptl/futex-internal.h:183
4 Thread 0x7f3f5f161ec0 (LWP 431676) 0x00007f3f61ec33bf in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7ffe2c67d9d0, rem=0x7ffe2c67d9d0)
at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
5 Thread 0x7f3edcff9700 (LWP 431730) 0x00007f3f61ef8aff in __GI___poll (fds=0x7f3eb8000dc0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
6 Thread 0x7f3edd7fa700 (LWP 431728) 0x00007f3f61ef8aff in __GI___poll (fds=0x7f3eb0001ce0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
7 Thread 0x7f3f5ca75700 (LWP 431681) 0x00007f3f61ec33bf in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7f3f5ca746e0, rem=0x7f3f5ca746e0)
at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
8 Thread 0x7f3f35012700 (LWP 431839) futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f3f35011560, clockid=<optimized out>, expected=0, futex_word=0x55c1c62f1db4)
at ../sysdeps/nptl/futex-internal.h:320
9 Thread 0x7f3f0ffff700 (LWP 431710) 0x00007f3f61ef8aff in __GI___poll (fds=0x7f3f0fffe740, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
10 Thread 0x7f3f3bbff700 (LWP 431843) syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
11 Thread 0x7f3f4ffff700 (LWP 431682) 0x00007f3f61ec33bf in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7f3f4fffe6e0, rem=0x7f3f4fffe6e0)
at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
12 Thread 0x7f3ef57fa700 (LWP 431722) futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f3f3a59a280) at ../sysdeps/nptl/futex-internal.h:183
13 Thread 0x7f3f3929e700 (LWP 431736) 0x00007f3f61ef8aff in __GI___poll (fds=0x7f3f1003c520, nfds=2, timeout=250) at ../sysdeps/unix/sysv/linux/poll.c:29
14 Thread 0x7f3f5e313700 (LWP 431678) 0x00007f3f61ef8aff in __GI___poll (fds=0x55c1c6181580, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
15 Thread 0x7f3f5eb14700 (LWP 431677) 0x00007f3f61ef8aff in __GI___poll (fds=0x55c1c617f790, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
16 Thread 0x7f3f24ff9700 (LWP 431821) 0x00007f3f61ef8aff in __GI___poll (fds=0x55c1c8933680, nfds=3, timeout=500) at ../sysdeps/unix/sysv/linux/poll.c:29
17 Thread 0x7f3ea7fff700 (LWP 431734) 0x00007f3f61ef8aff in __GI___poll (fds=0x7f3e98000b60, nfds=2, timeout=250) at ../sysdeps/unix/sysv/linux/poll.c:29
18 Thread 0x7f3edeffd700 (LWP 431726) 0x00007f3f61efb12b in __GI___select (nfds=74, readfds=0x7f3edeffbf40, writefds=0x0, exceptfds=0x0, timeout=0x7f3edeffbf30)
at ../sysdeps/unix/sysv/linux/select.c:41
(gdb) list
62 in ../nptl/pthread_mutex_lock.c
(gdb)
Hello,
While looking at another issue (no audio) I started CubeSDR from the terminal to check if there are any errors printed to the terminal. I noticed that CubeSDR dumps every time on exit.
Ubuntu Mate 20.04 x64 (with Compiz)
CubeSDR 0.2.5
All messages printed when starting from Terminal
My ~/.CubeSDR/config.xml
GDB core dump info