jamulussoftware / jamulus

Jamulus enables musicians to perform real-time jam sessions over the internet.
https://jamulus.io
Other
997 stars 222 forks source link

Jamulus built with CONFIG+="headless nosound" abort()s upon Ctrl+C #1291

Closed hoffie closed 3 years ago

hoffie commented 3 years ago

Describe the bug

Running Jamulus built with CONFIG+="headless nosound" dumps core when pressing Ctrl+C.

To Reproduce

Expected behavior

Clean exit

Screenshots

$ ./Jamulus
No GUI support compiled. Running in headless mode.
 *** Jamulus, Version 3.7.0rc2dev-913e4cc8
 *** Internet Jam Session Software
 *** Released under the GNU General Public License (GPL)
^CQThread: Destroyed while thread is still running
Aborted (core dumped)
Stack trace of thread 58464:
#0  0x00007f539b803ef5 raise (libc.so.6 + 0x3cef5)
#1  0x00007f539b7ed862 abort (libc.so.6 + 0x26862)
#2  0x00007f539bd629ac _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x909ac)
#3  0x00007f539bd6329a n/a (libQt5Core.so.5 + 0x9129a)
#4  0x000055ea4274d0b7 n/a (/home/christian/Projects/jamulus/Jamulus + 0x210b7)
#5  0x00007f539c21a550 _ZTV7QThread (libQt5Core.so.5 + 0x548550)

Operating system

Linux wuechoo 5.11.1-arch1-1 #1 SMP PREEMPT Tue, 23 Feb 2021 14:05:30 +0000 x86_64 GNU/Linux

Version of Jamulus

3.7.0rc2

Additional context

pljones commented 3 years ago

Only the server is meant to be run like this currently. So this is "expected behaviour". Using "nosound" and then running without "-s -n" should fail on start up with an error message.

(The client (i.e. without "-s") needs the sound sub-system in order to connect to a server - i.e. to be a client.)