[Bug 273617] New: kompare crasch if patch to be "malformed"

Andrea Florio andrea at opensuse.org
Thu May 19 10:20:13 CEST 2011


https://bugs.kde.org/show_bug.cgi?id=273617

           Summary: kompare crasch if patch to be "malformed"
           Product: kompare
           Version: 4.0.0
          Platform: openSUSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kompare-devel at kde.org
        ReportedBy: andrea at opensuse.org


Application: kompare (4.0.0)
KDE Platform Version: 4.6.00 (4.6.0) "release 6"
Qt Version: 4.7.1
Operating System: Linux 2.6.37.6-0.5-desktop x86_64
Distribution: "openSUSE 11.4 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
i was "browsing" the changes with "next" "previous" difference buttons when it
just crashed

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kompare (kompare), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f4f2c4b3760 (LWP 7526))]

Thread 2 (Thread 0x7f4f20f49700 (LWP 7527)):
#0  0x00007f4f295f3503 in __poll (fds=<value optimized out>, nfds=<value
optimized out>, timeout=<value optimized out>) at
../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f4f25ef1114 in g_main_context_poll (context=0x68eaf0, block=1,
dispatch=1, self=<value optimized out>) at gmain.c:3404
#2  g_main_context_iterate (context=0x68eaf0, block=1, dispatch=1, self=<value
optimized out>) at gmain.c:3086
#3  0x00007f4f25ef1a35 in g_main_loop_run (loop=0x68ead0) at gmain.c:3299
#4  0x00007f4f218b0244 in gdbus_shared_thread_func (data=<value optimized out>)
at gdbusprivate.c:276
#5  0x00007f4f25f18466 in g_thread_create_proxy (data=0x68ebd0) at
gthread.c:1897
#6  0x00007f4f272f3a3f in start_thread (arg=0x7f4f20f49700) at
pthread_create.c:297
#7  0x00007f4f295fc67d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4f2c4b3760 (LWP 7526)):
[KCrash Handler]
#6  size (this=0x958ab0, item=0x954ec0, column=0) at
../../src/corelib/tools/qlist.h:94
#7  count (this=0x958ab0, item=0x954ec0, column=0) at
../../src/corelib/tools/qlist.h:267
#8  QTreeModel::index (this=0x958ab0, item=0x954ec0, column=0) at
itemviews/qtreewidget.cpp:242
#9  0x00007f4f2ac1c009 in index (this=0x8fa310, item=<value optimized out>,
column=0) at ../../src/gui/itemviews/qtreewidget_p.h:224
#10 QTreeWidget::setCurrentItem (this=0x8fa310, item=<value optimized out>,
column=0) at itemviews/qtreewidget.cpp:2814
#11 0x00007f4f0e181551 in KompareNavTreePart::setSelectedFile (this=0x935870,
model=0x8d5200) at
/usr/src/debug/kdesdk-4.6.0/kompare/komparenavtreepart/komparenavtreepart.cpp:308
#12 0x00007f4f0e1817ea in KompareNavTreePart::slotSetSelection (this=0x935870,
model=0x8d5200, diff=0x8e6720) at
/usr/src/debug/kdesdk-4.6.0/kompare/komparenavtreepart/komparenavtreepart.cpp:273
#13 0x00007f4f0e181c5a in KompareNavTreePart::qt_metacall (this=0x935870,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff658580e0)
at
/usr/src/debug/kdesdk-4.6.0/build/kompare/komparenavtreepart/komparenavtreepart.moc:105
#14 0x00007f4f29d15def in QMetaObject::activate (sender=0xa15620, m=<value
optimized out>, local_signal_index=<value optimized out>, argv=0x7fff658580e0)
at kernel/qobject.cpp:3272
#15 0x00007f4f0f5fe06b in KomparePart::setSelection (this=<value optimized
out>, _t1=0x8d5200, _t2=0x8e6720) at
/usr/src/debug/kdesdk-4.6.0/build/kompare/komparepart/kompare_part.moc:182
#16 0x00007f4f0f5ff500 in KomparePart::qt_metacall (this=0xa15620,
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff65858220) at
/usr/src/debug/kdesdk-4.6.0/build/kompare/komparepart/kompare_part.moc:134
#17 0x00007f4f29d15def in QMetaObject::activate (sender=0x8d6600, m=<value
optimized out>, local_signal_index=<value optimized out>, argv=0x7fff65858220)
at kernel/qobject.cpp:3272
#18 0x00007f4f0f3c790b in Diff2::KompareModelList::setSelection (this=<value
optimized out>, _t1=0x8d5200, _t2=0x8e6720) at
/usr/src/debug/kdesdk-4.6.0/build/kompare/libdiff2/komparemodellist.moc:198
#19 0x00007f4f0f3ca802 in Diff2::KompareModelList::slotPreviousModel
(this=0x8d6600) at
/usr/src/debug/kdesdk-4.6.0/kompare/libdiff2/komparemodellist.cpp:713
#20 0x00007f4f0f3cc586 in Diff2::KompareModelList::qt_metacall (this=0x8d6600,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff658583b0)
at /usr/src/debug/kdesdk-4.6.0/build/kompare/libdiff2/komparemodellist.moc:145
#21 0x00007f4f29d15def in QMetaObject::activate (sender=0x9404c0, m=<value
optimized out>, local_signal_index=<value optimized out>, argv=0x7fff658583b0)
at kernel/qobject.cpp:3272
#22 0x00007f4f2a697982 in QAction::triggered (this=<value optimized out>,
_t1=false) at .moc/release-shared/moc_qaction.cpp:263
#23 0x00007f4f2a697b7a in QAction::activate (this=0x9404c0, event=<value
optimized out>) at kernel/qaction.cpp:1257
#24 0x00007f4f2aa5231a in QAbstractButtonPrivate::click (this=0x998220) at
widgets/qabstractbutton.cpp:528
#25 0x00007f4f2aa525cc in QAbstractButton::mouseReleaseEvent (this=0x9af1b0,
e=0x7fff65858d40) at widgets/qabstractbutton.cpp:1121
#26 0x00007f4f2ab0ea7a in QToolButton::mouseReleaseEvent (this=<value optimized
out>, e=<value optimized out>) at widgets/qtoolbutton.cpp:721
#27 0x00007f4f2a6ef538 in QWidget::event (this=0x9af1b0, event=0x7fff65858d40)
at kernel/qwidget.cpp:8200
#28 0x00007f4f2a69dd14 in QApplicationPrivate::notify_helper (this=0x6386b0,
receiver=0x9af1b0, e=0x7fff65858d40) at kernel/qapplication.cpp:4445
#29 0x00007f4f2a6a6aac in QApplication::notify (this=<value optimized out>,
receiver=0x9af1b0, e=0x7fff65858d40) at kernel/qapplication.cpp:4006
#30 0x00007f4f2b2fd9e6 in KApplication::notify (this=0x7fff65859cb0,
receiver=0x9af1b0, event=0x7fff65858d40) at
/usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kapplication.cpp:311
#31 0x00007f4f29d00bfc in QCoreApplication::notifyInternal
(this=0x7fff65859cb0, receiver=0x9af1b0, event=0x7fff65858d40) at
kernel/qcoreapplication.cpp:732
#32 0x00007f4f2a69ed25 in sendEvent (receiver=0x9af1b0, event=0x7fff65858d40,
alienWidget=0x9af1b0, nativeWidget=0x9468b0, buttonDown=0x7f4f2b16d178,
lastMouseReceiver=..., spontaneous=true) at
../../src/corelib/kernel/qcoreapplication.h:215
#33 QApplicationPrivate::sendMouseEvent (receiver=0x9af1b0,
event=0x7fff65858d40, alienWidget=0x9af1b0, nativeWidget=0x9468b0,
buttonDown=0x7f4f2b16d178, lastMouseReceiver=..., spontaneous=true) at
kernel/qapplication.cpp:3105
#34 0x00007f4f2a71ce08 in QETWidget::translateMouseEvent (this=0x9468b0,
event=<value optimized out>) at kernel/qapplication_x11.cpp:4438
#35 0x00007f4f2a71b4c9 in QApplication::x11ProcessEvent (this=0x7fff65859cb0,
event=0x7fff658596a0) at kernel/qapplication_x11.cpp:3564
#36 0x00007f4f2a7430f2 in x11EventSourceDispatch (s=0x63c530, callback=0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#37 0x00007f4f25ef0bd3 in g_main_dispatch (context=0x63a9e0) at gmain.c:2440
#38 g_main_context_dispatch (context=0x63a9e0) at gmain.c:3013
#39 0x00007f4f25ef13b0 in g_main_context_iterate (context=0x63a9e0, block=1,
dispatch=1, self=<value optimized out>) at gmain.c:3091
#40 0x00007f4f25ef1650 in g_main_context_iteration (context=0x63a9e0,
may_block=1) at gmain.c:3154
#41 0x00007f4f29d2b91f in QEventDispatcherGlib::processEvents (this=0x61f0c0,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#42 0x00007f4f2a742d8e in QGuiEventDispatcherGlib::processEvents (this=<value
optimized out>, flags=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007f4f29d00052 in QEventLoop::processEvents (this=<value optimized
out>, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007f4f29d00265 in QEventLoop::exec (this=0x7fff658599c0, flags=...) at
kernel/qeventloop.cpp:201
#45 0x00007f4f29d046ab in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1009
#46 0x000000000040a452 in main (argc=5, argv=0x7fff6585a578) at
/usr/src/debug/kdesdk-4.6.0/kompare/main.cpp:228

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kompare-devel mailing list