Bug 273307 - keditbookmarks crashes when moving severall bookmarks at once
Summary: keditbookmarks crashes when moving severall bookmarks at once
Status: RESOLVED DUPLICATE of bug 258505
Alias: None
Product: keditbookmarks
Classification: Applications
Component: general (show other bugs)
Version: 1.0
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 290572 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-15 00:03 UTC by
Modified: 2012-06-23 15:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (5.36 KB, text/plain)
2011-09-19 20:09 UTC, Bruno Friedmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 2011-05-15 00:03:55 UTC
Version:           1.0 (using KDE 4.6.2) 
OS:                Linux



Reproducible: Always

Steps to Reproduce:
I have imported bookmarks from an old account to a new folder, and clicked to select some bookmarks to move them into main toolbar folder, when i just dropped them, keditbookmarks crashed.

here is the backtrace:

~]$ gdb keditbookmarks 
GNU gdb (GDB) 7.1-6.mga1 (Mageia release 1)
Copyright (C) 2010 Free Software Foundation, Inc.                                                          
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>                              
This is free software: you are free to change and redistribute it.                                         
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"                                 
and "show warranty" for details.                                                                           
This GDB was configured as "x86_64-mageia-linux-gnu".                                                      
For bug reporting instructions, please see:                                                                
<http://www.gnu.org/software/gdb/bugs/>...                                                                 
Reading symbols from /usr/bin/keditbookmarks...(no debugging symbols found)...done.                        
Missing debug package(s), you should install: kdebase4-debug-4.6.3-0.mga1.x86_64                           
(gdb) run                                                                                                  
Starting program: /usr/bin/keditbookmarks                                                                  
[Thread debugging using libthread_db enabled]                                                              
keditbookmarks(28147)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory!             
keditbookmarks(28147)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory!             
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x992220,BookmarkFolderViewFilterModel(0x990820) )  
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x992220,BookmarkFolderViewFilterModel(0x990820) )  
keditbookmarks(28147) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/0/8" 

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff78ac258 in _wordcopy_fwd_aligned () from /lib64/libc.so.6



OS: Linux (x86_64) release 2.6.38.6-desktop-1.mga
Compiler: gcc
Comment 1 2011-05-15 00:46:05 UTC
Now i tried to reproduce and when i moved the folders i selected, keditbookmarks didnt crash, so i clicked ctrl+z to undo the move, and then it crashed with this backtrace:

(gdb) run 
Starting program: /usr/bin/keditbookmarks 
[Thread debugging using libthread_db enabled]
keditbookmarks(30913)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory! 
keditbookmarks(30913)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory! 
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x98ea50,BookmarkFolderViewFilterModel(0x98cf40) )  
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x98ea50,BookmarkFolderViewFilterModel(0x98cf40) )  
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/0/9" 
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x98ea50,BookmarkFolderViewFilterModel(0x98cf40) )  
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/9" 
QSortFilterProxyModel: invalid inserted rows reported by source model
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/10" 
QSortFilterProxyModel: invalid inserted rows reported by source model
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/11" 
QSortFilterProxyModel: invalid inserted rows reported by source model
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/12" 
QSortFilterProxyModel: invalid inserted rows reported by source model
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/13" 
QSortFilterProxyModel: invalid inserted rows reported by source model
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/14" 
QSortFilterProxyModel: invalid inserted rows reported by source model
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/15" 
QSortFilterProxyModel: invalid inserted rows reported by source model
BookmarkFolderView::bookmarkForIndex QModelIndex(0,0,0x98ea50,BookmarkFolderViewFilterModel(0x98cf40) )  
keditbookmarks(30913) KBookmarkManager::findByAddress: KBookmarkManager::findByAddress: couldn't find item  "/1/16" 

Program received signal SIGSEGV, Segmentation fault.
TreeItem::deleteChildren (this=0x0, first=-1, last=-1)
    at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/treeitem.cpp:76
76          firstIt = children.begin() + first;
(gdb)
Comment 2 2011-05-15 01:30:09 UTC
This is a backtrace generated when moving folders in keditboomarks:

Application: Editor de Favoritos (keditbookmarks), signal: Segmentation fault
[KCrash Handler]
#6  qDeleteAll<QList<TreeItem*>::const_iterator> (begin=..., end=...) at /usr/lib/qt4/include/QtCore/qalgorithms.h:322
#7  0x00007fe8b4a707b3 in qDeleteAll<QList<TreeItem*> > (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/lib/qt4/include/QtCore/qalgorithms.h:330
#8  TreeItem::~TreeItem (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/treeitem.cpp:29
#9  0x00007fe8b4a70861 in TreeItem::deleteChildren (this=0x24d52e0, first=<value optimized out>, last=<value optimized out>)
    at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/treeitem.cpp:80
#10 0x00007fe8b4a6e9b6 in KBookmarkModel::removeBookmark (this=0x1de6e30, bookmark=...) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/model.cpp:450
#11 0x00007fe8b4a69dca in CreateCommand::undo (this=0x2512510) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/commands.cpp:156
#12 0x00007fe8b4a6caa0 in DeleteCommand::redo (this=0x24bdb30) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/commands.cpp:320
#13 0x00007fe8b362fbf9 in QUndoCommand::redo() () from /usr/lib64/libQtGui.so.4
#14 0x00007fe8b4a6cd89 in DeleteCommand::redo (this=0x23cd950) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/commands.cpp:311
#15 0x00007fe8b4a6b6ac in MoveCommand::redo (this=0x24bd570) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/commands.cpp:377
#16 0x00007fe8b362fbf9 in QUndoCommand::redo() () from /usr/lib64/libQtGui.so.4
#17 0x00007fe8b36311e3 in QUndoStack::push(QUndoCommand*) () from /usr/lib64/libQtGui.so.4
#18 0x00007fe8b4a69af6 in CommandHistory::addCommand (this=0x1df05e0, cmd=0x1ec73f0) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/commandhistory.cpp:107
#19 0x00007fe8b4a6f775 in KBookmarkModel::dropMimeData (this=0x1de6e30, data=<value optimized out>, action=<value optimized out>, row=<value optimized out>, column=<value optimized out>, 
    parent=<value optimized out>) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/kbookmarkmodel/model.cpp:380
#20 0x00007fe8b34e803e in QAbstractItemView::dropEvent(QDropEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00007fe8b301da31 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#22 0x00007fe8b33cf256 in QFrame::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#23 0x00007fe8b34e1a63 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#24 0x00007fe8b3526ce5 in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#25 0x00007fe8b260b567 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#26 0x00007fe8b2fcb871 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#27 0x00007fe8b2fd06eb in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#28 0x00007fe8b3cf48b6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#29 0x00007fe8b260b3dc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#30 0x00007fe8b30564ba in ?? () from /usr/lib64/libQtGui.so.4
#31 0x00007fe8b30575d0 in ?? () from /usr/lib64/libQtGui.so.4
#32 0x00007fe8b305a178 in ?? () from /usr/lib64/libQtGui.so.4
#33 0x00007fe8b260b4ab in QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#34 0x00007fe8b2fcb816 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#35 0x00007fe8b2fd0cfc in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#36 0x00007fe8b3cf48b6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#37 0x00007fe8b260b3dc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#38 0x00007fe8b2fcc8a5 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#39 0x00007fe8b304c208 in ?? () from /usr/lib64/libQtGui.so.4
#40 0x00007fe8b304a8b9 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#41 0x00007fe8b3072582 in ?? () from /usr/lib64/libQtGui.so.4
#42 0x00007fe8aefd5dc3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#43 0x00007fe8aefd65a0 in ?? () from /lib64/libglib-2.0.so.0
#44 0x00007fe8aefd683d in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#45 0x00007fe8b26369af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#46 0x00007fe8b307221e in ?? () from /usr/lib64/libQtGui.so.4
#47 0x00007fe8b260a792 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#48 0x00007fe8b260a9dc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#49 0x00007fe8b3059e8e in ?? () from /usr/lib64/libQtGui.so.4
#50 0x00007fe8b2fdd878 in QDrag::exec(QFlags<Qt::DropAction>, Qt::DropAction) () from /usr/lib64/libQtGui.so.4
#51 0x00007fe8b34eb6ce in QAbstractItemView::startDrag(QFlags<Qt::DropAction>) () from /usr/lib64/libQtGui.so.4
#52 0x00007fe8b34ea451 in QAbstractItemView::mouseMoveEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#53 0x00007fe8b301d710 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#54 0x00007fe8b33cf256 in QFrame::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#55 0x00007fe8b34e1a63 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#56 0x00007fe8b3526ce5 in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#57 0x00007fe8b260b567 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#58 0x00007fe8b2fcb871 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#59 0x00007fe8b2fd0cfc in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#60 0x00007fe8b3cf48b6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#61 0x00007fe8b260b3dc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#62 0x00007fe8b2fcc8a5 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#63 0x00007fe8b304c208 in ?? () from /usr/lib64/libQtGui.so.4
#64 0x00007fe8b304a8b9 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#65 0x00007fe8b3072582 in ?? () from /usr/lib64/libQtGui.so.4
#66 0x00007fe8aefd5dc3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#67 0x00007fe8aefd65a0 in ?? () from /lib64/libglib-2.0.so.0
#68 0x00007fe8aefd683d in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#69 0x00007fe8b26369af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#70 0x00007fe8b307221e in ?? () from /usr/lib64/libQtGui.so.4
#71 0x00007fe8b260a792 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#72 0x00007fe8b260a9dc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#73 0x00007fe8b260ee9b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#74 0x00007fe8b500248f in kdemain (argc=667294896, argv=0x7fff27c61ea0) at /usr/src/debug/kdebase-4.6.3/keditbookmarks/main.cpp:212
#75 0x00007fe8b4c94c3d in __libc_start_main () from /lib64/libc.so.6
#76 0x0000000000400669 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 3 Bruno Friedmann 2011-09-19 20:09:36 UTC
Created attachment 63780 [details]
New crash information added by DrKonqi

keditbookmarks (4.7.1 (4.7.1)) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.4

- What I was doing when the application crashed: Editing bookmark by drag and drop several bookmark lead to crash.

-- Backtrace (Reduced):
#7  begin (this=0x0) at /usr/include/QtCore/qlist.h:254
#8  TreeItem::deleteChildren (this=0x0, first=-1, last=-1) at /usr/src/debug/kde-baseapps-4.7.1/keditbookmarks/kbookmarkmodel/treeitem.cpp:76
#9  0x00007ff6d34285a2 in KBookmarkModel::removeBookmark (this=0x84b000, bookmark=...) at /usr/src/debug/kde-baseapps-4.7.1/keditbookmarks/kbookmarkmodel/model.cpp:450
#10 0x00007ff6d34231db in CreateCommand::undo (this=0xa729b0) at /usr/src/debug/kde-baseapps-4.7.1/keditbookmarks/kbookmarkmodel/commands.cpp:156
#11 0x00007ff6d1fd2bb1 in QUndoCommand::undo (this=0x9b5410) at util/qundostack.cpp:226
Comment 4 Tommi Tervo 2012-01-04 10:17:26 UTC
*** Bug 290572 has been marked as a duplicate of this bug. ***
Comment 5 Jekyll Wu 2012-06-23 15:20:10 UTC

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