Skip to content

Crash when opening a zip file (Valgrind log)

I have a zip file downloaded from torrents and when I try to add it to the playlist VLC crashes. The file is ~100MB and I can upload it if necessary.

System: Debian Testing amd64, VLC 2.2 rc2

Log from Valgrind:

==15007== Memcheck, a memory error detector
==15007== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==15007== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
==15007== Command: vlc
==15007== 
VLC media player 2.2.0-rc2 Weatherwax (revision 2.2.0-rc1-118-g22fda39)
[00000000064a97a8] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
==15007== Thread 6:
==15007== Invalid read of size 1
==15007==    at 0x5507290: __strcmp_sse2_unaligned (strcmp-sse2-unaligned.S:22)
==15007==    by 0x12D9D823: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9D832: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9D832: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9D832: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9E2C1: CreatePlaylist (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9E8FC: Peek (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x125514DB: Open (in /usr/lib/vlc/plugins/stream_filter/libsmooth_plugin.so)
==15007==    by 0x58ADFA4: module_load (in /usr/lib/libvlccore.so.8.0.0)
==15007==    by 0x58AE56D: vlc_module_load (in /usr/lib/libvlccore.so.8.0.0)
==15007==    by 0x58810DE: stream_FilterNew (in /usr/lib/libvlccore.so.8.0.0)
==15007==    by 0x5881161: stream_FilterChainNew (in /usr/lib/libvlccore.so.8.0.0)
==15007==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==15007== 
==15007== 
==15007== Process terminating with default action of signal 11 (SIGSEGV)
==15007==  Access not within mapped region at address 0x0
==15007==    at 0x5507290: __strcmp_sse2_unaligned (strcmp-sse2-unaligned.S:22)
==15007==    by 0x12D9D823: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9D832: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9D832: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9D832: findOrCreateParentNode (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9E2C1: CreatePlaylist (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x12D9E8FC: Peek (in /usr/lib/vlc/plugins/access/libzip_plugin.so)
==15007==    by 0x125514DB: Open (in /usr/lib/vlc/plugins/stream_filter/libsmooth_plugin.so)
==15007==    by 0x58ADFA4: module_load (in /usr/lib/libvlccore.so.8.0.0)
==15007==    by 0x58AE56D: vlc_module_load (in /usr/lib/libvlccore.so.8.0.0)
==15007==    by 0x58810DE: stream_FilterNew (in /usr/lib/libvlccore.so.8.0.0)
==15007==    by 0x5881161: stream_FilterChainNew (in /usr/lib/libvlccore.so.8.0.0)
==15007==  If you believe this happened as a result of a stack
==15007==  overflow in your program's main thread (unlikely but                                                                                                           
==15007==  possible), you can try to increase the size of the                                                                                                             
==15007==  main thread stack using the --main-stacksize= flag.                                                                                                            
==15007==  The main thread stack size used in this run was 8388608.                                                                                                       
==15007==                                                                                                                                                                 
==15007== HEAP SUMMARY:                                                                                                                                                   
==15007==     in use at exit: 20,649,541 bytes in 57,837 blocks                                                                                                           
==15007==   total heap usage: 383,702 allocs, 325,865 frees, 1,671,098,774 bytes allocated                                                                                
==15007==                                                                                                                                                                 
==15007== LEAK SUMMARY:                                                                                                                                                   
==15007==    definitely lost: 4,269 bytes in 16 blocks                                                                                                                    
==15007==    indirectly lost: 18,733 bytes in 780 blocks                                                                                                                  
==15007==      possibly lost: 13,049,824 bytes in 8,553 blocks                                                                                                            
==15007==    still reachable: 7,576,715 bytes in 48,488 blocks                                                                                                            
==15007==         suppressed: 0 bytes in 0 blocks                                                                                                                         
==15007== Rerun with --leak-check=full to see details of leaked memory                                                                                                    
==15007==                                                                                                                                                                 
==15007== For counts of detected and suppressed errors, rerun with: -v                                                                                                    
==15007== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)                                                                                                  
led }}}
Edited by Rémi Denis-Courmont
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information