Bug#945814: audacity: various segfaults of audacity on startup

2020-02-23 Thread Tjeerd Pinkert
Dear Bernhard,

thanks for the efforts.

Best regards,


Tjeerd Pinkert

On 1/27/20 15:26, Bernhard Übelacker wrote:
> Control: reassign -1 zynaddsubfx-dssi 3.0.3-1
> Control: affects -1 + audacity
> 
> 
> Hello Tjeerd,
> 
>> Thanks for coming back, I'm not in a hurry...
>>
>> The problem is that I can not trigger specific bugs (they seem to happen
>> somewhat random). So a made some more valgrinds: valgrind.dat 
> 
> Because the error des not manifest each run in the same location
> this might be thread related e.g. two threads are working on the
> same memory.
> 
> 
>> I had zynaddsubfx installed to try it out and see if I like it, but did
>> not uninstall after the tries (sufficient diskspace luxury). I could
>> uninstall zynadd, zynsaddsubfx and zynaddsubfx-dssi, the data package is
>> depended on by the lmms-common package.
> 
> I tried to install some more lv2 plugins and bridges and after enabling
> all in audacity I got the shared library loaded libzynaddsubfx_dssi.so
> by just starting audacity - but still cannot reproduce a crash.
> (Details attached.)
> 
> 
>> And audacity runs without crashing (thanks for the hint) but still gives
>> a lot of debug output: audacity_debug.dat
> 
> Most of the remaining output seems gui related - seems to be harmless.
> 
> 
>> So at least the the source of all evil is now clear... and the bug
>> "resolved". Do you have contact with the zynaddsubfx devs and file a bug
>> there? Devs amongst each other might talk clearer? Otherwise I'm happy
>> to do it.
> 
> It might not be that clear - depending on e.g. libzynaddsubfx_dssi.so
> is intended to work multi threaded ...
> 
> When I did run audacity in my test environment I get some
> "Possible data race" with valgrind's helgrind tool.
> 
> At least it might be related to some plugins, either direct or
> via some bridges, therefore I hope it is ok to reassign.
> 
> Bringing the issue upstream might also not be a bad idea.
> 
> Kind regards,
> Bernhard



signature.asc
Description: OpenPGP digital signature


Bug#945814: audacity: various segfaults of audacity on startup

2020-01-27 Thread Bernhard Übelacker
Control: reassign -1 zynaddsubfx-dssi 3.0.3-1
Control: affects -1 + audacity


Hello Tjeerd,

> Thanks for coming back, I'm not in a hurry...
> 
> The problem is that I can not trigger specific bugs (they seem to happen
> somewhat random). So a made some more valgrinds: valgrind.dat 

Because the error des not manifest each run in the same location
this might be thread related e.g. two threads are working on the
same memory.


> I had zynaddsubfx installed to try it out and see if I like it, but did
> not uninstall after the tries (sufficient diskspace luxury). I could
> uninstall zynadd, zynsaddsubfx and zynaddsubfx-dssi, the data package is
> depended on by the lmms-common package.

I tried to install some more lv2 plugins and bridges and after enabling
all in audacity I got the shared library loaded libzynaddsubfx_dssi.so
by just starting audacity - but still cannot reproduce a crash.
(Details attached.)


> And audacity runs without crashing (thanks for the hint) but still gives
> a lot of debug output: audacity_debug.dat

Most of the remaining output seems gui related - seems to be harmless.


> So at least the the source of all evil is now clear... and the bug
> "resolved". Do you have contact with the zynaddsubfx devs and file a bug
> there? Devs amongst each other might talk clearer? Otherwise I'm happy
> to do it.

It might not be that clear - depending on e.g. libzynaddsubfx_dssi.so
is intended to work multi threaded ...

When I did run audacity in my test environment I get some
"Possible data race" with valgrind's helgrind tool.

At least it might be related to some plugins, either direct or
via some bridges, therefore I hope it is ok to reassign.

Bringing the issue upstream might also not be a bad idea.

Kind regards,
Bernhard

# Buster/stable amd64 qemu VM 2020-01-27

apt update
apt dist-upgrade


apt install systemd-coredump xserver-xorg sddm openbox xterm mc strace valgrind 
gdb audacity jackd2 lmms zynadd zynaddsubfx-dssi liblv2dynparamhost1-1 
naspro-bridges audacity-dbgsym libstdc++6-8-dbg zynaddsubfx-dssi-dbgsym 
naspro-bridges-dbgsym libjack-jackd2-0-dbgsym libwxbase3.0-0v5-dbgsym 
libportaudio2-dbgsym libnabrit-dbg liblilv-0-0-dbgsym


reboot


# dpkg -l | grep -i -E "audacity|jack|zynaddsubfx|lmms"
ii  audacity   2.2.2-1+b1   amd64
fast, cross-platform audio editor
ii  audacity-data  2.2.2-1  all  
fast, cross-platform audio editor (data)
ii  audacity-dbgsym2.2.2-1+b1   amd64
debug symbols for audacity
ii  jackd  5+nmu1   all  
JACK Audio Connection Kit (default server package)
ii  jackd2 1.9.12~dfsg-2amd64
JACK Audio Connection Kit (server and example clients)
ii  jackd2-firewire1.9.12~dfsg-2amd64
JACK Audio Connection Kit (FFADO and FreeBoB backends)
ii  libjack-jackd2-0:amd64 1.9.12~dfsg-2amd64
JACK Audio Connection Kit (libraries)
ii  libjack-jackd2-0-dbgsym:amd64  1.9.12~dfsg-2amd64
debug symbols for libjack-jackd2-0
ii  lmms   1.1.3-8.1amd64
Linux Multimedia Studio
ii  lmms-common1.1.3-8.1all  
Linux Multimedia Studio - common files
ii  qjackctl   0.5.0-1  amd64
User interface for controlling the JACK sound server
ii  zynadd 1+git.20100609+dfsg0-4   amd64
ZynAddSubFX engines converted to LV2 plugin format
ii  zynaddsubfx3.0.3-1  amd64
Realtime software synthesizer for Linux
ii  zynaddsubfx-data   3.0.3-1  all  
Realtime software synthesizer for Linux (data)
ii  zynaddsubfx-dssi   3.0.3-1  amd64
dssi plugin of zynaddsubfx
ii  zynaddsubfx-dssi-dbgsym3.0.3-1  amd64
debug symbols for zynaddsubfx-dssi





export LANG=C
export DISPLAY=:0

qjackctl
# Start



audacity

# Select all new plugins and enable
# Close




gdb -q

set width 0
set pagination off
set breakpoint pending on
file /usr/bin/audacity
break _ZN3zyn10MiddleWare4tickEv
run
break 
_ZN3zyn4Bank9addtobankEiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_
cont
break free
cont
generate /home/benutzer/core



(gdb) bt
#0  __GI___libc_free (mem=0x5652b0c0) at malloc.c:3083
#1  0x7fffe9511f3d in zyn::Bank::addtobank(int, 
std::__cxx11::basic_string, std::allocator 
>, std::__cxx11::basic_string, 
std::allocator >) () from /usr/lib/dssi/libzynaddsubfx_dssi.so
#2  0x7fffe95138a1 in zyn::Bank::loadbank(std::__cxx11::basic_string, std::allocator >) () from 
/usr/lib/dssi/libzynaddsubfx_dssi.so
#3  0x7fffe955b29c in ?? () from 

Bug#945814: Fwd: Bug#945814: audacity: various segfaults of audacity on startup

2020-01-26 Thread Bernhard Übelacker
Hello Tjeerd,
sorry for the delay.
I would have expected more output from catchsegv.

I guess the first valgrind run would have been better
placed in an attachement too.

The file audacity_coredumps.log points to
libzynaddsubfx_dssi.so that belongs to package zynaddsubfx-dssi.
That seems to be involved in the crash at least.

I guess this package is installed on purpose on your system?
If not uninstalling could be a workaround.

As I just tried to help triaging this issue and being not involved
in packaging I have not enough knowledge how to setup a system to
get this file loaded by audacity.

Therefore probably you could add what needs to be done
from a fresh installed system to reach a setup similar to yours.

And please add the output of following:
   dpkg -l | grep -i -E "audacity|jack|zynaddsubfx"

Kind regards,
Bernhard


Backtrace from audacity_coredumps.log what it should look like with debug 
symbols installed:
Stack trace of thread 11485:
#0  0x7f94d6a507bb __GI_raise (libc.so.6)
#1  0x7f94d6a3b535 __GI_abort (libc.so.6)
#2  0x7f94d6a92508 __libc_message (libc.so.6)
#3  0x7f94d6a98c1a malloc_printerr (libc.so.6)
#4  0x7f94d6a9a5d7 _int_free (libc.so.6)
#5  0x7f94cacf6f3d in __gnu_cxx::new_allocator::deallocate(char*, 
unsigned long) at /usr/include/c++/7/ext/new_allocator.h:125
   in zyn::Bank::addtobank(int, 
std::__cxx11::basic_string, std::allocator 
>, std::__cxx11::basic_string, 
std::allocator >)
#6  0x7f94cacf88a1 in zyn::Bank::loadbank(std::__cxx11::basic_string, std::allocator >) at ./src/Misc/Bank.cpp:267
#7  0x7f94cad4029c in zyn::MiddleWareImpl::loadPendingBank(int, zyn::Bank&) 
at ./src/Misc/MiddleWare.cpp:477
#8  0x7f94cade20ea in std::function::operator()(char const*, rtosc::RtData&) const at 
/usr/include/c++/7/bits/std_function.h:706
   in rtosc::Ports::dispatch(char const*, rtosc::RtData&, 
bool)
#9  0x7f94cad42959 in zyn::MiddleWareImpl::bToUhandle(char const*) at 
./src/Misc/MiddleWare.cpp:1905
#10 0x7f94cad42cbf in zyn::MiddleWareImpl::tick() at 
./src/Misc/MiddleWare.cpp:698
#11 0x7f94cacf43fd in DSSIaudiooutputoperator() at 
./src/Output/DSSIaudiooutput.cpp:635
#12 0x7f94d6e32b2f n/a (libstdc++.so.6)
#13 0x7f94d6f0efa3 in start_thread (arg=) at 
pthread_create.c:486
#14 0x7f94d6b124cf in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

https://sources.debian.org/src/zynaddsubfx/3.0.3-1/src/Misc/Bank.cpp/#L506
https://sources.debian.org/src/zynaddsubfx/3.0.3-1/src/Misc/Bank.cpp/#L267



Bug#945814: Fwd: Bug#945814: audacity: various segfaults of audacity on startup

2020-01-14 Thread Bernhard Übelacker
Sorry, forget the right email.


 Forwarded Message 
Betreff: Re: Bug#945814: audacity: various segfaults of audacity on startup
Datum: Tue, 14 Jan 2020 11:46:06 +0100
Von: Bernhard Übelacker 
An: 945...@bugs.debian.org

Hello Tjeerd,
If this issue still exists on your system, you might try
to rename $HOME/.audacity-data to test if it depends on
some settings stored there.

If it still crashes then you might start it by following
and forward the output:
$ catchsegv audacity

Better would be if you could install the packages:
systemd-coredump gdb valgrind audacity-dbgsym
The last one is in a different repository described here [1].

Then some more information should appear after
a crash in 'journalctl --no-pager'.

Also running audacity by following could give some pointer:
$ valgrind audacity

Kind regards,
Bernhard

[1] https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols



Bug#945814: audacity: various segfaults of audacity on startup

2020-01-14 Thread Bernhard Übelacker
Hello Tjeerd,
If this issue still exists on your system, you might try
to rename $HOME/.audacity-data to test if it depends on
some settings stored there.

If it still crashes then you might start it by following
and forward the output:
$ catchsegv audacity

Better would be if you could install the packages:
systemd-coredump gdb valgrind audacity-dbgsym
The last one is in a different repository described here [1].

Then some more information should appear after
a crash in 'journalctl --no-pager'.

Also running audacity by following could give some pointer:
$ valgrind audacity

Kind regards,
Bernhard

[1] https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols



Bug#945814: audacity: various segfaults of audacity on startup

2019-11-28 Thread Tjeerd Pinkert
Package: audacity
Version: 2.2.2-1+b1
Severity: grave
Tags: upstream
Justification: renders package unusable

Dear Maintainer,

thanks for creating a normally very stable and properly functioning system.

* What led up to the situation?
I tried to start the program audacity
$ audacity

* What exactly did you do (or not do) that was effective (or
  ineffective)?
Nothing unusual

* What was the outcome of this action?
various responces follow:

:~$ audacity
lo server running on 15889
../src/common/debugrpt.cpp(453): assert "IsOk()" failed in AddContext():
use IsOk() first [in thread 7f6f3c5f1700]
Segmentation fault

:~$ audacity -v
lo server running on 15901
munmap_chunk(): invalid pointer
Aborted

:~$ audacity
lo server running on 15907
Warning: failed to load part<>!
Segmentation fault

:~$ audacity
lo server running on 15911
../src/common/debugrpt.cpp(453): assert "IsOk()" failed in AddContext():
use IsOk() first [in thread 7f76eb92d700]
Segmentation fault

:~$ audacity
lo server running on 15918
Segmentation fault

:~$ audacity
lo server running on 15923
Segmentation fault

:~$ audacity --version
lo server running on 15942
double free or corruption (fasttop)
Aborted

:~$ audacity
lo server running on 15947
malloc_consolidate(): invalid chunk size
Aborted

:~$ audacity
lo server running on 15950
../src/common/debugrpt.cpp(453): assert "IsOk()" failed in AddContext():
use IsOk() first [in thread 7f70fa1a0700]
Segmentation fault

:~$ audacity
lo server running on 15953
../src/common/debugrpt.cpp(453): assert "IsOk()" failed in AddContext():
use IsOk() first [in thread 7f0f2862d700]
Segmentation fault

* What outcome did you expect instead?
I expected audacity to start
I was not able to resolve the problem.

I hope the problem may be solved...

Best regards,


Tjeerd Pinkert



-- System Information:
Debian Release: 10.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages audacity depends on:
ii  audacity-data  2.2.2-1
ii  libasound2 1.1.8-1
ii  libavcodec-extra58 [libavcodec58]  7:4.1.4-1~deb10u1
ii  libavformat58  7:4.1.4-1~deb10u1
ii  libavutil567:4.1.4-1~deb10u1
ii  libc6  2.28-10
ii  libexpat1  2.2.6-2+deb10u1
ii  libflac++6v5   1.3.2-3
ii  libflac8   1.3.2-3
ii  libgcc11:8.3.0-6
ii  libgdk-pixbuf2.0-0 2.38.1+dfsg-1
ii  libglib2.0-0   2.58.3-2+deb10u2
ii  libgtk2.0-02.24.32-3
ii  libid3tag0 0.15.1b-14
ii  liblilv-0-00.24.2~dfsg0-2
ii  libmad00.15.1b-10
ii  libmp3lame03.100-2+b1
ii  libogg01.3.2-1+b1
ii  libportaudio2  19.6.0-1
ii  libportsmf00.1~svn20101010-5
ii  libsndfile11.0.28-6
ii  libsoundtouch1 2.1.2+ds1-1
ii  libsoxr0   0.1.2-3
ii  libstdc++6 8.3.0-6
ii  libsuil-0-00.10.0~dfsg0-1
ii  libtwolame00.3.13-4
ii  libvamp-hostsdk3v5 2.7.1~repack0-1
ii  libvorbis0a1.3.6-2
ii  libvorbisenc2  1.3.6-2
ii  libvorbisfile3 1.3.6-2
ii  libwxbase3.0-0v5   3.0.4+dfsg-8
ii  libwxgtk3.0-0v53.0.4+dfsg-8

audacity recommends no packages.

Versions of packages audacity suggests:
ii  amb-plugins [ladspa-plugin]   0.8.1-7
ii  ambdec [ladspa-plugin]0.7.1-1
ii  autotalent [ladspa-plugin]0.2-5
ii  blepvco [ladspa-plugin]   0.1.0-3+b1
ii  blop [ladspa-plugin]  0.2.8-6.1
ii  bs2b-ladspa [ladspa-plugin]   0.9.1-3
ii  caps [ladspa-plugin]  0.9.26-1
ii  cmt [ladspa-plugin]   1.16-2
ii  csladspa [ladspa-plugin]  1:6.11.1-1
ii  fil-plugins [ladspa-plugin]   0.3.0-6
ii  guitarix-ladspa [ladspa-plugin]   0.36.1-1+b1
ii  invada-studio-plugins-ladspa [ladspa-plugin]  0.3.1-5
ii  ladspa-sdk [ladspa-plugin]1.13-3
ii  mcp-plugins [ladspa-plugin]   0.4.0-6
ii  omins [ladspa-plugin] 0.2.0-7.1
ii  rev-plugins