Bug 320776 - Crash when switching to Detailed Memory Analysis
Summary: Crash when switching to Detailed Memory Analysis
Status: RESOLVED FIXED
Alias: None
Product: massif-visualizer
Classification: Frameworks and Libraries
Component: callgraph (show other bugs)
Version: master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 0.2
Assignee: Massif Visualizer developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 19:38 UTC by Vishesh Handa
Modified: 2014-05-07 10:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Massif file which makes it crash (1.23 MB, application/octet-stream)
2013-06-05 19:39 UTC, Vishesh Handa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vishesh Handa 2013-06-05 19:38:11 UTC
Crashes when I choose "Detailed Memory Analysis". It crashes in Thread 4.

Backtrace - Thread 4 (Thread 0x7fffdf9f1700 (LWP 23758)):
#0  0x00007fffe55f4430 in agdictof () from /usr/lib/libgraph.so.5
#1  0x00007fffe55f46b9 in agfindattr () from /usr/lib/libgraph.so.5
#2  0x00007fffe55f46ec in agattr () from /usr/lib/libgraph.so.5
#3  0x00007fffe582741b in gvContext () from /usr/lib/libgvc.so.6
#4  0x00007fffe4efed38 in LoadAGraphThread::run (this=0x981000) at /home/vishesh/kde/src/extragear/kgraphviewer/src/part/loadagraphthread.cpp:29
#5  0x00007ffff45aad1f in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007ffff431bdd2 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007ffff3834ced in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffe48a2700 (LWP 23756)):
#0  0x00007ffff382c09d in poll () from /usr/lib/libc.so.6
#1  0x00007fffef0d9134 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffef0d923c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff46d78d5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007ffff46a996f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007ffff46a9c65 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007ffff45a867f in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007ffff45aad1f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007ffff431bdd2 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff3834ced in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7f9d780 (LWP 23751)):
#0  0x00007ffff7de8dfe in _dl_fixup () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7def305 in _dl_runtime_resolve () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff6ee875c in KParts::ReadOnlyPartPrivate::openLocalFile (this=0x975570) at /home/vishesh/kde/src/kdelibs/kparts/part.cpp:593
#3  0x00007ffff6ee83bd in KParts::ReadOnlyPart::openUrl (this=0x9b3650, url=...) at /home/vishesh/kde/src/kdelibs/kparts/part.cpp:555
#4  0x000000000045e875 in Massif::MainWindow::showDotGraph (this=0x9916f0) at /home/vishesh/kde/src/extragear/massif-visualizer/app/mainwindow.cpp:836
#5  0x000000000045e10d in Massif::MainWindow::slotTabChanged (this=0x9916f0, index=1) at /home/vishesh/kde/src/extragear/massif-visualizer/app/mainwindow.cpp:791
#6  0x0000000000460059 in Massif::MainWindow::qt_static_metacall (_o=0x9916f0, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0x7fffffffcd70)
    at /home/vishesh/kde/build/extragear/massif-visualizer/app/mainwindow.moc:116
#7  0x00007ffff46be8ec in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#8  0x00007ffff5029c2e in QTabWidget::currentChanged(int) () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#9  0x00007ffff5029d33 in ?? () from /usr/lib/libQtGui.so.4
#10 0x00007ffff46be8ec in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#11 0x00007ffff501f7ae in QTabBar::currentChanged(int) () from /usr/lib/libQtGui.so.4
#12 0x00007ffff5023fe5 in QTabBar::mousePressEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007ffff4c292e1 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x00007ffff5025fc2 in QTabBar::event(QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007ffff4bda0ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007ffff4be07ad in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x00007ffff78e9a6b in KApplication::notify (this=0x7fffffffdc80, receiver=0x968f40, event=0x7fffffffd4b0)
    at /home/vishesh/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#18 0x00007ffff46aac3d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#19 0x00007ffff4bdff63 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/libQtGui.so.4
#20 0x00007ffff4c519db in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007ffff4c5044c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007ffff4c76fb2 in ?? () from /usr/lib/libQtGui.so.4
#23 0x00007fffef0d8e46 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007fffef0d9198 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007fffef0d923c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007ffff46d78d5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0x00007ffff4c77066 in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007ffff46a996f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x00007ffff46a9c65 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0x00007ffff46aeccb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#31 0x0000000000456b3e in main (argc=2, argv=0x7fffffffdf28) at /home/vishesh/kde/src/extragear/massif-visualizer/app/main.cpp:60

Reproducible: Always
Comment 1 Vishesh Handa 2013-06-05 19:39:07 UTC
Created attachment 80321 [details]
Massif file which makes it crash
Comment 2 Milian Wolff 2013-06-05 19:49:54 UTC
Confirmed a while ago, I think someone reported that on the ML or in a private email. The issue is actually in KGraphViewer which simply does not work at all anymore with a somewhat recent update to the GraphViz library... I could not find a solution for it when I looked the last time. If you could take a look and figure out whats going on that would be cool!
Comment 3 Reimar Döffinger 2014-03-26 22:16:09 UTC
Since kgraphviewer in git was updated to work against latest graphviz, could someone retest against that?
Note that this looks like another case of both new and old versions of the graphviz libraries being loaded, so programs will "randomly" execute (incompatible) functions from the one or the other since they have the same name.
graphviz could have avoided these issues e.g. by proper use of symbol versioning.
Comment 4 Milian Wolff 2014-05-07 10:02:31 UTC
Awesome, it works again - thanks!