Bug 374529 - Krusader crashes when unpacking bigger archive
Summary: Krusader crashes when unpacking bigger archive
Status: RESOLVED NOT A BUG
Alias: None
Product: krusader
Classification: Applications
Component: krarc (show other bugs)
Version: 2.5.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-04 10:21 UTC by takanowaka
Modified: 2018-05-06 00:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
gdb backtrace (13.53 KB, text/plain)
2017-01-04 10:21 UTC, takanowaka
Details

Note You need to log in before you can comment on or make changes to this bug.
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...