Bug#1081697: lsp-plugins-lv2: crash (segfault) when trying to import hydrogen drumkits (drumkit.xml)
Package: lsp-plugins-lv2
Version: 1.2.16-1
Severity: important
Dear Maintainer,
* What led up to the situation?
I'm using Ardour 8.6.0+ds-1+b1 and wanted to use lsp-plugin stereo
sampler from
package lsp-plugins-lv2 and import a Hydrogen drumkit into this plugin.
But
every tried drumkit lead to segfault of lsp-plugin and ardour.
I tried nearly every drumkit from the debian package, online library
download
and from a fedora instalaltion from another PC. but it crashed every
time.
On fedora 40 it worked without any problems
When I started ardour from command line I could read the following
output, when
tried to load drumkit:
[WRN] Unexpected tag: licence
[WRN] Unexpected tag: licence
[WRN] Unexpected tag: licence
[WRN] Unexpected tag: image
[WRN] Unexpected tag: imageLicense
[WRN] Unexpected tag: componentList
[WRN] Unexpected tag: isSoloed
[WRN] Unexpected tag: pan
[WRN] Unexpected tag: pitchOffset
[WRN] Unexpected tag: applyVelocity
[WRN] Unexpected tag: sampleSelectionAlgo
[WRN] Unexpected tag: isHihat
[WRN] Unexpected tag: lower_cc
[WRN] Unexpected tag: higher_cc
[WRN] Unexpected tag: component_id
[WRN] Unexpected tag: gain
[WRN] Unexpected tag: isSoloed
[WRN] Unexpected tag: pan
[WRN] Unexpected tag: pitchOffset
[WRN] Unexpected tag: applyVelocity
[WRN] Unexpected tag: sampleSelectionAlgo
[WRN] Unexpected tag: isHihat
[WRN] Unexpected tag: lower_cc
[WRN] Unexpected tag: higher_cc
[WRN] Unexpected tag: component_id
...
[WRN] Unexpected tag: gain
[WRN] Unexpected tag: isSoloed
[WRN] Unexpected tag: pitchOffset
[WRN] Unexpected tag: applyVelocity
[WRN] Unexpected tag: sampleSelectionAlgo
[WRN] Unexpected tag: isHihat
[WRN] Unexpected tag: lower_cc
[WRN] Unexpected tag: higher_cc
[WRN] Unexpected tag: component_id
[WRN] Unexpected tag: gain
Segmentation fault
this is the the start of an similar drumkit xml file:
<?xml version="1.0" encoding="UTF-8"?>
<drumkit_info xmlns="http://www.hydrogen-music.org/drumkit"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<name>Audiophob2</name>
<author>soundcloud.com/audiophobdubstep</author>
<info><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style
type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-
size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-
right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-
family:'Lucida Grande';">Cheap sounds from freesound.org with no
copyright</span></p></body></html></info>
<license>This work is licensed under the Creative Commons 0
License.</license>
<image></image>
<imageLicense>undefined license</imageLicense>
<componentList>
<drumkitComponent>
<id>0</id>
<name>Main</name>
<volume>1</volume>
</drumkitComponent>
</componentList>
<instrumentList>
<instrument>
<id>0</id>
<name>Kick</name>
<volume>1</volume>
<isMuted>false</isMuted>
<isSoloed>false</isSoloed>
<pan_L>1</pan_L>
<pan_R>1</pan_R>
<pitchOffset>0</pitchOffset>
<randomPitchFactor>0</randomPitchFactor>
<gain>1</gain>
<applyVelocity>true</applyVelocity>
<filterActive>true</filterActive>
<filterCutoff>1</filterCutoff>
<filterResonance>0</filterResonance>
<Attack>0</Attack>
<Decay>0</Decay>
<Sustain>1</Sustain>
<Release>999</Release>
<muteGroup>-1</muteGroup>
It seems, that lsp-plugin sampler is unable to parse xml files
So I did an ldd on the so file on debian:
ldd /usr/lib/lv2/lsp-plugins.lv2/lsp-plugins-lv2.so
linux-vdso.so.1 (0x00007fa1b7dad000)
libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1
(0x00007fa1b7574000)
libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2
(0x00007fa1b742b000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007fa1b7000000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
(0x00007fa1b7347000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
(0x00007fa1b6e15000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa1b7daf000)
libFLAC.so.12 => /lib/x86_64-linux-gnu/libFLAC.so.12
(0x00007fa1b72e3000)
libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0
(0x00007fa1b72b6000)
libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2
(0x00007fa1b6d6a000)
libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0
(0x00007fa1b6a00000)
libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0
(0x00007fa1b72ac000)
libmpg123.so.0 => /lib/x86_64-linux-gnu/libmpg123.so.0
(0x00007fa1b69a3000)
libmp3lame.so.0 => /lib/x86_64-linux-gnu/libmp3lame.so.0
(0x00007fa1b692b000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1
(0x00007fa1b728b000)
libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16
(0x00007fa1b68f5000)
libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1
(0x00007fa1b68a8000)
libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6
(0x00007fa1b67d8000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6
(0x00007fa1b6694000)
libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6
(0x00007fa1b7274000)
libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1
(0x00007fa1b7267000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1
(0x00007fa1b6669000)
libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0
(0x00007fa1b665b000)
libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0
(0x00007fa1b6d65000)
libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0
(0x00007fa1b65a9000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x00007fa1b657c000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1
(0x00007fa1b6551000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0
(0x00007fa1b653e000)
libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1
(0x00007fa1b6530000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6
(0x00007fa1b6529000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6
(0x00007fa1b6521000)
libbrotlicommon.so.1 => /lib/x86_64-linux-
gnu/libbrotlicommon.so.1
(0x00007fa1b64fe000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0
(0x00007fa1b64e9000)
libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0
(0x00007fa1b64da000)
on fedora (40) it seems, that libxml2 is linked:
ldd /usr/lib64/lv2/lsp-plugins.lv2/lsp-plugins-lv2.so
linux-vdso.so.1 (0x00007f2afb2da000)
libsndfile.so.1 => /lib64/libsndfile.so.1 (0x00007f2afb244000)
libcairo.so.2 => /lib64/libcairo.so.2 (0x00007f2afa8cb000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f2afa600000)
libm.so.6 => /lib64/libm.so.6 (0x00007f2afa51c000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f2afb216000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2afa32b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2afb2dc000)
libgsm.so.1 => /lib64/libgsm.so.1 (0x00007f2afb205000)
libFLAC.so.12 => /lib64/libFLAC.so.12 (0x00007f2afa867000)
libvorbis.so.0 => /lib64/libvorbis.so.0 (0x00007f2afa2fc000)
libvorbisenc.so.2 => /lib64/libvorbisenc.so.2
(0x00007f2afa264000)
libopus.so.0 => /lib64/libopus.so.0 (0x00007f2afa1fc000)
libogg.so.0 => /lib64/libogg.so.0 (0x00007f2afb1fb000)
libmpg123.so.0 => /lib64/libmpg123.so.0 (0x00007f2afa1a2000)
libmp3lame.so.0 => /lib64/libmp3lame.so.0 (0x00007f2afa12b000)
libz.so.1 => /lib64/libz.so.1 (0x00007f2afa10a000)
libpng16.so.16 => /lib64/libpng16.so.16 (0x00007f2afa0d0000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1
(0x00007f2afa080000)
libfreetype.so.6 => /lib64/libfreetype.so.6
(0x00007f2af9fb7000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007f2af9e72000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007f2af9e5e000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00007f2afb1eb000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f2af9e33000)
libxcb-render.so.0 => /lib64/libxcb-render.so.0
(0x00007f2af9e23000)
libxcb-shm.so.0 => /lib64/libxcb-shm.so.0 (0x00007f2af9e1e000)
libpixman-1.so.0 => /lib64/libpixman-1.so.0
(0x00007f2af9d6f000)
libxml2.so.2 => /lib64/libxml2.so.2 (0x00007f2af9c11000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f2af9bfd000)
libharfbuzz.so.0 => /lib64/libharfbuzz.so.0
(0x00007f2af9ae1000)
libbrotlidec.so.1 => /lib64/libbrotlidec.so.1
(0x00007f2af9ad3000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007f2af9acd000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f2af9a9a000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0
(0x00007f2af994c000)
libgraphite2.so.3 => /lib64/libgraphite2.so.3
(0x00007f2af992c000)
libbrotlicommon.so.1 => /lib64/libbrotlicommon.so.1
(0x00007f2af9909000)
libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f2af9869000)
Perhaps, this could be the root cause...? lsp-plugins are built without
xml
support.
If this is the problem, please built lsp-plugins with xml support
Otherwise I would be happy to provide more information.
Thank you and best regards
Thomas
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.10.6-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages lsp-plugins-lv2 depends on:
ii libc6 2.40-2
ii libcairo2 1.18.2-1
ii libfreetype6 2.13.3+dfsg-1
ii libsndfile1 1.2.2-1+b2
ii libstdc++6 14.2.0-3
ii libx11-6 2:1.8.7-1+b1
ii libxrandr2 2:1.5.4-1
ii lsp-plugins-r3d-glx 1.2.16-1
lsp-plugins-lv2 recommends no packages.
lsp-plugins-lv2 suggests no packages.
-- no debconf information
Reply to: