Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1007103: rosegarden: Debian bookworm: rosegarden reports "malloc_consolidate(): unaligned fastbin chunk detected"

386 views
Skip to first unread message

Rainer Hans Liffers

unread,
Mar 11, 2022, 3:10:04 AM3/11/22
to
Package: rosegarden
Version: 1:21.12-1
Severity: important
X-Debbugs-Cc: rainer....@gmail.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

* What led up to the situation?
I changed to Debian bookworm in order to use up-to-date version of pipewire.
Now I cannot use rosegarden any more.
System info:
System:
Host: Freya Kernel: 5.10.0-10-rt-amd64 x86_64 bits: 64
Desktop: KDE Plasma 5.24.2 Distro: Debian GNU/Linux bookworm/sid
Machine:
Type: Laptop System: Dell product: Inspiron 15 5510 v: N/A
serial: <superuser required>
Mobo: Dell model: 076F7Y v: A00 serial: <superuser required> UEFI: Dell
v: 2.6.1 date: 12/15/2021

* What exactly did you do (or not do) that was effective (or
ineffective)?
I scanned the Internet for possible solutions.

* What was the outcome of this action?
None found.

* What outcome did you expect instead?
A fitting generic solution for problem "malloc_consolidate(): unaligned fastbin
chunk detected".
*** End of the template - remove these template lines ***


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-10-rt-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rosegarden depends on:
ii flac 1.3.4-1
ii libasound2 1.2.6.1-2
ii libc6 2.33-7
ii libfftw3-single3 3.3.8-2
ii libgcc-s1 12-20220302-1
ii libjack-jackd2-0 [libjack-0.125] 1.9.20~dfsg-1+b1
ii liblirc-client0 0.10.1-6.3
ii liblo7 0.31-1
ii liblrdf0 0.6.1-2
ii libqt5core5a 5.15.2+dfsg-15
ii libqt5gui5 5.15.2+dfsg-15
ii libqt5network5 5.15.2+dfsg-15
ii libqt5widgets5 5.15.2+dfsg-15
ii libsamplerate0 0.2.2-1
ii libsndfile1 1.0.31-2
ii libstdc++6 12-20220302-1
ii libxml-twig-perl 1:3.52-1
ii sndfile-programs 1.0.31-2
ii zlib1g 1:1.2.11.dfsg-2

Versions of packages rosegarden recommends:
ii amb-plugins [ladspa-plugin] 0.8.1-7+b1
ii cups-bsd [lpr] 2.4.1op1-2
ii fil-plugins [ladspa-plugin] 0.3.0-6+b1
ii firefox-esr [www-browser] 91.6.1esr-1~deb11u1
ii ghostscript 9.55.0~dfsg-3
ii jackd 5+nmu1
ii konqueror [www-browser] 4:21.08.2-1
ii lilypond 2.22.1-2
ii okular [pdf-viewer] 4:21.12.3-1
ii swh-plugins [ladspa-plugin] 0.4.17-2
ii tap-plugins [ladspa-plugin] 1.0.0-1
ii wavpack 5.4.0-1

Versions of packages rosegarden suggests:
pn awesfx <none>
ii qjackctl 0.9.6-1

-- no debconf information

Rainer Hans Liffers

unread,
Mar 11, 2022, 9:10:04 PM3/11/22
to
Hi there

I am using a Dell Inspiron 15 5510 running Debian bookworm. I also installed package
firmware-sof-signed_1.9-1_all.deb to accommodate the Tiger Lake hardware.

Even if I suppress the firmware by changing grub entry

GRUB_CMDLINE_LINUX_DEFAULT="quiet snd_hda_intel.dmic_detect=0"

(refer to https://askubuntu.com/questions/1243369/sound-card-not-detected-ubuntu-20-04-sof-audio-pci)

in order to enforce usage of the legacy Intel driver, rosegarden still reports the same error.

Here is the complete rosegarden trace using the correct Tiger Lake firmware. Please remember I am
using pipewire, not jack.  BTW, the sample rate displayed below is also incorrect, should be 44100.

rainer@Freya:~$ rosegarden  --version

Rosegarden version: 21.12 ("Cloud Nine")

Build key: 48ae16c885

Built against Qt version: 5.15.2

rainer@Freya:~$ rosegarden

[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)...

[main] Creating RosegardenMainWindow instance...

[SequencerThread] run()

[PluginFactory] PluginFactory::instance( "dssi" ): creating new DSSIPluginFactory

[JackDriver] initialise() begin...

[JackDriver] initialise() - JACK sample rate =  48000 Hz, buffer size =  1024

[JackDriver] initialise() - creating disk thread...

[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

[AlsaDriver] setCurrentTimer(): WARNING: using system timer with only  250 Hz resolution!

[Composition] getTrackById( 0 ): WARNING: Track ID not found.

[Composition]   Available track ids are:

[AlsaDriver] renameDevice(): WARNING: Cannot find device  1  in port map

malloc_consolidate(): unaligned fastbin chunk detected

Aborted



Ted Felix

unread,
Mar 16, 2022, 3:00:03 PM3/16/22
to
> malloc_consolidate(): unaligned fastbin chunk detected Aborted

We've not seen this upstream. Best bet would be to do a debug build
from source and run under gdb. Then do a backtrace when it crashes.
That should help us determine whether it is Rosegarden or one of the
many libraries it pulls in. Let me know if you need help with this and
I'll point you to the relevant pages on our wiki.

Ted Felix

unread,
Mar 19, 2022, 12:00:05 PM3/19/22
to
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.
bt.txt

Ted Felix

unread,
Mar 19, 2022, 12:50:03 PM3/19/22
to
I just pushed improved plugin logging as [3a07309c]. If you can,
please test latest git:

https://sourceforge.net/p/rosegarden/git/ci/master/tree/

A debug build should now let you know when it is trying to load a
plugin. And that should be the last thing you see from rosegarden when
a plugin crashes on load.

Ted Felix

unread,
Mar 24, 2022, 11:10:03 AM3/24/22
to
OP informs me that he tracked the problem down to the ZynAddSubFX
DSSI plugin. He switched to the ZynAddSubFX standalone app and all is
well for him.

This bug can be closed for rosegarden.

Ted Felix

unread,
Mar 27, 2022, 8:50:04 AM3/27/22
to
On 3/27/22 1:49 AM, Ron Murray wrote:
> I have the same problem here. Removing lmms and fluidsynth-dssi made no
> difference.
>
> I did a debug build and ran it with gdb. The resullt is attached.

Thanks. In your case it looks like something called "whysynth" is
the issue:

/usr/lib/dssi/whysynth.so

This is shown in the _dl_map_object() entry in the backtrace:

#10 0x00007ffff7fd59cd in _dl_map_object (loader=0x0,
loader@entry=0x7ffff7ffe220, name=name@entry=0x7fffdc1a3e30
"/usr/lib/dssi/whysynth.so", type=type@entry=2,
trace_mode=trace_mode@entry=0, mode=mode@entry=-1879048191,
nsid=<optimized out>) at dl-load.c:2336

Try uninstalling that. The others might still be an issue, so don't
be surprised if it continues to crash and more plugins need to be
uninstalled.

There appear to be a number of issues with the various DSSI synth
plugins. Someone needs to open bug reports against each of these
crashing plugins and mention all the others. That should get us closer
to finding the real problem.

This bug report against rosegarden can be closed.
0 new messages