Bug 211456 - kompare segfault on switching to next file
Summary: kompare segfault on switching to next file
Status: RESOLVED DUPLICATE of bug 202457
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
: 211459 221536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-22 17:38 UTC by honggoff
Modified: 2010-01-06 18:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
diff to provoke crash (96.79 KB, application/x-gzip)
2009-10-22 21:16 UTC, honggoff
Details
Diff that crashes Kompare upon "next file" (1.06 KB, patch)
2009-12-10 18:03 UTC, kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description honggoff 2009-10-22 17:38:08 UTC
Application that crashed: kompare
Version of the application: 4.0.0
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.28-15-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
I start Kompare with two elaborat trees containing many changes. On switching to a next file (Ctrl + PgDown) which is in a subfolder Kompare crashes.

 -- Backtrace:
Application: Kompare (kompare), signal: Segmentation fault
[KCrash Handler]
#6  Q3ListViewItem::parent (this=0xe4d99b0) at itemviews/q3listview.cpp:3930
#7  0xb7d17ea7 in Q3ListView::ensureItemVisible (this=0x9b13260, i=0xe4d99b0) at itemviews/q3listview.cpp:6818
#8  0xb59d2614 in KompareNavTreePart::setSelectedFile (this=0x9aff3e8, model=0xf6ee860) at /build/buildd/kdesdk-4.3.2/kompare/komparenavtreepart/komparenavtreepart.cpp:311
#9  0xb59d2ea0 in KompareNavTreePart::slotSetSelection (this=0x9aff3e8, model=0xf6ee860, diff=0xf6eea08) at /build/buildd/kdesdk-4.3.2/kompare/komparenavtreepart/komparenavtreepart.cpp:275
#10 0xb59d310d in KompareNavTreePart::qt_metacall (this=0x9aff3e8, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf9aa1d8)
    at /build/buildd/kdesdk-4.3.2/obj-i486-linux-gnu/kompare/komparenavtreepart/komparenavtreepart.moc:99
#11 0xb67181b8 in QMetaObject::activate (sender=0x99c3c40, from_signal_index=20, to_signal_index=20, argv=0xbf9aa1d8) at kernel/qobject.cpp:3113
#12 0xb6718e42 in QMetaObject::activate (sender=0x99c3c40, m=0xb42b5654, local_signal_index=1, argv=0xbf9aa1d8) at kernel/qobject.cpp:3187
#13 0xb429a029 in KomparePart::setSelection (this=0x99c3c40, _t1=0xf6ee860, _t2=0xf6eea08) at /build/buildd/kdesdk-4.3.2/obj-i486-linux-gnu/kompare/komparepart/kompare_part.moc:176
#14 0xb42a18d5 in KomparePart::qt_metacall (this=0x99c3c40, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf9aa2e8)
    at /build/buildd/kdesdk-4.3.2/obj-i486-linux-gnu/kompare/komparepart/kompare_part.moc:128
#15 0xb67181b8 in QMetaObject::activate (sender=0x9ad10d8, from_signal_index=8, to_signal_index=8, argv=0xbf9aa2e8) at kernel/qobject.cpp:3113
#16 0xb6718e42 in QMetaObject::activate (sender=0x9ad10d8, m=0xb806ebc8, local_signal_index=4, argv=0xbf9aa2e8) at kernel/qobject.cpp:3187
#17 0xb804a7e9 in Diff2::KompareModelList::setSelection (this=0x9ad10d8, _t1=0xf6ee860, _t2=0xf6eea08) at /build/buildd/kdesdk-4.3.2/obj-i486-linux-gnu/kompare/libdiff2/komparemodellist.moc:192
#18 0xb80523f2 in Diff2::KompareModelList::slotNextDifference (this=0x9ad10d8) at /build/buildd/kdesdk-4.3.2/kompare/libdiff2/komparemodellist.cpp:842
#19 0xb8053fed in Diff2::KompareModelList::qt_metacall (this=0x9ad10d8, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0xbf9aa49c)
    at /build/buildd/kdesdk-4.3.2/obj-i486-linux-gnu/kompare/libdiff2/komparemodellist.moc:142
#20 0xb67181b8 in QMetaObject::activate (sender=0x9ad3d78, from_signal_index=5, to_signal_index=6, argv=0xbf9aa49c) at kernel/qobject.cpp:3113
#21 0xb67185f0 in QMetaObject::activate (sender=0x9ad3d78, m=0xb742fe48, from_local_signal_index=1, to_local_signal_index=2, argv=0xbf9aa49c) at kernel/qobject.cpp:3207
#22 0xb6bc06c1 in QAction::triggered (this=0x9ad3d78, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#23 0xb6bc1c3f in QAction::activate (this=0x9ad3d78, event=QAction::Trigger) at kernel/qaction.cpp:1160
#24 0xb6bc473b in QAction::event (this=0x9ad3d78, e=0xbf9aa8c4) at kernel/qaction.cpp:1079
#25 0xb757bf19 in KAction::event (this=0x9ad3d78, event=0xbf9aa8c4) at /build/buildd/kde4libs-4.3.2/kdeui/actions/kaction.cpp:88
#26 0xb6bc6d3c in QApplicationPrivate::notify_helper (this=0x99169c0, receiver=0x9ad3d78, e=0xbf9aa8c4) at kernel/qapplication.cpp:4056
#27 0xb6bcf03e in QApplication::notify (this=0xbf9ac854, receiver=0x9ad3d78, e=0xbf9aa8c4) at kernel/qapplication.cpp:3603
#28 0xb766149d in KApplication::notify (this=0xbf9ac854, receiver=0x9ad3d78, event=0xbf9aa8c4) at /build/buildd/kde4libs-4.3.2/kdeui/kernel/kapplication.cpp:302
#29 0xb6702bcb in QCoreApplication::notifyInternal (this=0xbf9ac854, receiver=0x9ad3d78, event=0xbf9aa8c4) at kernel/qcoreapplication.cpp:610
#30 0xb6c00108 in QShortcutMap::dispatchEvent (this=0x9916a60, e=0xbf9aac4c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#31 0xb6c0201f in QShortcutMap::tryShortcutEvent (this=0x9916a60, o=0x9b11678, e=0xbf9aac4c) at kernel/qshortcutmap.cpp:369
#32 0xb6bd02e0 in QApplication::notify (this=0xbf9ac854, receiver=0x9b11678, e=0xbf9aac4c) at kernel/qapplication.cpp:3645
#33 0xb766149d in KApplication::notify (this=0xbf9ac854, receiver=0x9b11678, event=0xbf9aac4c) at /build/buildd/kde4libs-4.3.2/kdeui/kernel/kapplication.cpp:302
#34 0xb6702bcb in QCoreApplication::notifyInternal (this=0xbf9ac854, receiver=0x9b11678, event=0xbf9aac4c) at kernel/qcoreapplication.cpp:610
#35 0xb6bc7c1e in qt_sendSpontaneousEvent (receiver=0x9b11678, event=0x4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#36 0xb6c65720 in QKeyMapper::sendKeyEvent (keyWidget=0x9b11678, grab=false, type=QEvent::KeyPress, code=16777237, modifiers={i = -1080382056}, text=@0xbf9aadc4, autorepeat=<value optimized out>, 
    count=<value optimized out>, nativeScanCode=116, nativeVirtualKey=65364, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1675
#37 0xb6c678ee in QKeyMapperPrivate::translateKeyEvent (this=0x99404d0, keyWidget=0x9b11678, event=0xbf9ac47c, grab=176) at kernel/qkeymapper_x11.cpp:1645
#38 0xb6c3cf8c in QApplication::x11ProcessEvent (this=0xbf9ac854, event=0xbf9ac47c) at kernel/qapplication_x11.cpp:3443
#39 0xb6c6937a in x11EventSourceDispatch (s=0x99196f8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#40 0xb5e3ab88 in IA__g_main_context_dispatch (context=0x9918c90) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#41 0xb5e3e0eb in g_main_context_iterate (context=0x9918c90, block=1, dispatch=1, self=0x9916c40) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#42 0xb5e3e268 in IA__g_main_context_iteration (context=0x9918c90, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#43 0xb672e2f8 in QEventDispatcherGlib::processEvents (this=0x9900d10, flags={i = -1080375752}) at kernel/qeventdispatcher_glib.cpp:327
#44 0xb6c68a75 in QGuiEventDispatcherGlib::processEvents (this=0x9900d10, flags={i = -1080375704}) at kernel/qguieventdispatcher_glib.cpp:202
#45 0xb67011fa in QEventLoop::processEvents (this=0xbf9ac6e0, flags={i = -1080375640}) at kernel/qeventloop.cpp:149
#46 0xb6701642 in QEventLoop::exec (this=0xbf9ac6e0, flags={i = -1080375576}) at kernel/qeventloop.cpp:201
#47 0xb6703ae9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#48 0xb6bc6bb7 in QApplication::exec () at kernel/qapplication.cpp:3525
#49 0x080506a7 in main (argc=3, argv=0xbf9acb24) at /build/buildd/kdesdk-4.3.2/kompare/main.cpp:228

Reported using DrKonqi
Comment 1 Jeff Snyder 2009-10-22 19:36:48 UTC
*** Bug 211459 has been marked as a duplicate of this bug. ***
Comment 2 Jeff Snyder 2009-10-22 19:39:50 UTC
Is this repeatable?

If so, please attach the diff it happens for and let us know at least one file
it happens on

Thanks,
Jeff
Comment 3 honggoff 2009-10-22 21:16:09 UTC
Created attachment 37746 [details]
diff to provoke crash

Steps to reproduce crash:

1. unpack diff.tar.gz in current directory
2. execute $ kompare a b
3. in kompare, move to the next file by pressing Ctrl + PgDn or the appropriate toolbar button
4. use the mouse to select the directory 'a'
5. again move to the next file as in step 3.
6. kompare crashes
Comment 4 kde 2009-12-10 18:03:50 UTC
Created attachment 38965 [details]
Diff that crashes Kompare upon "next file"
Comment 5 kde 2009-12-10 18:05:24 UTC
The diff I attached is much smaller (1,1kb uncompressed vs 96kb compressed) than the previous one. Maybe this helps.
Comment 6 Kevin Kofler 2009-12-11 00:36:44 UTC

*** This bug has been marked as a duplicate of bug 202457 ***
Comment 7 Dario Andres 2010-01-06 18:59:16 UTC
*** Bug 221536 has been marked as a duplicate of this bug. ***