Bug 246059 - kgraphviewer and kgraph editor crashes when loading file
Summary: kgraphviewer and kgraph editor crashes when loading file
Status: RESOLVED UPSTREAM
Alias: None
Product: kgraphviewer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Gaël de Chalendar (aka Kleag)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 18:32 UTC by Lukas Jirkovsky
Modified: 2010-07-30 20:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
file that triggers crash (204.94 KB, text/plain)
2010-07-28 18:32 UTC, Lukas Jirkovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jirkovsky 2010-07-28 18:32:41 UTC
Created attachment 49595 [details]
file that triggers crash

Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

Both kgrapheditor and kgraphviewer crashes when loading attached file.

Versions tested:
kgraphviewer 2.0.2
kgraphviewer svn 1153904

Reproducible: Always

Steps to Reproduce:
Open the file in the mentioned applications.



Distribution is current Arch Linux 64bit with KDE 4.4.5
Comment 1 Lukas Jirkovsky 2010-07-29 19:56:49 UTC
since drKonqi doesn't give useful backtrace I tried to run kgrapheditor in gdb.
Resulting backtrace shows that the GraphViz is crashing, not kgrapheditor/viewer.
Interesting thing is that the file can be processed in dot without problems.

kgrapheditor(8390) KGraphViewer::DotGraphView::loadLibrary: ' "file:///home/lukas/enblend.dot" '                                                                                                                                             
kgrapheditor(8390) LoadAGraphThread::loadFile:                                                                                                                                                                                               
[New Thread 0x7fffe8bd3710 (LWP 8394)]                                                                                                                                                                                                       
kgrapheditor(8390) LoadAGraphThread::run:                                                                                                                                                                                                    
                                                                                                                                                                                                                                             
Program received signal SIGSEGV, Segmentation fault.                                                                                                                                                                                         
[Switching to Thread 0x7fffe8bd3710 (LWP 8394)]                                                                                                                                                                                              
0x00007ffff527ab4d in fgets () from /lib/libc.so.6                                                                                                                                                                                           
(gdb) bt                                                                                                                                                                                                                                     
#0  0x00007ffff527ab4d in fgets () from /lib/libc.so.6                                                                                                                                                                                       
#1  0x00007ffff4d96d11 in lex_gets () from /usr/lib/libgraph.so.4                                                                                                                                                                            
#2  0x00007ffff4d970cb in aglex () from /usr/lib/libgraph.so.4                                                                                                                                                                               
#3  0x00007ffff4d9875b in agparse () from /usr/lib/libgraph.so.4                                                                                                                                                                             
#4  0x00007ffff4d96730 in agread () from /usr/lib/libgraph.so.4                                                                                                                                                                              
#5  0x00007ffff7b270f0 in ?? () from /usr/lib/libkgraphviewer.so.3                                                                                                                                                                           
#6  0x00007ffff654c485 in ?? () from /usr/lib/libQtCore.so.4                                                                                                                                                                                 
#7  0x00007ffff3322cb0 in start_thread () from /lib/libpthread.so.0                                                                                                                                                                          
#8  0x00007ffff52e67ad in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()
Comment 2 Gaël de Chalendar (aka Kleag) 2010-07-30 20:38:02 UTC
Hum, for me it crashes in Qt code, when the fish eye view wants to get info about items to display. If I deactivate the FEV, it can display the graph and navigate with scrollbars, but if you put the mouse in the view, then it crashes. I think it is a Qt bug.
I will open a bug report at Qt.