Bug 374529

Summary: Krusader crashes when unpacking bigger archive
Product: [Applications] krusader Reporter: takanowaka <takanowaka>
Component: krarcAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: alex.bikadorov, krusader-bugs-null
Priority: NOR    
Version: 2.5.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: gdb backtrace

Description takanowaka 2017-01-04 10:21:44 UTC
Created attachment 103189 [details]
gdb backtrace

Krusader crashes when unpacking bigger archive.

Steps to reproduce:
1. download https://dl.opendesktop.org/api/files/download/id/1482636342/la-capitaine-icon-theme-0.4.0.tar.gz
2. alt+shift+u on archive
Comment 1 Alex Bikadorov 2017-01-04 15:21:22 UTC
Cannot reproduce with 2.5.0 or master.

From the backtrace:
>#0  0x00007ffff5d9d947 in KArchiveDirectory::addEntry(KArchiveEntry*) () from /usr/lib/x86_64-linux-gnu/libKF5Archive.so.5
>#1  0x00007ffff5da9095 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5Archive.so.5
>#2  0x000055555575b329 in KrArcBaseManager::detectArchive (this=0x555555a6f230 <arcHandler+16>, encrypted=@0x7fffd94a25af: false, fileName=..., checkEncrypted=<optimized out>, fast=fast@entry=false) at ./krArc/krarcbasemanager.cpp:93

What version of KArchive do you have installed? And can you reproduce this when opening/extracting with ark?
Comment 2 takanowaka 2017-01-04 18:11:48 UTC
this doesn't happen with ark
I had version 5.27.0-1 and upgraded it to 5.28.0-1 and it crashed on both
Comment 3 Alex Bikadorov 2017-01-04 18:33:12 UTC
Strange, karchive 5.28.0-1 here too.

Please test if it crashes
* when opening the archive inside Krusader in folder and extracting via copy/paste
* after extracting with ark and re-packaging as tar.gz
* with other tar.gz archives
Comment 4 takanowaka 2017-01-04 20:53:34 UTC
ok, I was unable to open archive as directory in Krusader
I got message "Error: /path/archive.tar.gz does not exist."

but after creating test file from /dev/urandom I was able to pack/unpack it
so I have re-downloaded the icon theme I mentioned and then I was able to unpack it.. seems like the first download was corrupted and that caused the crash
Comment 5 Alex Bikadorov 2017-01-07 20:43:31 UTC
Okay...