Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on start with latest 2.4 branch and Allen and Heath Xone K1 #13180

Open
rah2501 opened this issue Apr 28, 2024 · 0 comments
Open

Segfault on start with latest 2.4 branch and Allen and Heath Xone K1 #13180

rah2501 opened this issue Apr 28, 2024 · 0 comments

Comments

@rah2501
Copy link

rah2501 commented Apr 28, 2024

Bug Description

With the latest git 2.4 branch, I get a segfault on start after an error message js:warning [Controller] ERROR! new Deck() called without specifying any deck numbers.

If I disconnect the Allen and Heath Xone K1, there is no segfault. If I remove ~/.mixxx, the error and segfault occurs as soon as I enable the Xone K1 in Mixxx's preferences. If I compile and run the 2.3 branch there is no segfault.

rah@acanthus:~$ gdb $(which mixxx)
GNU gdb (Debian 13.2-1) 13.2
Copyright (C) 2023 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 "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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/local/bin/mixxx...
(gdb) run
Starting program: /usr/local/bin/mixxx 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
QML debugging is enabled. Only use this in a safe environment.
Using preferences ScaleFactor 1
[New Thread 0xffffe820e440 (LWP 17530)]
[New Thread 0xffffe780e440 (LWP 17531)]
[New Thread 0xffffe500e440 (LWP 17532)]
[New Thread 0xffffde60e440 (LWP 17533)]
Loading resources from  "/usr/local/stow/mixxx-git/share/mixxx/"
Configuration file is now at the current version "2.4.0"
BroadcastSettings - Found 2 profile(s)
[New Thread 0xffffddc0e440 (LWP 17534)]
[New Thread 0xffffcbe0e440 (LWP 17535)]
[New Thread 0xffffcb40e440 (LWP 17536)]
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.front.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround40.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround71.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
[New Thread 0xffffdc19e440 (LWP 17537)]
[New Thread 0xffffd7f86440 (LWP 17538)]
[Thread 0xffffd7f86440 (LWP 17538) exited]
[Thread 0xffffdc19e440 (LWP 17537) exited]
[New Thread 0xffffdc19e440 (LWP 17539)]
[New Thread 0xffffd7f86440 (LWP 17540)]
[Thread 0xffffd7f86440 (LWP 17540) exited]
[Thread 0xffffdc19e440 (LWP 17539) exited]
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
[New Thread 0xffffcaa0e440 (LWP 17541)]
[Thread 0xffffcaa0e440 (LWP 17541) exited]
[New Thread 0xffffcaa0e440 (LWP 17542)]
[Thread 0xffffcaa0e440 (LWP 17542) exited]
ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.0:CARD=0,AES0=6,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
[New Thread 0xffffcaa0e440 (LWP 17543)]
[Thread 0xffffcaa0e440 (LWP 17543) exited]
[New Thread 0xffffcaa0e440 (LWP 17544)]
[Thread 0xffffcaa0e440 (LWP 17544) exited]
[New Thread 0xffffdc19e440 (LWP 17545)]
[New Thread 0xffffd7f86440 (LWP 17546)]
[New Thread 0xffffd0380440 (LWP 17547)]
[New Thread 0xffffcaa0e440 (LWP 17548)]
[New Thread 0xffffc960e440 (LWP 17549)]
[New Thread 0xffffbfe0e440 (LWP 17550)]
[New Thread 0xffffbe80e440 (LWP 17551)]
[New Thread 0xffffbd00e440 (LWP 17552)]
[New Thread 0xffffb380e440 (LWP 17553)]
[New Thread 0xffffb280e440 (LWP 17554)]
[New Thread 0xffffb160e440 (LWP 17555)]
[New Thread 0xffffa580e440 (LWP 17556)]
[New Thread 0xffff9fe0e440 (LWP 17557)]
[New Thread 0xffff9cc0e440 (LWP 17562)]
[New Thread 0xffff93e0e440 (LWP 17563)]
[New Thread 0xffff9340e440 (LWP 17564)]
[New Thread 0xffff92a0e440 (LWP 17565)]
[New Thread 0xffff9200e440 (LWP 17566)]
[New Thread 0xffff9100e440 (LWP 17567)]
[New Thread 0xffff87e0e440 (LWP 17568)]
[New Thread 0xffff86e0e440 (LWP 17569)]
[New Thread 0xffff85e0e440 (LWP 17570)]
[New Thread 0xffff84e0e440 (LWP 17571)]
[New Thread 0xffff7b80e440 (LWP 17572)]
[New Thread 0xffff7a80e440 (LWP 17573)]
[New Thread 0xffff7980e440 (LWP 17574)]
[New Thread 0xffff6fe0e440 (LWP 17575)]
[New Thread 0xffff6f40e440 (LWP 17576)]
[New Thread 0xffff6e40e440 (LWP 17577)]
[New Thread 0xffff6d40e440 (LWP 17578)]
[New Thread 0xffff6ca0e440 (LWP 17579)]
[New Thread 0xffff63e0e440 (LWP 17580)]
[New Thread 0xffff6240e440 (LWP 17581)]
[New Thread 0xffff61a0e440 (LWP 17582)]
[New Thread 0xffff6100e440 (LWP 17583)]
[New Thread 0xffff57e0e440 (LWP 17584)]
[New Thread 0xffff5740e440 (LWP 17585)]
 js:warning [Controller] ERROR! new Deck() called without specifying any deck numbers

Thread 34 "Controller" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xffff9200e440 (LWP 17566)]
QV4::Heap::Base::mark (markStack=0xffff9200c338, this=0x10) at ../../include/QtQml/5.15.10/QtQml/private/../../../../../src/qml/memory/qv4heap_p.h:190
190	../../include/QtQml/5.15.10/QtQml/private/../../../../../src/qml/memory/qv4heap_p.h: No such file or directory.
(gdb) bt
#0  QV4::Heap::Base::mark (markStack=0xffff9200c338, this=0x10) at ../../include/QtQml/5.15.10/QtQml/private/../../../../../src/qml/memory/qv4heap_p.h:190
#1  QV4::Managed::mark (markStack=0xffff9200c338, this=0xffff631c16c8) at jsruntime/qv4managed_p.h:204
#2  QV4::MemoryManager::collectFromJSStack (this=this@entry=0xffff4c0ef8c0, markStack=markStack@entry=0xffff9200c338) at memory/qv4mm.cpp:1222
#3  0x0000fffff72b995c in QV4::MemoryManager::collectRoots (this=this@entry=0xffff4c0ef8c0, markStack=markStack@entry=0xffff9200c338) at memory/qv4mm.cpp:879
#4  0x0000fffff72b9c00 in QV4::MemoryManager::mark (this=this@entry=0xffff4c0ef8c0) at memory/qv4mm.cpp:919
#5  0x0000fffff72bb820 in QV4::MemoryManager::runGC (this=0xffff4c0ef8c0) at memory/qv4mm.cpp:1053
#6  0x0000fffff72bd874 in QV4::MemoryManager::allocate (size=32, allocator=0xffff4c0ef8d0, this=0xffff4c0ef8c0)
    at ../../include/QtQml/5.15.10/QtQml/private/../../../../../src/qml/memory/qv4mm_p.h:328
#7  QV4::MemoryManager::allocString (this=this@entry=0xffff4c0ef8c0, unmanagedSize=unmanagedSize@entry=10) at memory/qv4mm.cpp:791
#8  0x0000fffff7329d68 in QV4::MemoryManager::allocWithStringData<QV4::String, QString> (arg1=..., unmanagedSize=10, this=0xffff4c0ef8c0)
    at ../../include/QtQml/5.15.10/QtQml/private/../../../../../src/qml/memory/qv4mm_p.h:215
#9  QV4::ExecutionEngine::newString (this=this@entry=0xffff4c0105e0, s=...) at jsruntime/qv4engine.cpp:898
#10 0x0000fffff736fe44 in QV4::IteratorPrototype::createIterResultObject (engine=engine@entry=0xffff4c0105e0, value=..., done=done@entry=false) at jsruntime/qv4iterator.cpp:60
#11 0x0000fffff73a1cb4 in QV4::ForInIteratorPrototype::method_next (b=<optimized out>, thisObject=<optimized out>) at jsruntime/qv4objectiterator.cpp:157
#12 0x0000fffff73e719c in QV4::FunctionObject::call (argc=0, argv=<optimized out>, thisObject=0xffff631c18f8, this=<optimized out>) at jsruntime/qv4functionobject_p.h:202
#13 QV4::FunctionObject::call (data=<synthetic pointer>..., this=<optimized out>) at jsruntime/qv4jscall_p.h:112
#14 QV4::Runtime::IteratorNext::call (engine=0xffff4c0105e0, iterator=..., value=0xffff631c1948) at jsruntime/qv4runtime.cpp:829
#15 0x0000fffff79a73fc in ?? ()
#16 0x8fecf94d37f3a300 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

Version

2873f5d

OS

Debian GNU/Linux unstable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants