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 crashes when exporting bigger projects #2439

Closed
karmux opened this issue Nov 8, 2015 · 9 comments
Closed

LMMS crashes when exporting bigger projects #2439

karmux opened this issue Nov 8, 2015 · 9 comments

Comments

@karmux
Copy link
Contributor

karmux commented Nov 8, 2015

Reproducible with nearly any of the cool songs that come with LMMS. Console output is Segmentation fault (core dumped). They play with no problems. Exporting works for simple and small projects.
LMMS master with SDL or Pulseaudio (don't have jack and alsa not working properly atm).

@musikBear
Copy link

for other to reproduce, name the one song that always crash at export

@karmux
Copy link
Contributor Author

karmux commented Nov 9, 2015

Alf42red-Mauiwowi.mmpz
Momo64-esp.mmpz

@Umcaruje
Copy link
Member

Umcaruje commented Nov 9, 2015

Hi, @karmux, thanks for reporting this. Could you do a backtrace of the crash? We have a tutorial for that here: https://github.com/LMMS/lmms/wiki/Debugging-LMMS

@michaelgregorius
Copy link
Contributor

Might be a problem with ZynAddSubFX. Here's the stack that I get when trying to export Alf42red-Mauiwowi.mmpz:

0   malloc_consolidate          0x7ffff4281ac5  
1   _int_free           0x7ffff4282810  
2   Part::~Part Part.cpp    181 0x7fffd1369af6  
3   Master::~Master Master.cpp  526 0x7fffd1363c60  
4   LocalZynAddSubFx::~LocalZynAddSubFx LocalZynAddSubFx.cpp    91  0x7fffd13517dd  
5   ZynAddSubFxInstrument::initPlugin   ZynAddSubFx.cpp 425 0x7fffd15c07c1  
6   ZynAddSubFxInstrument::reloadPlugin ZynAddSubFx.cpp 379 0x7fffd15c4149  
7   QMetaObject::activate(QObject *, QMetaObject const *, int, void * *)            0x7ffff68e6640  
8   Mixer::sampleRateChanged    moc_Mixer.cpp   108 0x624a95    
9   Mixer::setAudioDevice   Mixer.cpp   574 0x5218d7    
10  ProjectRenderer::startProcessing    ProjectRenderer.cpp 145 0x538f4b    
11  RenderManager::renderProject    RenderManager.cpp   170 0x53d40c    
12  ExportProjectDialog::startExport    ExportProjectDialog.cpp 170 0x57d77e    
13  ExportProjectDialog::startBtnClicked    ExportProjectDialog.cpp 208 0x57d9d9    
14  ExportProjectDialog::qt_static_metacall moc_ExportProjectDialog.cpp 52  0x61f533    
15  QMetaObject::activate(QObject *, QMetaObject const *, int, void * *)            0x7ffff68e6640  
16  QAbstractButton::clicked(bool)          0x7ffff7728a12  
17  ??          0x7ffff745dba3  
18  ??          0x7ffff745ef74  
19  QAbstractButton::mouseReleaseEvent(QMouseEvent *)           0x7ffff745f084  
... <Mehr>              

Please note that the crashes are not perfectly reproducible. Here is another one that I got:

0   malloc_consolidate          0x7ffff4281ac5  
1   _int_free           0x7ffff4282810  
2   PADnoteParameters::deletesample PADnoteParameters.cpp   141 0x7fffd1384cf2  
3   PADnoteParameters::deletesamples    PADnoteParameters.cpp   151 0x7fffd1384d3d  
4   PADnoteParameters::~PADnoteParameters   PADnoteParameters.cpp   60  0x7fffd1384d67  
5   PADnoteParameters::~PADnoteParameters   PADnoteParameters.cpp   71  0x7fffd1384e19  
6   Part::~Part Part.cpp    183 0x7fffd1369b04  
7   Master::~Master Master.cpp  526 0x7fffd1363c60  
8   LocalZynAddSubFx::~LocalZynAddSubFx LocalZynAddSubFx.cpp    91  0x7fffd13517dd  
9   ZynAddSubFxInstrument::initPlugin   ZynAddSubFx.cpp 425 0x7fffd15c07c1  
10  ZynAddSubFxInstrument::reloadPlugin ZynAddSubFx.cpp 379 0x7fffd15c4149  
11  QMetaObject::activate(QObject *, QMetaObject const *, int, void * *)            0x7ffff68e6640  
12  Mixer::sampleRateChanged    moc_Mixer.cpp   108 0x624a95    
13  Mixer::setAudioDevice   Mixer.cpp   574 0x5218d7    
14  ProjectRenderer::startProcessing    ProjectRenderer.cpp 145 0x538f4b    
15  RenderManager::renderProject    RenderManager.cpp   170 0x53d40c    
16  ExportProjectDialog::startExport    ExportProjectDialog.cpp 170 0x57d77e    
17  ExportProjectDialog::startBtnClicked    ExportProjectDialog.cpp 208 0x57d9d9    
18  ExportProjectDialog::qt_static_metacall moc_ExportProjectDialog.cpp 52  0x61f533    
19  QMetaObject::activate(QObject *, QMetaObject const *, int, void * *)            0x7ffff68e6640  
... <Mehr>              

Sometimes LMMS crashes during the loading of the song. Is this the "good old" ZynAddSubFX Engine problem? If it is, isn't there a fix by @Wallacoloo in the pipeline?

@tresf
Copy link
Member

tresf commented Nov 9, 2015

isn't there a fix by @Wallacoloo in the pipeline?

Partly. There have been a few proposals.

I don't like the name LmmsCore as a new classname, personally, but that change could be merged any time and it would immediately fix the issue. If we merge it, I'd advocate for something without Lmms in the class name although I can't think of a better name. 😕

@karmux
Copy link
Contributor Author

karmux commented Nov 9, 2015

I got this long traceback during opening of Momo64-esp demo song (export traceback is below):

$ valgrind ./lmms
==5123== Memcheck, a memory error detector
==5123== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==5123== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==5123== Command: ./lmms
==5123== 

Notice: could not set realtime priority.
VST sync support disabled in your configuration
no more csLADSPA plugins
no more csLADSPA plugins
Connection established.

Stream successfully created

QtXmlWrapper::loadXMLfile(): empty data 
==5123== Invalid read of size 8
==5123==    at 0x7E09E2C: std::string::assign(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==    by 0x546C9F: SerializingObject::restoreState(QDomElement const&) (SerializingObject.cpp:70)
==5123==    by 0x515F02: JournallingObject::restoreState(QDomElement const&) (JournallingObject.cpp:92)
==5123==  Address 0x56939a98 is 24 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123== 
==5123== Invalid read of size 8
==5123==    at 0x7E09753: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x7E09DBD: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==    by 0x546C9F: SerializingObject::restoreState(QDomElement const&) (SerializingObject.cpp:70)
==5123==  Address 0x56939a98 is 24 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123== 
==5123== Invalid read of size 8
==5123==    at 0x7E0975D: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x7E09DBD: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==    by 0x546C9F: SerializingObject::restoreState(QDomElement const&) (SerializingObject.cpp:70)
==5123==  Address 0x56939aa0 is 16 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123== 
==5123== Invalid read of size 4
==5123==    at 0x7E098EF: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x7E09DBD: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==    by 0x546C9F: SerializingObject::restoreState(QDomElement const&) (SerializingObject.cpp:70)
==5123==  Address 0x56939aa8 is 8 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123== 
==5123== Invalid free() / delete / delete[] / realloc()
==5123==    at 0x4C2D2E0: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x7E09907: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x7E09DBD: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==  Address 0x56939a98 is 24 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123== 
==5123== Invalid read of size 4
==5123==    at 0x7E0976C: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x7E09DBD: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==    by 0x546C9F: SerializingObject::restoreState(QDomElement const&) (SerializingObject.cpp:70)
==5123==  Address 0x52fcf768 is 8 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123== 
==5123== Invalid write of size 4
==5123==    at 0x7E09870: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x7E09DBD: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==    by 0x546C9F: SerializingObject::restoreState(QDomElement const&) (SerializingObject.cpp:70)
==5123==  Address 0x4b678b68 is 8 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123== 
==5123== Invalid write of size 8
==5123==    at 0x7E09877: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x7E09DBD: std::string::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20)
==5123==    by 0x25BD9D0D: assign (basic_string.h:1149)
==5123==    by 0x25BD9D0D: operator= (basic_string.h:563)
==5123==    by 0x25BD9D0D: NulEngine::NulEngine() (NulEngine.cpp:34)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==    by 0x546C9F: SerializingObject::restoreState(QDomElement const&) (SerializingObject.cpp:70)
==5123==  Address 0x4b678b58 is 24 bytes before a block of size 136 alloc'd
==5123==    at 0x4C2C100: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5123==    by 0x6138741: QObject::QObject(QObject*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x50103E: Engine::Engine() (Engine.h:45)
==5123==    by 0x25BD9CBC: NulEngine::NulEngine() (NulEngine.cpp:32)
==5123==    by 0x25B89B07: LocalZynAddSubFx::LocalZynAddSubFx() (LocalZynAddSubFx.cpp:80)
==5123==    by 0x25951D54: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:459)
==5123==    by 0x25952BBA: ZynAddSubFxInstrument::ZynAddSubFxInstrument(InstrumentTrack*) (ZynAddSubFx.cpp:121)
==5123==    by 0x25952DF0: lmms_plugin_main (ZynAddSubFx.cpp:664)
==5123==    by 0x533AC5: Plugin::instantiate(QString const&, Model*, void*) (Plugin.cpp:125)
==5123==    by 0x50B901: Instrument::instantiate(QString const&, InstrumentTrack*) (Instrument.cpp:75)
==5123==    by 0x60EE25: InstrumentTrack::loadTrackSpecificSettings(QDomElement const&) (InstrumentTrack.cpp:771)
==5123==    by 0x555FF3: Track::loadSettings(QDomElement const&) (Track.cpp:2024)
==5123==

And this when trying to export to wav:

==5123== Invalid read of size 1
==5123==    at 0x6137DCD: QObject::~QObject() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x631D1F: Engine::~Engine() (in /home/karmo/Dev/lmms/build/lmms)
==5123==    by 0x25BD9AB8: NulEngine::~NulEngine() (NulEngine.cpp:76)
==5123==    by 0x25B899D6: LocalZynAddSubFx::~LocalZynAddSubFx() (LocalZynAddSubFx.cpp:92)
==5123==    by 0x259519F3: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:425)
==5123==    by 0x25955278: ZynAddSubFxInstrument::reloadPlugin() (ZynAddSubFx.cpp:379)
==5123==    by 0x61331EB: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x629614: Mixer::sampleRateChanged() (moc_Mixer.cpp:108)
==5123==    by 0x522606: Mixer::setAudioDevice(AudioDevice*, Mixer::qualitySettings const&, bool) (Mixer.cpp:574)
==5123==    by 0x53AAFE: ProjectRenderer::startProcessing() (ProjectRenderer.cpp:145)
==5123==    by 0x53F393: RenderManager::renderProject() (RenderManager.cpp:170)
==5123==    by 0x580650: ExportProjectDialog::startExport() (ExportProjectDialog.cpp:170)
==5123==  Address 0x5693ca78 is 24 bytes after a block of size 32 in arena "client"
==5123== 
==5123== Invalid write of size 1
==5123==    at 0x6137DD7: QObject::~QObject() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x631D1F: Engine::~Engine() (in /home/karmo/Dev/lmms/build/lmms)
==5123==    by 0x25BD9AB8: NulEngine::~NulEngine() (NulEngine.cpp:76)
==5123==    by 0x25B899D6: LocalZynAddSubFx::~LocalZynAddSubFx() (LocalZynAddSubFx.cpp:92)
==5123==    by 0x259519F3: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:425)
==5123==    by 0x25955278: ZynAddSubFxInstrument::reloadPlugin() (ZynAddSubFx.cpp:379)
==5123==    by 0x61331EB: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x629614: Mixer::sampleRateChanged() (moc_Mixer.cpp:108)
==5123==    by 0x522606: Mixer::setAudioDevice(AudioDevice*, Mixer::qualitySettings const&, bool) (Mixer.cpp:574)
==5123==    by 0x53AAFE: ProjectRenderer::startProcessing() (ProjectRenderer.cpp:145)
==5123==    by 0x53F393: RenderManager::renderProject() (RenderManager.cpp:170)
==5123==    by 0x580650: ExportProjectDialog::startExport() (ExportProjectDialog.cpp:170)
==5123==  Address 0x5693ca78 is 24 bytes after a block of size 32 in arena "client"
==5123== 

valgrind: m_mallocfree.c:304 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
valgrind: Heap block lo/hi size mismatch: lo = 96, hi = 104.
This is probably caused by your program erroneously writing past the
end of a heap block and corrupting heap metadata.  If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away.  Please try that before reporting this as a bug.


host stacktrace:
==5123==    at 0x380A927F: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x380A9394: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x380A9516: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x380B60BD: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x380A2623: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x380A10CB: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x380A4F4A: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x380A0642: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x3807ED78: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x803B09894: ???
==5123==    by 0x803045EEF: ???
==5123==    by 0x3807753F: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==5123==    by 0x6137D8F: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==5123==    at 0x6137DDA: QObject::~QObject() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x631D1F: Engine::~Engine() (in /home/karmo/Dev/lmms/build/lmms)
==5123==    by 0x25BD9AB8: NulEngine::~NulEngine() (NulEngine.cpp:76)
==5123==    by 0x25B899D6: LocalZynAddSubFx::~LocalZynAddSubFx() (LocalZynAddSubFx.cpp:92)
==5123==    by 0x259519F3: ZynAddSubFxInstrument::initPlugin() (ZynAddSubFx.cpp:425)
==5123==    by 0x25955278: ZynAddSubFxInstrument::reloadPlugin() (ZynAddSubFx.cpp:379)
==5123==    by 0x61331EB: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x629614: Mixer::sampleRateChanged() (moc_Mixer.cpp:108)
==5123==    by 0x522606: Mixer::setAudioDevice(AudioDevice*, Mixer::qualitySettings const&, bool) (Mixer.cpp:574)
==5123==    by 0x53AAFE: ProjectRenderer::startProcessing() (ProjectRenderer.cpp:145)
==5123==    by 0x53F393: RenderManager::renderProject() (RenderManager.cpp:170)
==5123==    by 0x580650: ExportProjectDialog::startExport() (ExportProjectDialog.cpp:170)
==5123==    by 0x58089F: ExportProjectDialog::startBtnClicked() (ExportProjectDialog.cpp:208)
==5123==    by 0x62404E: ExportProjectDialog::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_ExportProjectDialog.cpp:52)
==5123==    by 0x61331EB: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x58B7331: QAbstractButton::clicked(bool) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x55F4572: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x55F5923: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x55F5A33: QAbstractButton::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x5271DC7: QWidget::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x521E9BB: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x522563E: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x611E1CC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x5224C9E: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x529E9A1: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x529E24B: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x52C6BA1: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x8BC7C3C: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x8BC7F1F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x8BC7FCB: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x614D85D: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x52C6C65: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x611CD20: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x611D084: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x56F8D9B: QDialog::exec() (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x54B9ED: Song::exportProject(bool) (Song.cpp:1306)
==5123==    by 0x62D51B: Song::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (moc_Song.cpp:122)
==5123==    by 0x61331EB: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x5217FD1: QAction::triggered(bool) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x5219B56: QAction::activate(QAction::ActionEvent) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x567348C: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x5677E58: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x5271DC7: QWidget::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x567BE4A: QMenu::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x521E9BB: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x522563E: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x611E1CC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x5224C9E: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x529ED39: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x529E24B: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x52C6BA1: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x8BC7C3C: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x8BC7F1F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x8BC7FCB: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x614D85D: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x52C6C65: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x611CD20: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x611D084: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x6122B08: QCoreApplication::exec() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x4D717C: main (main.cpp:725)

Thread 2: status = VgTs_WaitSys
==5123==    at 0x4E44DA0: pthread_cond_wait@@GLIBC_2.3.2 (pthread_cond_wait.S:185)
==5123==    by 0x6013C55: QWaitCondition::wait(QMutex*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x5272F6: MixerWorkerThread::run() (MixerWorkerThread.cpp:163)
==5123==    by 0x60136FE: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x4E3F6A9: start_thread (pthread_create.c:333)
==5123==    by 0x8463EEC: clone (clone.S:109)

Thread 3: status = VgTs_WaitSys
==5123==    at 0x4E44DA0: pthread_cond_wait@@GLIBC_2.3.2 (pthread_cond_wait.S:185)
==5123==    by 0x6013C55: QWaitCondition::wait(QMutex*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x5272F6: MixerWorkerThread::run() (MixerWorkerThread.cpp:163)
==5123==    by 0x60136FE: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x4E3F6A9: start_thread (pthread_create.c:333)
==5123==    by 0x8463EEC: clone (clone.S:109)

Thread 4: status = VgTs_WaitSys
==5123==    at 0x4E44DA0: pthread_cond_wait@@GLIBC_2.3.2 (pthread_cond_wait.S:185)
==5123==    by 0x6013C55: QWaitCondition::wait(QMutex*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x5272F6: MixerWorkerThread::run() (MixerWorkerThread.cpp:163)
==5123==    by 0x60136FE: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x4E3F6A9: start_thread (pthread_create.c:333)
==5123==    by 0x8463EEC: clone (clone.S:109)

Thread 5: status = VgTs_WaitSys
==5123==    at 0x84588DD: ??? (syscall-template.S:81)
==5123==    by 0x569789: MidiAlsaSeq::run() (MidiAlsaSeq.cpp:473)
==5123==    by 0x60136FE: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x4E3F6A9: start_thread (pthread_create.c:333)
==5123==    by 0x8463EEC: clone (clone.S:109)

Thread 8: status = VgTs_WaitSys
==5123==    at 0x4E44DA0: pthread_cond_wait@@GLIBC_2.3.2 (pthread_cond_wait.S:185)
==5123==    by 0x6013C55: QWaitCondition::wait(QMutex*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x573091C: ??? (in /usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.6)
==5123==    by 0x60136FE: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x4E3F6A9: start_thread (pthread_create.c:333)
==5123==    by 0x8463EEC: clone (clone.S:109)

Thread 9: status = VgTs_WaitSys
==5123==    at 0x84588DD: ??? (syscall-template.S:81)
==5123==    by 0x8BC7EBB: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x8BC7FCB: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4400.1)
==5123==    by 0x614D85D: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x611CD20: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x611D084: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x6010E88: QThread::exec() (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x60FD492: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x60136FE: ??? (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6)
==5123==    by 0x4E3F6A9: start_thread (pthread_create.c:333)
==5123==    by 0x8463EEC: clone (clone.S:109)


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.

@Umcaruje
Copy link
Member

@michaelgregorius @karmux can you still reproduce this, now that #2118 was merged?

@karmux
Copy link
Contributor Author

karmux commented Jan 13, 2016

@Umcaruje #2118 fixes this issue for me.

@Umcaruje
Copy link
Member

Ok, closing as fixed. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants