Bug 188854 - Crash in KBookmarkModel::rowCount when shift-dragging a boomark and dropping
Summary: Crash in KBookmarkModel::rowCount when shift-dragging a boomark and dropping
Status: RESOLVED WORKSFORME
Alias: None
Product: keditbookmarks
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 198801 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-05 04:49 UTC by Jonathan Thomas
Modified: 2011-05-22 20:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Thomas 2009-04-05 04:49:08 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Reproducible in KDE: 4.2.68 (KDE 4.2.68 (KDE 4.3 >= 20090327))
(My backtrace is from KDE 4.2.2 because it took forever to get that one and I don't want to do it again)
Originally reported at https://launchpad.net/bugs/353806

To reproduce:
- open keditbookmarks (from konsole or konqueror)
- start dragging a bookmark while holding shift
  (notice the '+'-sign, does not disappear)
- drop the bookmark anywhere inside the treeview
- keditbookmarks crashes and the bookmark will not be moved

Application: Bookmark Editor (keditbookmarks), signal SIGSEGV

Thread 1 (Thread 0xb5ad5920 (LWP 7604)):
[KCrash Handler]
#6  0xb7fe294a in TreeItem::childCount (this=0x9913f20) at /usr/include/qt4/QtCore/qlist.h:87
#7  0xb7fde9b4 in KBookmarkModel::rowCount (this=0x98dd6d8, parent=@0x993dcc8) at /build/buildd/kdebase-4.2.2/apps/keditbookmarks/bookmarkmodel.cpp:228
#8  0xb702a63e in QAbstractItemModel::hasChildren (this=0x98dd6d8, parent=@0x993dcc8) at kernel/qabstractitemmodel.cpp:1361
#9  0xb6bf0a95 in QTreeViewPrivate::hasVisibleChildren (this=0x98f37d8, parent=@0x993dcc8) at itemviews/qtreeview.cpp:3633
#10 0xb6bf9e72 in QTreeViewPrivate::itemDecorationRect (this=0x98f37d8, index=@0xbfb2a3fc) at itemviews/qtreeview.cpp:3489
#11 0xb6bfa1bb in QTreeViewPrivate::itemDecorationAt (this=0x98f37d8, pos=@0xbfb2a764) at itemviews/qtreeview.cpp:3475
#12 0xb6bfa2d7 in QTreeView::viewportEvent (this=0x98f5cd8, event=0xbfb2a758) at itemviews/qtreeview.cpp:1240
#13 0xb6b10345 in QAbstractScrollAreaFilter::eventFilter (this=0x98e5b68, o=0x98db4f8, e=0xbfb2a758) at widgets/qabstractscrollarea_p.h:100
#14 0xb7034c5a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x977cdc8, receiver=0x98db4f8, event=0xbfb2a758) at kernel/qcoreapplication.cpp:718
#15 0xb663cf0a in QApplicationPrivate::notify_helper (this=0x977cdc8, receiver=0x98db4f8, e=0xbfb2a758) at kernel/qapplication.cpp:4080
#16 0xb6645fa8 in QApplication::notify (this=0xbfb2b42c, receiver=0x98db4f8, e=0xbfb2a938) at kernel/qapplication.cpp:3811
#17 0xb75d894d in KApplication::notify (this=0xbfb2b42c, receiver=0x98db4f8, event=0xbfb2a938) at /build/buildd/kde4libs-4.2.2/kdeui/kernel/kapplication.cpp:307
#18 0xb7035a3b in QCoreApplication::notifyInternal (this=0xbfb2b42c, receiver=0x98db4f8, event=0xbfb2a938) at kernel/qcoreapplication.cpp:602
#19 0xb6644c0e in QApplicationPrivate::sendMouseEvent (receiver=0x98db4f8, event=0xbfb2a938, alienWidget=0x98db4f8, nativeWidget=0x986ad08, buttonDown=0xb6ee8200, lastMouseReceiver=@0xb6ee8204)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#20 0xb66b4a0e in QETWidget::translateMouseEvent (this=0x986ad08, event=0xbfb2af7c) at kernel/qapplication_x11.cpp:4425
#21 0xb66b3d37 in QApplication::x11ProcessEvent (this=0xbfb2b42c, event=0xbfb2af7c) at kernel/qapplication_x11.cpp:3421
#22 0xb66decfa in x11EventSourceDispatch (s=0x977fc68, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#23 0xb5e41a58 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0xb5e44fbb in ?? () from /usr/lib/libglib-2.0.so.0
#25 0xb5e45138 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0xb7061438 in QEventDispatcherGlib::processEvents (this=0x9769d60, flags={i = -1078808264}) at kernel/qeventdispatcher_glib.cpp:323
#27 0xb66de3f5 in QGuiEventDispatcherGlib::processEvents (this=0x9769d60, flags={i = -1078808216}) at kernel/qguieventdispatcher_glib.cpp:202
#28 0xb703406a in QEventLoop::processEvents (this=0xbfb2b1e0, flags={i = -1078808152}) at kernel/qeventloop.cpp:149
#29 0xb70344aa in QEventLoop::exec (this=0xbfb2b1e0, flags={i = -1078808088}) at kernel/qeventloop.cpp:200
#30 0xb7036959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#31 0xb663cda7 in QApplication::exec () at kernel/qapplication.cpp:3553
#32 0xb7fbc109 in kdemain (argc=1, argv=0xbfb2b784) at /build/buildd/kdebase-4.2.2/apps/keditbookmarks/main.cpp:203
#33 0x080486a2 in main (argc=) at /build/buildd/kdebase-4.2.2/obj-i486-linux-gnu/apps/keditbookmarks/keditbookmarks_dummy.cpp:3
Comment 1 Ben Boeckel 2009-04-19 14:37:02 UTC
This is probably a dupe of Bug #160679 .
Comment 2 Alvin 2009-04-21 10:53:55 UTC
No, it is not. (although the problems may be related.)
Bug #160679 is an older problem that only occurs when moving an item below the last bookmark. The + sign also disappears.
Since 4.2.2, moving is no longer possible altogether.
Comment 3 Dario Andres 2009-07-03 17:06:18 UTC
*** Bug 198801 has been marked as a duplicate of this bug. ***
Comment 4 Martin Koller 2011-05-22 20:32:11 UTC
not reproducible with 4.6.3