Awesome!!!
Filipe you are amazing!  Thanks so much!!

On 03/28/2014 05:58 PM, Filipe Coelho wrote:
I've seen this being discussed.

On 12.04, and potentially other systems, LMMS crashes on close.
Upon investigation, I found that some plugin code was being initiated and destroyed twice. The cause is that a C code function named "_fini()" in gcc is automatically called when a shared library is closed.
The same is also true when using "__attribute__((destructor))".
Some plugins use both "__attribute__((destructor))" and "_fini()".

Basically, some plugins "_fini()" functions are being called twice.
This seems like a GCC bug, as I don't think when using "__attribute__((destructor)) void _fini()" we should get that called twice. The fact that the issue is not present on 14.04 kinda confirms this for me (newer gcc version fixes the issue?)

Anyway, attached is a patch to fix this.
If by some reason the patch is not there, use this url: http://kxstudio.sourceforge.net/Paste/repo/xxYln

and congrats on the 1.0 release! :)



------------------------------------------------------------------------------


_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel


--
Regards

------------------------------------------------------------------------------
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to