Bug 351364

Summary: Immediate crash at startup when opening a file in .zip format.
Product: [Applications] cantor Reporter: Volker Siegel <mail>
Component: generalAssignee: Alexander Rieder <alexanderrieder>
Status: RESOLVED DUPLICATE    
Severity: crash CC: alexander.semke, mail
Priority: NOR Keywords: drkonqi
Version First Reported In: 0.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Test case - but any zip file will do, i assume

Description Volker Siegel 2015-08-16 14:55:21 UTC
Application: cantor (0.5)
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 3.19.0-26-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:

I had saved a page as MAFF format using the firefox addon
Mozilla Archive Format 3.1.0.1-signed

It creates a single file with all files used in the page.
The files are named foo.html.maff and in .zip format
Note it seems to be unrelated to maff, depending on zip format only.

I opened the file in 
Dolphin (Version 14.12.3 Using KDE Development Platform 4.14.6)
"Open With"-> Firefox, which worked fine.
I had noticed that the first entry in the "Open With" menu was Cantor, followed by Firefox as second, which made me curious what Cantor would do with that file. So I tried.
The first and only reaction of trying was the crash reporting dialog, no window of Cantor opened.

It's perfectly reproducible: I tried again with the same file, and a different file. It crashed immediately again in both cases. 

I tried with a unrelated zip file, causing the same crash - so it seems to be unrelated to maff, depending on zip only.
It was a zip archive with no further inner format, containing two files in a subdirectory.

Output of opening a maff file from shell, which crashes just the same way:

$ cantor Documents/magnetladen.de-Warenkorb-kugel3mm-etc.maff 
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. please move it to /home/siegel/.config/fontconfig/fonts.conf manually
Got bus address:  "unix:abstract=/tmp/dbus-yiy2JsHKur,guid=e7028b474bc64a9caeaf523c55d0901f" 
Connected to accessibility bus at:  "unix:abstract=/tmp/dbus-yiy2JsHKur,guid=e7028b474bc64a9caeaf523c55d0901f" 
Registered DEC:  true 
Object::disconnect: Unexpected null parameter
cantor(9336)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory! 
KCrash: Application 'cantor' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/siegel/.kde/socket-tuxa/kdeinit4__0
[1]  + 9336 suspended (signal)  cantor Documents/magnetladen.de-Warenkorb-kugel3mm-etc.maff
$ Unable to start Dr. Konqi
Not forwarding the crash to Apport.



I,ll try to add my test files!

-- Backtrace:
Application: Cantor (cantor), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  Worksheet::load (this=0x1d7fae0, filename=...) at ../../src/worksheet.cpp:912
#7  0x00007f28dce9b73c in CantorPart::openFile (this=0x1cd8ed0) at ../../src/cantor_part.cpp:357
#8  0x00007f28ef8349ba in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x1cd8fa0) at ../../kparts/part.cpp:591
#9  0x00007f28ef836df6 in KParts::ReadOnlyPart::openUrl (this=<optimized out>, url=...) at ../../kparts/part.cpp:555
#10 0x000000000040c6c7 in CantorShell::load (this=this@entry=0x195fed0, url=...) at ../../src/cantor.cpp:101
#11 0x0000000000409e41 in main (argc=<optimized out>, argv=0x7ffd7d554a68) at ../../src/main.cpp:83

Reported using DrKonqi
Comment 1 Volker Siegel 2015-08-16 15:02:48 UTC
Created attachment 94057 [details]
Test case - but any zip file will do, i assume

This contains one file without subdirectories, but even an empty zip file triggers the crash.
Comment 2 Volker Siegel 2015-08-16 15:05:31 UTC
I did see windows of cantor opening in later tests, closing immediately (after about 100 ms) while
I had not seen any wondows of cantor appearing in the first crashes as described above.
Comment 3 Alexander Semke 2016-10-22 16:50:30 UTC

*** This bug has been marked as a duplicate of bug 315134 ***