On 3/19/22 7:08 AM, Rainer Hans Liffers wrote:
> I compiled the latest version of rosegarden with debugging enabled and subsequently ran gdb as shown in attached file. Is this information sufficient?

  Yes.  Thanks.

  The first line relevant to rg is this:

#19 0x0000555555e3188e in Rosegarden::LADSPAPluginFactory::loadLibrary (this=0x7fffb0004fd0, soName=...) at /home/rainer/Downloads/rosegarden/src/sound/LADSPAPluginFactory.cpp:504

And this is not unusual. Unfortunately, if there are problems with plugins, rg does little to protect itself against them crashing. We have a bug on our bug tracker related to this:

  https://sourceforge.net/p/rosegarden/bugs/1474/

Not sure anyone will get around to fixing it, though. And regardless, we can't really fix this issue. The problem is actually in the fluidsynth-dssi.so plugin that we are trying to load:

#8 _dl_new_object (realname=realname@entry=0x7fffb014e0a0 "/usr/lib/dssi/fluidsynth-dssi.so", libname=libname@entry=0x7fffb0153ab8 "/usr/lib/dssi/fluidsynth-dssi.so", type=type@entry=2, loader=loader@entry=0x0, mode=mode@entry=-1879048190, nsid=nsid@entry=0) at dl-object.c:89

So fluidsynth's dssi plugin is the next place to look. Of course, once again, the issue might actually be caused by something fluidsynth brings in.

BTW, this error only occurs on my laptop running Debian bookworm.
On my (dual boot) desktop, rosegarden works fine both under KDE neon
and EndeavourOS, using pipewire 0.3.48.

Not surprising. Could be a config difference, or something subtle about library versioning.

I'm going to add some logging to help diagnose this in the future. This isn't the first time this has been an issue. It would be nice to know exactly what is going on immediately.

  Thanks for the bug report.
rainer@Freya:~$ gdb /usr/local/bin/rosegarden
GNU gdb (Debian 10.1-2) 10.1.90.20210103-git
Copyright (C) 2021 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:
<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/rosegarden...
(gdb) run
Starting program: /usr/local/bin/rosegarden 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff145e640 (LWP 4384)]
[New Thread 0x7fffeac7a640 (LWP 4385)]
[main] System Locale: "en_AU"
[main] Qt translations path:  "/usr/share/qt5/translations"
[main] Qt translations loaded successfully.
[main] RG Translation: trying to load :locale/ "en_AU"
[main] RG Translations loaded successfully.
[main] Loaded application icon " "rg-rwb-rose3-16x16" "
[main] Loaded application icon " "rg-rwb-rose3-32x32" "
[main] Loaded application icon " "rg-rwb-rose3-48x48" "
[main] Loaded application icon " "rg-rwb-rose3-64x64" "
[main] Loaded application icon " "rg-rwb-rose3-128x128" "
[main] Unbundling examples...
[main] Unbundling templates...
[main] Unbundling libraries (device files)...
[New Thread 0x7fffdae94640 (LWP 4386)]
[New Thread 0x7fffda693640 (LWP 4387)]
[New Thread 0x7fffd9e92640 (LWP 4388)]
[New Thread 0x7fffd9691640 (LWP 4389)]
[New Thread 0x7fffd8e90640 (LWP 4390)]
[New Thread 0x7fffc3fff640 (LWP 4391)]
[New Thread 0x7fffbbfff640 (LWP 4392)]
[main] Creating RosegardenMainWindow instance...
[New Thread 0x7fffc2dee640 (LWP 4393)]
[SequencerThread] run()
[New Thread 0x7fffc25ed640 (LWP 4394)]
[PluginFactory] PluginFactory::instance( "dssi" ): creating new 
DSSIPluginFactory
[JackDriver] initialise() begin...
[New Thread 0x7fffc1dbd640 (LWP 4395)]
[New Thread 0x7fffc15bc640 (LWP 4396)]
[JackDriver] initialise() - JACK sample rate =  48000 Hz, buffer size =  1024
[JackDriver] initialise() - creating disk thread...
[New Thread 0x7fffd84e7640 (LWP 4397)]
[JackDriver] initialise() - found  9  JACK physical outputs
[JackDriver] initialise() - connecting from  " rosegarden:master out L " to " 
Tiger Lake-LP Smart Sound Technology Audio Controller Speaker + 
Headphones:playback_FL "
[JackDriver] initialise() - connecting from  " rosegarden:master out R " to " 
Tiger Lake-LP Smart Sound Technology Audio Controller Speaker + 
Headphones:playback_FR "
[JackDriver] initialise() - found  5  JACK physical inputs
[JackDriver] initialise() - connecting from  " Tiger Lake-LP Smart Sound 
Technology Audio Controller Digital Microphone:capture_FL " to " 
rosegarden:record in 1 L "
[JackDriver] initialise() - connecting from  " Tiger Lake-LP Smart Sound 
Technology Audio Controller Digital Microphone:capture_FR " to " 
rosegarden:record in 1 R "
[JackDriver] initialise() - initialised JACK audio subsystem
malloc_consolidate(): unaligned fastbin chunk detected

Thread 12 "QThread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffc25ed640 (LWP 4394)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
49      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007ffff6038546 in __GI_abort () at abort.c:79
#2  0x00007ffff608feb8 in __libc_message (action=action@entry=do_abort, 
fmt=fmt@entry=0x7ffff61ada78 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007ffff609791a in malloc_printerr (str=str@entry=0x7ffff61afde8 
"malloc_consolidate(): unaligned fastbin chunk detected") at malloc.c:5628
#4  0x00007ffff60989c4 in malloc_consolidate (av=av@entry=0x7fffb0000020) at 
malloc.c:4709
#5  0x00007ffff609a855 in _int_malloc (av=av@entry=0x7fffb0000020, 
bytes=bytes@entry=1225) at malloc.c:3924
#6  0x00007ffff609d191 in __libc_calloc (n=<optimized out>, 
elem_size=<optimized out>) at malloc.c:3639
#7  0x00007ffff7fd8431 in calloc (b=1, a=<optimized out>) at 
../include/rtld-malloc.h:44
#8  _dl_new_object (realname=realname@entry=0x7fffb014e0a0 
"/usr/lib/dssi/fluidsynth-dssi.so", libname=libname@entry=0x7fffb0153ab8 
"/usr/lib/dssi/fluidsynth-dssi.so", 
    type=type@entry=2, loader=loader@entry=0x0, mode=mode@entry=-1879048190, 
nsid=nsid@entry=0) at dl-object.c:89
#9  0x00007ffff7fd42fa in _dl_map_object_from_fd 
(name=name@entry=0x7fffb0153ab8 "/usr/lib/dssi/fluidsynth-dssi.so", 
origname=origname@entry=0x0, fd=34, 
    fbp=fbp@entry=0x7fffc25ec020, realname=0x7fffb014e0a0 
"/usr/lib/dssi/fluidsynth-dssi.so", loader=loader@entry=0x0, l_type=2, 
mode=-1879048190, stack_endp=0x7fffc25ec018, 
    nsid=0) at dl-load.c:1077
#10 0x00007ffff7fd59cd in _dl_map_object (loader=0x0, 
loader@entry=0x7ffff7ffe220, name=name@entry=0x7fffb0153ab8 
"/usr/lib/dssi/fluidsynth-dssi.so", type=type@entry=2, 
    trace_mode=trace_mode@entry=0, mode=mode@entry=-1879048190, nsid=<optimized 
out>) at dl-load.c:2336
#11 0x00007ffff7fe0078 in dl_open_worker (a=a@entry=0x7fffc25ec560) at 
dl-open.c:526
#12 0x00007ffff614a630 in __GI__dl_catch_exception (exception=0x7fffc25ec540, 
operate=0x7ffff7fdffd0 <dl_open_worker>, args=0x7fffc25ec560) at 
dl-error-skeleton.c:208
#13 0x00007ffff7fdfbfa in _dl_open (file=0x7fffc25ec540 
"\361\236\071\330\377\177", mode=-2147483646, 
    caller_dlopen=0x555555e3188e 
<Rosegarden::LADSPAPluginFactory::loadLibrary(QString)+122>, nsid=-2, argc=1, 
argv=0x7fffffffe068, env=0x7fffffffe078) at dl-open.c:858
#14 0x00007ffff6b12248 in dlopen_doit (a=a@entry=0x7fffc25ec790) at dlopen.c:66
#15 0x00007ffff614a630 in __GI__dl_catch_exception 
(exception=exception@entry=0x7fffc25ec730, operate=0x7ffff6b121f0 
<dlopen_doit>, args=0x7fffc25ec790)
    at dl-error-skeleton.c:208
#16 0x00007ffff614a6ef in __GI__dl_catch_error (objname=0x7fffb00029e0, 
errstring=0x7fffb00029e8, mallocedp=0x7fffb00029d8, operate=<optimized out>, 
args=<optimized out>)
    at dl-error-skeleton.c:227
#17 0x00007ffff6b12a59 in _dlerror_run (operate=operate@entry=0x7ffff6b121f0 
<dlopen_doit>, args=args@entry=0x7fffc25ec790) at dlerror.c:171
#18 0x00007ffff6b122d4 in __dlopen (file=<optimized out>, mode=<optimized out>) 
at dlopen.c:87
#19 0x0000555555e3188e in Rosegarden::LADSPAPluginFactory::loadLibrary 
(this=0x7fffb0004fd0, soName=...)
    at /home/rainer/Downloads/rosegarden/src/sound/LADSPAPluginFactory.cpp:504
#20 0x0000555555ccda56 in Rosegarden::DSSIPluginFactory::getDSSIDescriptor 
(this=0x7fffb0004fd0, identifier=...)
    at /home/rainer/Downloads/rosegarden/src/sound/DSSIPluginFactory.cpp:183
#21 0x0000555555ccc654 in Rosegarden::DSSIPluginFactory::enumeratePlugins 
(this=0x7fffb0004fd0, list=...)
    at /home/rainer/Downloads/rosegarden/src/sound/DSSIPluginFactory.cpp:47
#22 0x0000555555cb4839 in Rosegarden::PluginFactory::enumerateAllPlugins 
(list=...) at /home/rainer/Downloads/rosegarden/src/sound/PluginFactory.cpp:83
#23 0x0000555555ba1a10 in Rosegarden::AudioPluginManager::Enumerator::run 
(this=0x555556f202d0) at 
/home/rainer/Downloads/rosegarden/src/gui/studio/AudioPluginManager.cpp:79
#24 0x00007ffff6c01a21 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007ffff6ae4d80 in start_thread (arg=0x7fffc25ed640) at 
pthread_create.c:481
#26 0x00007ffff611076f in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) quit
A debugging session is active.

        Inferior 1 [process 4380] will be killed.

Quit anyway? (y or n) y

Reply via email to