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

LMMS segfault on exit (libfftw) #7393

Open
1 task done
bratpeki opened this issue Jul 25, 2024 · 0 comments
Open
1 task done

LMMS segfault on exit (libfftw) #7393

bratpeki opened this issue Jul 25, 2024 · 0 comments
Labels

Comments

@bratpeki
Copy link
Contributor

bratpeki commented Jul 25, 2024

System Information

Manjaro Linux

LMMS Version(s)

Master

Most Recent Working Version

--

Bug Summary

I noticed LMMS segfault on exit.

I built LMMS with -DCMAKE_BUILD_TYPE=Debug and the GDB output is:

[peki@~]$ gdb lmms
GNU gdb (GDB) 14.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 "x86_64-pc-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 lmms...
(gdb) run
Starting program: /usr/local/bin/lmms

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n])
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
*** WEAK-JACK: initializing
*** WEAK-JACK: OK. (0)
[New Thread 0x7ffff22f06c0 (LWP 116649)]
[New Thread 0x7ffff1aef6c0 (LWP 116650)]
Notice: could not set realtime priority.
[New Thread 0x7fffcfdff6c0 (LWP 116651)]
[New Thread 0x7fffcf5fe6c0 (LWP 116674)]
[New Thread 0x7fffcedfd6c0 (LWP 116675)]
[New Thread 0x7fffce5fc6c0 (LWP 116676)]
[New Thread 0x7fffcddfb6c0 (LWP 116678)]
[Thread 0x7fffcddfb6c0 (LWP 116678) exited]
[Thread 0x7fffcedfd6c0 (LWP 116675) exited]
[Thread 0x7fffce5fc6c0 (LWP 116676) exited]
[Thread 0x7fffcf5fe6c0 (LWP 116674) exited]
[New Thread 0x7fffcddfb6c0 (LWP 116679)]
[New Thread 0x7fffce5fc6c0 (LWP 116680)]
[New Thread 0x7fffcedfd6c0 (LWP 116681)]
Lv2 plugin SUMMARY: 378 of 579  loaded in 5128 msecs.
For details about not loaded plugins, please set
  environment variable "LMMS_LV2_DEBUG" to nonempty.
Blocked Lv2 Plugins: 61 of 579
  If you want to enable them (dangerous!), please set
  environment variable "LMMS_ENABLE_BLOCKED_PLUGINS" to nonempty.
[New Thread 0x7fffcf5fe6c0 (LWP 116797)]
[New Thread 0x7fffbf5ff6c0 (LWP 116798)]
[New Thread 0x7fffbedfe6c0 (LWP 116799)]
Connection established.

Stream successfully created

[New Thread 0x7fffa63ff6c0 (LWP 117008)]
[Thread 0x7fffa63ff6c0 (LWP 117008) exited]
[New Thread 0x7fffa63ff6c0 (LWP 117055)]
[Thread 0x7fffa63ff6c0 (LWP 117055) exited]
[New Thread 0x7fffa63ff6c0 (LWP 117217)]
fluidsynth: warning: Instrument 'Piano 2': Some invalid generators were discarded
fluidsynth: warning: Instrument 'Piano 3': Some invalid generators were discarded
fluidsynth: warning: Instrument 'Honky-tonk': Some invalid generators were discarded
[New Thread 0x7fffa53006c0 (LWP 117218)]
[New Thread 0x7fffa4aff6c0 (LWP 117219)]
[New Thread 0x7fff9e4546c0 (LWP 117220)]
[Thread 0x7fffa63ff6c0 (LWP 117217) exited]
[Thread 0x7fff9e4546c0 (LWP 117220) exited]
[Thread 0x7fffa4aff6c0 (LWP 117219) exited]
[Thread 0x7fffa53006c0 (LWP 117218) exited]
[New Thread 0x7fffa53006c0 (LWP 117267)]
fluidsynth: warning: No preset found on channel 0 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 1 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 2 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 3 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 4 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 5 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 6 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 7 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 8 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0]
fluidsynth: warning: No preset found on channel 10 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 11 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 12 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 13 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 14 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 15 [bank=0 prog=0]
[New Thread 0x7fffa4aff6c0 (LWP 117291)]
[New Thread 0x7fff9e4546c0 (LWP 117292)]
[New Thread 0x7fffa63ff6c0 (LWP 117293)]
[Thread 0x7fffa53006c0 (LWP 117267) exited]
fluidsynth: warning: No preset found on channel 0 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 1 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 2 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 3 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 4 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 5 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 6 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 7 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 8 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0]
fluidsynth: warning: No preset found on channel 10 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 11 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 12 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 13 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 14 [bank=0 prog=0]
fluidsynth: warning: No preset found on channel 15 [bank=0 prog=0]
[Thread 0x7fffbf5ff6c0 (LWP 116798) exited]
[Thread 0x7fffbedfe6c0 (LWP 116799) exited]
[Thread 0x7fffcedfd6c0 (LWP 116681) exited]
[Thread 0x7fffce5fc6c0 (LWP 116680) exited]
[Thread 0x7fffcddfb6c0 (LWP 116679) exited]
[Thread 0x7fffcf5fe6c0 (LWP 116797) exited]

Thread 1 "lmms" received signal SIGSEGV, Segmentation fault.
0x00007ffff6425b41 in ?? () from /usr/lib/libfftw3f.so.3
(gdb) bt
#0  0x00007ffff6425b41 in ?? () from /usr/lib/libfftw3f.so.3
#1  0x00007ffff641fa1a in fftwf_plan_awake () from /usr/lib/libfftw3f.so.3
#2  0x00007ffff641fa1a in fftwf_plan_awake () from /usr/lib/libfftw3f.so.3
#3  0x00007ffff6424f45 in ?? () from /usr/lib/libfftw3f.so.3
#4  0x00007ffff641fa1a in fftwf_plan_awake () from /usr/lib/libfftw3f.so.3
#5  0x00007ffff647afd9 in ?? () from /usr/lib/libfftw3f.so.3
#6  0x00007ffff641fa1a in fftwf_plan_awake () from /usr/lib/libfftw3f.so.3
#7  0x00007ffff650c456 in fftwf_destroy_plan () from /usr/lib/libfftw3f.so.3
#8  0x0000555555899328 in lmms::Oscillator::destroyFFTPlans () at /home/peki/Code/GitHub/lmms/src/core/Oscillator.cpp:232
#9  0x000055555585ba4e in lmms::Engine::destroy () at /home/peki/Code/GitHub/lmms/src/core/Engine.cpp:123
#10 0x000055555596b9eb in lmms::gui::MainWindow::~MainWindow (this=0x55555dbe1300, __in_chrg=<optimized out>) at /home/peki/Code/GitHub/lmms/src/gui/MainWindow.cpp:258
#11 0x000055555596ba60 in lmms::gui::MainWindow::~MainWindow (this=0x55555dbe1300, __in_chrg=<optimized out>) at /home/peki/Code/GitHub/lmms/src/gui/MainWindow.cpp:259
#12 0x00007ffff6cd1b7c in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#13 0x00007ffff7956331 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff6caba68 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#15 0x00007ffff6cac506 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#16 0x00007ffff6cf63e0 in ?? () from /usr/lib/libQt5Core.so.5
#17 0x00007ffff5314a89 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007ffff53769b7 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0x00007ffff5313f95 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007ffff6cfa37f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#21 0x00007ffff6ca382c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#22 0x00007ffff6cafbfd in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#23 0x00005555557d1020 in main (argc=1, argv=0x7fffffffe418) at /home/peki/Code/GitHub/lmms/src/core/main.cpp:992
(gdb) exit
A debugging session is active.

    Inferior 1 [process 116600] will be killed.

Quit anyway? (y or n) y
[peki@~]$

I opened a GIG and SF2 player player just to say something has been done in the project, the same thing happens when you just open and close LMMS.

The FFTW version is :

[peki@~]$ pacman -Q | grep fft
fftw 3.3.10-7

Expected Behaviour

No segfault.

Steps To Reproduce

Open LMMS. Optionally, do something. Close LMMS.

Logs

No response

Screenshots / Minimum Reproducible Project

No response

Please search the issue tracker for existing bug reports before submitting your own.

  • I have searched all existing issues and confirmed that this is not a duplicate.
@bratpeki bratpeki added the bug label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant