Bug 201332 - dies when moving item from right window into a directory in left window using mouse
Summary: dies when moving item from right window into a directory in left window using...
Status: RESOLVED DUPLICATE of bug 160679
Alias: None
Product: keditbookmarks
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 11:04 UTC by Wolfgang Rohdewald
Modified: 2009-08-28 16:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Rohdewald 2009-07-24 11:04:44 UTC
Application that crashed: keditbookmarks
Version of the application: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2))
KDE Version: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2))
Qt Version: 4.5.0
Operating System: Linux 2.6.30-9-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
as the subject says. There are many almost identical bugreports but mine seems to be the only one showing that it dies in encodeQuotes

 -- Backtrace:
Application: Lesezeichen-Editor (keditbookmarks), signal: Segmentation fault
[KCrash Handler]
#6  encodeText (str=@0x1000020, s=@0xbf836830, encodeQuotes=true, performAVN=true, encodeEOLs=false) at ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:120
#7  0x00626485 in QDomElementPrivate::save (this=0x9ec64a0, s=@0xbf836830, depth=6, indent=1) at dom/qdom.cpp:4606
#8  0x00619892 in QDomNodePrivate::save (this=0x9ec6448, s=@0xbf836830, depth=6, indent=1) at dom/qdom.cpp:1916
#9  0x00626077 in QDomElementPrivate::save (this=0x9ec6448, s=@0xbf836830, depth=5, indent=1) at dom/qdom.cpp:4640
#10 0x00619892 in QDomNodePrivate::save (this=0x9ec49a8, s=@0xbf836830, depth=5, indent=1) at dom/qdom.cpp:1916
#11 0x00626077 in QDomElementPrivate::save (this=0x9ec49a8, s=@0xbf836830, depth=4, indent=1) at dom/qdom.cpp:4640
#12 0x00619892 in QDomNodePrivate::save (this=0x9ec2a28, s=@0xbf836830, depth=4, indent=1) at dom/qdom.cpp:1916
#13 0x00626077 in QDomElementPrivate::save (this=0x9ec2a28, s=@0xbf836830, depth=3, indent=1) at dom/qdom.cpp:4640
#14 0x00619892 in QDomNodePrivate::save (this=0x9ec3c08, s=@0xbf836830, depth=3, indent=1) at dom/qdom.cpp:1916
#15 0x00626077 in QDomElementPrivate::save (this=0x9ec3c08, s=@0xbf836830, depth=2, indent=1) at dom/qdom.cpp:4640
#16 0x00619892 in QDomNodePrivate::save (this=0x922f800, s=@0xbf836830, depth=2, indent=1) at dom/qdom.cpp:1916
#17 0x00626077 in QDomElementPrivate::save (this=0x922f800, s=@0xbf836830, depth=1, indent=1) at dom/qdom.cpp:4640
#18 0x00619892 in QDomNodePrivate::save (this=0x8f740c8, s=@0xbf836830, depth=1, indent=1) at dom/qdom.cpp:1916
#19 0x00626077 in QDomElementPrivate::save (this=0x8f740c8, s=@0xbf836830, depth=0, indent=1) at dom/qdom.cpp:4640
#20 0x0062aac6 in QDomDocumentPrivate::saveDocument (this=0x8f20758, s=@0xbf836830, indent=1, encUsed=QDomNode::EncodingFromDocument) at dom/qdom.cpp:6473
#21 0x0062b163 in QDomNode::save (this=0xbf8368f0, str=@0xbf836830, indent=1) at dom/qdom.cpp:2684
#22 0x0062b1ce in QDomDocument::toString (this=0xbf8368f0, indent=1) at dom/qdom.cpp:6845
#23 0x009614cc in KBookmarkManager::saveAs (this=0x8f9f260, filename=@0x8f1ea78, toolbarCache=true) at /build/buildd/kde4libs-4.2.96/kio/bookmarks/kbookmarkmanager.cc:402
#24 0x009619ef in KBookmarkManager::save (this=0x8f9f260, toolbarCache=<value optimized out>) at /build/buildd/kde4libs-4.2.96/kio/bookmarks/kbookmarkmanager.cc:368
#25 0x00961a30 in KBookmarkManager::emitChanged (this=0x8f9f260, group=@0xbf8369d0) at /build/buildd/kde4libs-4.2.96/kio/bookmarks/kbookmarkmanager.cc:516
#26 0x006f2fdb in CurrentMgr::notifyManagers (this=0x8eb5e18, grp=@0xbf8369d0) at /build/buildd/kdebase-4.2.96/apps/keditbookmarks/toplevel.cpp:183
#27 0x006f66a1 in CmdHistory::slotCommandExecuted (this=0x8f0ccb0, k=0x94345c8) at /build/buildd/kdebase-4.2.96/apps/keditbookmarks/toplevel.cpp:82
#28 0x007160d0 in KBookmarkModel::dropMimeData (this=0x8eb8168, data=0x8e42e88, action=Qt::CopyAction, row=-1, column=-1, parent=@0xbf836af0)
    at /build/buildd/kdebase-4.2.96/apps/keditbookmarks/bookmarkmodel.cpp:306
#29 0x0071827f in BookmarkFolderViewFilterModel::dropMimeData (this=0x926f4c8, data=0x8e42e88, action=Qt::CopyAction, row=-1, column=-1, parent=@0xbf836b74)
    at /build/buildd/kdebase-4.2.96/apps/keditbookmarks/bookmarklistview.cpp:184
#30 0x062af0f1 in QAbstractItemView::dropEvent (this=0x8e34470, event=0xbf83734c) at itemviews/qabstractitemview.cpp:1844
#31 0x05d8f721 in QWidget::event (this=0x8e34470, event=0xbf83734c) at kernel/qwidget.cpp:7698
#32 0x06169993 in QFrame::event (this=0x8e34470, e=0xbf83734c) at widgets/qframe.cpp:559
#33 0x0620994f in QAbstractScrollArea::viewportEvent (this=0x8e34470, e=0xbf836230) at widgets/qabstractscrollarea.cpp:962
#34 0x062bb647 in QAbstractItemView::viewportEvent (this=0x8e34470, event=0xbf83734c) at itemviews/qabstractitemview.cpp:1466
#35 0x062f60c4 in QTreeView::viewportEvent (this=0x8e34470, event=0xbf83734c) at itemviews/qtreeview.cpp:1257
#36 0x0620bf55 in QAbstractScrollAreaFilter::eventFilter (this=0x8f6f570, o=0x8dff388, e=0xbf83734c) at widgets/qabstractscrollarea_p.h:100
#37 0x0675cc5a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8dc8f18, receiver=0x8dff388, event=0xbf83734c) at kernel/qcoreapplication.cpp:718
#38 0x05d38e7a in QApplicationPrivate::notify_helper (this=0x8dc8f18, receiver=0x8dff388, e=0xbf83734c) at kernel/qapplication.cpp:4080
#39 0x05d417b1 in QApplication::notify (this=0xbf83975c, receiver=0x8dff388, e=0xbf83734c) at kernel/qapplication.cpp:4037
#40 0x00d674dd in KApplication::notify (this=0xbf83975c, receiver=0x8dff388, event=0xbf83734c) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302
#41 0x0675da3b in QCoreApplication::notifyInternal (this=0xbf83975c, receiver=0x8dff388, event=0xbf83734c) at kernel/qcoreapplication.cpp:602
#42 0x05dbe51d in QX11Data::xdndHandleDrop (this=0x8dccb18, xe=0xbf837448, passive=false) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#43 0x05dc31a3 in QDragManager::drop (this=0x9ec3e10) at kernel/qdnd_x11.cpp:1692
#44 0x05dc3366 in QDragManager::eventFilter (this=0x9ec3e10, o=0x9ec3ad8, e=0xbf8378e8) at kernel/qdnd_x11.cpp:1292
#45 0x0675cd1c in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=0x8dc8f18, receiver=0x9ec3ad8, event=0xbf8378e8) at kernel/qcoreapplication.cpp:699
#46 0x05d38e13 in QApplicationPrivate::notify_helper (this=0x8dc8f18, receiver=0x9ec3ad8, e=0xbf8378e8) at kernel/qapplication.cpp:4059
#47 0x05d41b11 in QApplication::notify (this=0xbf83975c, receiver=0x9ec3ad8, e=0xbf8378e8) at kernel/qapplication.cpp:3786
#48 0x00d674dd in KApplication::notify (this=0xbf83975c, receiver=0x9ec3ad8, event=0xbf8378e8) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302
#49 0x0675da3b in QCoreApplication::notifyInternal (this=0xbf83975c, receiver=0x9ec3ad8, event=0xbf8378e8) at kernel/qcoreapplication.cpp:602
#50 0x05d40b7e in QApplicationPrivate::sendMouseEvent (receiver=0x9ec3ad8, event=0xbf8378e8, alienWidget=0x0, nativeWidget=0x9ec3ad8, buttonDown=0x65e3200, lastMouseReceiver=@0x65e3204)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#51 0x05db097e in QETWidget::translateMouseEvent (this=0x9ec3ad8, event=0xbf837f2c) at kernel/qapplication_x11.cpp:4425
#52 0x05dafca7 in QApplication::x11ProcessEvent (this=0xbf83975c, event=0xbf837f2c) at kernel/qapplication_x11.cpp:3421
#53 0x05ddac6a in x11EventSourceDispatch (s=0x8dcbe68, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#54 0x0881ab88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#55 0x0881e0eb in ?? () from /usr/lib/libglib-2.0.so.0
#56 0x0881e268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#57 0x06789438 in QEventDispatcherGlib::processEvents (this=0x8db2d10, flags={i = -1081900824}) at kernel/qeventdispatcher_glib.cpp:323
#58 0x05dda365 in QGuiEventDispatcherGlib::processEvents (this=0x8db2d10, flags={i = -1081900776}) at kernel/qguieventdispatcher_glib.cpp:202
#59 0x0675c06a in QEventLoop::processEvents (this=0x8dcd428, flags={i = -1081900712}) at kernel/qeventloop.cpp:149
#60 0x0675c4aa in QEventLoop::exec (this=0x8dcd428, flags={i = -1081900600}) at kernel/qeventloop.cpp:200
#61 0x05dc1310 in QDragManager::drag (this=0x9ec3e10, o=0x92fe3c0) at kernel/qdnd_x11.cpp:1952
#62 0x05d4c53a in QDrag::exec (this=0x92fe3c0, supportedActions={i = -1081900348}, defaultDropAction=Qt::CopyAction) at kernel/qdrag.cpp:282
#63 0x062b9b9c in QAbstractItemView::startDrag (this=0x8f9f530, supportedActions={i = -1081900092}) at itemviews/qabstractitemview.cpp:3189
#64 0x062b6b5d in QAbstractItemView::mouseMoveEvent (this=0x8f9f530, event=0xbf838c68) at itemviews/qabstractitemview.cpp:1547
#65 0x062f5e84 in QTreeView::mouseMoveEvent (this=0x8f9f530, event=0xbf838c68) at itemviews/qtreeview.cpp:1863
#66 0x05d8f9ad in QWidget::event (this=0x8f9f530, event=0xbf838c68) at kernel/qwidget.cpp:7501
#67 0x06169993 in QFrame::event (this=0x8f9f530, e=0xbf838c68) at widgets/qframe.cpp:559
#68 0x0620994f in QAbstractScrollArea::viewportEvent (this=0x8f9f530, e=0xbf836230) at widgets/qabstractscrollarea.cpp:962
#69 0x062bb647 in QAbstractItemView::viewportEvent (this=0x8f9f530, event=0xbf838c68) at itemviews/qabstractitemview.cpp:1466
#70 0x062f60c4 in QTreeView::viewportEvent (this=0x8f9f530, event=0xbf838c68) at itemviews/qtreeview.cpp:1257
#71 0x0620bf55 in QAbstractScrollAreaFilter::eventFilter (this=0x8fa08b0, o=0x8f9f9c0, e=0xbf838c68) at widgets/qabstractscrollarea_p.h:100
#72 0x0675cc5a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8dc8f18, receiver=0x8f9f9c0, event=0xbf838c68) at kernel/qcoreapplication.cpp:718
#73 0x05d38e7a in QApplicationPrivate::notify_helper (this=0x8dc8f18, receiver=0x8f9f9c0, e=0xbf838c68) at kernel/qapplication.cpp:4080
#74 0x05d41b11 in QApplication::notify (this=0xbf83975c, receiver=0x8f9f9c0, e=0xbf838c68) at kernel/qapplication.cpp:3786
#75 0x00d674dd in KApplication::notify (this=0xbf83975c, receiver=0x8f9f9c0, event=0xbf838c68) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302
#76 0x0675da3b in QCoreApplication::notifyInternal (this=0xbf83975c, receiver=0x8f9f9c0, event=0xbf838c68) at kernel/qcoreapplication.cpp:602
#77 0x05d40b7e in QApplicationPrivate::sendMouseEvent (receiver=0x8f9f9c0, event=0xbf838c68, alienWidget=0x8f9f9c0, nativeWidget=0x8eb7ca8, buttonDown=0x65e3200, lastMouseReceiver=@0x65e3204)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#78 0x05db097e in QETWidget::translateMouseEvent (this=0x8eb7ca8, event=0xbf8392ac) at kernel/qapplication_x11.cpp:4425
#79 0x05dafca7 in QApplication::x11ProcessEvent (this=0xbf83975c, event=0xbf8392ac) at kernel/qapplication_x11.cpp:3421
#80 0x05ddac6a in x11EventSourceDispatch (s=0x8dcbe68, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#81 0x0881ab88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#82 0x0881e0eb in ?? () from /usr/lib/libglib-2.0.so.0
#83 0x0881e268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#84 0x06789438 in QEventDispatcherGlib::processEvents (this=0x8db2d10, flags={i = -1081895832}) at kernel/qeventdispatcher_glib.cpp:323
#85 0x05dda365 in QGuiEventDispatcherGlib::processEvents (this=0x8db2d10, flags={i = -1081895784}) at kernel/qguieventdispatcher_glib.cpp:202
#86 0x0675c06a in QEventLoop::processEvents (this=0xbf839510, flags={i = -1081895720}) at kernel/qeventloop.cpp:149
#87 0x0675c4aa in QEventLoop::exec (this=0xbf839510, flags={i = -1081895656}) at kernel/qeventloop.cpp:200
#88 0x0675e959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#89 0x05d38d17 in QApplication::exec () at kernel/qapplication.cpp:3553
#90 0x006f2109 in kdemain (argc=6, argv=0xbf839ab4) at /build/buildd/kdebase-4.2.96/apps/keditbookmarks/main.cpp:203
#91 0x080486a2 in main (argc=) at /build/buildd/kdebase-4.2.96/obj-i486-linux-gnu/apps/keditbookmarks/keditbookmarks_dummy.cpp:3

This bug may be a duplicate of or related to bug 197439

Reported using DrKonqi
Comment 1 Wolfgang Rohdewald 2009-07-24 11:16:03 UTC
when doing the same with valgrind --trace-children=yes kbookmarkeditor,
I got no crash but an error that might be the reason:

==32373== For more details, rerun with: -v
==32373==
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x9c2b1e0,BookmarkFolderViewFilterModel(0x9c27cf8) )
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x9c2b1e0,BookmarkFolderViewFilterModel(0x9c27cf8) )
==32373== Conditional jump or move depends on uninitialised value(s)
==32373==    at 0x54B0C50: QX11PaintEngine::updateMatrix(QTransform const&) (qpaintengine_x11.cpp:1987)
==32373==    by 0x54BAE36: QX11PaintEngine::updateState(QPaintEngineState const&) (qpaintengine_x11.cpp:1059)
==32373==    by 0x53D84C7: QPainterPrivate::updateStateImpl(QPainterState*) (qpainter.cpp:899)
==32373==    by 0x53D85AA: QPainterPrivate::updateState(QPainterState*) (qpainter.cpp:927)
==32373==    by 0x53E3F0E: QPainter::drawEllipse(QRect const&) (qpainter.cpp:4232)
==32373==    by 0x6F82375: OxygenStyleHelper::hole(QColor const&, double, int) (qpainter.h:678)
==32373==    by 0x6F89704: OxygenStyle::renderHole(QPainter*, QColor const&, QRect const&, bool, bool, QFlags<TileSet::Tile>) const (oxygen.cpp:2440)
==32373==    by 0x6F97436: OxygenStyle::drawKStylePrimitive(KStyle::WidgetType, int, QStyleOption const*, QRect const&, QPalette const&, QFlags<QStyle::StateFlag>, QPainter*, QWidget const*, KStyle::Option*) const (oxygen.cpp:1789)
==32373==    by 0x4A8E7F5: KStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const (kstyle.cpp:1107)
==32373==    by 0x6F93743: OxygenStyle::drawKStylePrimitive(KStyle::WidgetType, int, QStyleOption const*, QRect const&, QPalette const&, QFlags<QStyle::StateFlag>, QPainter*, QWidget const*, KStyle::Option*) const (oxygen.cpp:1814)
==32373==    by 0x4A8E4A5: KStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const (kstyle.cpp:1101)
==32373==    by 0x4B9A2C0: KdeUiProxyStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const (kdeuiwidgetsproxystyle.cpp:75)
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x9c2b1e0,BookmarkFolderViewFilterModel(0x9c27cf8) )
==32373==
==32373== Invalid read of size 4
==32373==    at 0x487B524: QDomNodePrivate::insertAfter(QDomNodePrivate*, QDomNodePrivate*) (qdom.cpp:1644)
==32373==    by 0x487B16F: QDomNodePrivate::appendChild(QDomNodePrivate*) (qdom.cpp:1857)
==32373==    by 0x487EC0B: QDomNodePrivate::QDomNodePrivate(QDomNodePrivate*, bool) (qdom.cpp:1485)
==32373==    by 0x4883FF3: QDomElementPrivate::QDomElementPrivate(QDomElementPrivate*, bool) (qdom.cpp:4422)
==32373==    by 0x4884393: QDomElementPrivate::cloneNode(bool) (qdom.cpp:4437)
==32373==    by 0x487EBFF: QDomNodePrivate::QDomNodePrivate(QDomNodePrivate*, bool) (qdom.cpp:1485)
==32373==    by 0x4883FF3: QDomElementPrivate::QDomElementPrivate(QDomElementPrivate*, bool) (qdom.cpp:4422)
==32373==    by 0x4884393: QDomElementPrivate::cloneNode(bool) (qdom.cpp:4437)
==32373==    by 0x487BCE5: QDomNode::cloneNode(bool) const (qdom.cpp:2358)
==32373==    by 0x406DBE6: CreateCommand::execute() (commands.cpp:156)
==32373==    by 0x406CFF4: CmdGen::insertMimeSource(QString const&, QMimeData const*, QString const&) (commands.cpp:558)
==32373==    by 0x40840A4: KBookmarkModel::dropMimeData(QMimeData const*, Qt::DropAction, int, int, QModelIndex const&) (bookmarkmodel.cpp:305)
==32373==  Address 0x7bbec30 is 64 bytes inside a block of size 68 free'd
==32373==    at 0x402599A: operator delete(void*) (vg_replace_malloc.c:342)
==32373==    by 0x4882CF0: QDomDocumentPrivate::~QDomDocumentPrivate() (qdom.cpp:6202)
==32373==    by 0x487BA29: QDomNode::~QDomNode() (qdom.cpp:2107)
==32373==    by 0x487DE0C: QDomDocument::~QDomDocument() (qdom.cpp:6656)
==32373==    by 0x4683BC5: KBookmark::List::fromMimeData(QMimeData const*) (kbookmark.cc:688)
==32373==    by 0x406CF15: CmdGen::insertMimeSource(QString const&, QMimeData const*, QString const&) (commands.cpp:551)
==32373==    by 0x40840A4: KBookmarkModel::dropMimeData(QMimeData const*, Qt::DropAction, int, int, QModelIndex const&) (bookmarkmodel.cpp:305)
==32373==    by 0x408627E: BookmarkFolderViewFilterModel::dropMimeData(QMimeData const*, Qt::DropAction, int, int, QModelIndex const&) (bookmarklistview.cpp:184)
==32373==    by 0x58250F0: QAbstractItemView::dropEvent(QDropEvent*) (qabstractitemview.cpp:1844)
==32373==    by 0x5305720: QWidget::event(QEvent*) (qwidget.cpp:7698)
==32373==    by 0x56DF992: QFrame::event(QEvent*) (qframe.cpp:559)
==32373==    by 0x577F94E: QAbstractScrollArea::viewportEvent(QEvent*) (qabstractscrollarea.cpp:962)
==32373==
Comment 2 Simon St James 2009-08-28 16:14:38 UTC
Thanks for the analysis, Wolfgang.  This is a dupe of 160679 (your backtrace matches one of the ones in that bug precisely) and based on your valgrind output, I can make a guess as to what is causing the problem.  I'll comment on 160679.

*** This bug has been marked as a duplicate of bug 160679 ***