{"id":5816,"date":"2018-10-20T18:17:42","date_gmt":"2018-10-20T15:17:42","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5816"},"modified":"2018-10-20T18:20:04","modified_gmt":"2018-10-20T15:20:04","slug":"crashes-with-double-free-or-invalid-chunk-size-with-some-mp4-files","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/10\/20\/crashes-with-double-free-or-invalid-chunk-size-with-some-mp4-files\/","title":{"rendered":"Crashes with &#8221;double free&#8221; or &#8221;invalid chunk size&#8221; with some mp4 files"},"content":{"rendered":"<p>I&#8217;m seeing memory-related crashes when playing videos sliced (with ffmpeg -c copy) from mp4 streams (downloaded with youtube-dl). I&#8217;m attaching a sample clip which, granted, is pretty useless for a video, but which produces these crashes with 100% certainty for me; I just edited it down to a reasonable size and non-infringing content.<\/p>\n<p>The errors reported just before core is dumped are (mostly) &#8221;double free or corruption (fasttop)&#8221; or (less often) &#8221;malloc_consolidate(): invalid chunk size&#8221;.<\/p>\n<p>To be clear, my expectation here is not for the problematic clips to have useful content, or even to play back; just that vlc didn&#8217;t crash. (Totem for instance does not seem to crash with the same files.)<\/p>\n<p>I&#8217;ll attach logs for both the double free and malloc_consolidate cases (which I&#8217;m producing by running LC_ALL=C vlc -vvv out.mp4 in a loop).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m seeing memory-related crashes when playing videos sliced (with ffmpeg -c copy) from mp4 streams (downloaded with youtube-dl).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[8928],"class_list":["post-5816","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-vlc","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5816"}],"version-history":[{"count":3,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5816\/revisions"}],"predecessor-version":[{"id":5819,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5816\/revisions\/5819"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}