tizonia fails with MALLOC_PERTURB_ set #563
I'm running tizonia 0.17.0 via snap on Fedora 29.
tizonia was working for me with 'sudo snap run tizonia...', but not plain 'snap run...' either as regular user, or root via su -. After some trial and error it turns out the failure is due to the MALLOC_PERTURB_ environment variable which I set during login sessions but which isn't passed to sudo sessions. Explanation from my bash_profile:
# Tells glibc to clear memory requested via malloc, and after free. Helps # catch crashes when developing. Remember you may hit crashes that others # aren't hitting # https://debarshiray.wordpress.com/2016/04/09/malloc_perturb_/ # http://udrepper.livejournal.com/11429.html MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) export MALLOC_PERTURB_
I can work around it easy enough, but perhaps devs could try running with this option to see if they get similar failures. Possibly some use-after-free lingering.
The exact command and failure I'm seeing:
$ snap run tizonia --youtube-audio-stream https://www.youtube.com/watch?v=AKBJ-WKQlEg tizonia 0.17.0. Copyright (C) 2019 Juan A. Rubio This software is part of the Tizonia project [YouTube] [Stream] 'Parasite Eve 1 Full OST [HQ Complete Original Soundtrack]' [webm]. [YouTube] [Stream] 'Parasite Eve 1 Full OST [HQ Complete Original Soundtrack]'. [YouTube] [Streams in queue] '1'. tizonia exiting (OMX_ErrorContentURIError). [OMX.Aratelia.audio_source.http:port:0] [OMX_ErrorContentURIError] [Playlist not found]
Hi!, thanks for reporting this issue.
Yes, I've been able to reproduce it. It looks like you need to export for CHECK_ and PERTURB_. Very interesting, I did not know about PERTURB_.
I'm marking this as a bug, to be fixed sometime soon.