Bug 101188 - Crash when trying to add bookmark to toolbar via drag&drop
Summary: Crash when trying to add bookmark to toolbar via drag&drop
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: bookmarks (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 105173 111087 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-09 17:55 UTC by Jan Huelsbergen
Modified: 2006-05-11 17:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
straced fault of konqueror (260.36 KB, text/plain)
2006-02-26 22:11 UTC, Martin Zbořil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Huelsbergen 2005-03-09 17:55:43 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Unlisted Binary Package
Compiler:          gcc 3.4.3 
OS:                Linux

I just tried to add the site http://www.debian.org/distrib/packages.en-gb.html#search_packages to my bookmark toolbar by draging it there from the Location Bar and Konqueror crashed. After restarting, the bookmark is there, though.

Here's the backtrace:

(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1237686016 (LWP 3723)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#7  0xb7c5e2ab in QPtrList<QWidget>::deleteItem ()
   from /opt/kde/lib/libkdeui.so.4
#8  0xb75165da in QGList::clear () from /opt/qt/lib/libqt-mt.so.3
#9  0xb7b868f4 in KToolBar::rebuildLayout () from /opt/kde/lib/libkdeui.so.4
#10 0xb7c36ac4 in KToolBar::qt_invoke () from /opt/kde/lib/libkdeui.so.4
#11 0xb72497e4 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#12 0xb7249f7c in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#13 0xb75a1259 in QTimer::timeout () from /opt/qt/lib/libqt-mt.so.3
#14 0xb726ba6f in QTimer::event () from /opt/qt/lib/libqt-mt.so.3
#15 0xb71e5d8f in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#16 0xb71e5f82 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#17 0xb79082c5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#18 0xb71d93dc in QEventLoop::activateTimers () from /opt/qt/lib/libqt-mt.so.3
#19 0xb71917a2 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#20 0xb71fc461 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#21 0xb71fc3b6 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#22 0xb71e4eff in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#23 0xb603581c in kdemain () from /opt/kde/lib/libkdeinit_konqueror.so
#24 0x0804dd11 in ?? ()
#25 0x00000003 in ?? ()
#26 0x080c55d8 in ?? ()
#27 0x00000001 in ?? ()
#28 0x00000000 in ?? ()
#29 0x00000000 in ?? ()
#30 0x00000000 in ?? ()
#31 0x00000000 in ?? ()
#32 0xb795b5b1 in mALLOc () from /opt/kde/lib/libkdecore.so.4
#33 0x0804e42b in ?? ()
#34 0x00000000 in ?? ()
#35 0x00000000 in ?? ()
#36 0x080c4f83 in ?? ()
#37 0x00000000 in ?? ()
#38 0x00000000 in ?? ()
#39 0x00000000 in ?? ()
#40 0x08050562 in _IO_stdin_used ()
#41 0x00000000 in ?? ()
#42 0x00000000 in ?? ()
#43 0x00000000 in ?? ()
#44 0x00000000 in ?? ()
#45 0x00000000 in ?? ()
#46 0x08050562 in _IO_stdin_used ()
#47 0x00000000 in ?? ()
#48 0x00000000 in ?? ()
#49 0x080c4f83 in ?? ()
#50 0x00000000 in ?? ()
#51 0x00000000 in ?? ()
#52 0x080c4f3e in ?? ()
#53 0x080c4f34 in ?? ()
#54 0x00000003 in ?? ()
#55 0x080c4f30 in ?? ()
#56 0x00000008 in ?? ()
#57 0x00000e8a in ?? ()
#58 0x00000004 in ?? ()
#59 0x00000004 in ?? ()
#60 0x0000000c in ?? ()
#61 0x00000057 in ?? ()
#62 0x080514c0 in vtable for QCString ()
#63 0x0805a7b8 in ?? ()
#64 0x00000000 in ?? ()
#65 0x00000000 in ?? ()
#66 0x080514c0 in vtable for QCString ()
#67 0x0805a7a8 in ?? ()
#68 0x80cd0000 in ?? ()
#69 0x00000001 in ?? ()
#70 0xbffff4f8 in ?? ()
#71 0xbffff3e0 in ?? ()
#72 0xbffff460 in ?? ()
#73 0x00000000 in ?? ()
#74 0x0000000a in ?? ()
#75 0x00000001 in ?? ()
#76 0xbffff4f8 in ?? ()
#77 0x0804e946 in ?? ()
#78 0x0000000a in ?? ()
#79 0xbffff460 in ?? ()
#80 0xbffff3e0 in ?? ()
#81 0xbffff360 in ?? ()
#82 0x00000000 in ?? ()
#83 0x00000010 in ?? ()
#84 0xb79b7420 in spinlock () from /opt/kde/lib/libkdecore.so.4
#85 0xb795c653 in free () from /opt/kde/lib/libkdecore.so.4
Comment 1 Tommi Tervo 2005-05-06 09:50:55 UTC
*** Bug 105173 has been marked as a duplicate of this bug. ***
Comment 2 Frédéric Motte 2005-05-08 18:56:44 UTC
To reproduce the bug, you have to drag the icon in the address bar and drop it in the bookmark bar before the separator indicating the place where the bookmark will be placed.
Comment 3 Maksim Orlovich 2005-06-14 21:54:53 UTC
SVN commit 425455 by orlovich:

Do not let the idle buttons list hold dead buttons when calling QToolBar::clear, as that will 
delete them, causing a mess.

I would appreciate if someone could forward-port to 3.5

Fixes #105164, might also fix #101188, but I can't reproduce that well enough to be sure. 
BUG:105164
CCBUG:101188



 M  +5 -0      ktoolbar.cpp  


--- branches/KDE/3.4/kdelibs/kdeui/ktoolbar.cpp #425454:425455
@@ -664,6 +664,11 @@
 
 void KToolBar::clear ()
 {
+    /* Delete any idle buttons, so QToolBar doesn't delete them itself, making a mess */
+    for(QWidget *w=d->idleButtons.first(); w; w=d->idleButtons.next())
+       w->blockSignals(false);    
+    d->idleButtons.clear();
+     
     QToolBar::clear();
     widget2id.clear();
     id2widget.clear();
Comment 4 Tommi Tervo 2005-08-19 16:53:08 UTC
*** Bug 111087 has been marked as a duplicate of this bug. ***
Comment 5 Lukáš Tinkl 2005-10-03 19:18:05 UTC
Can't reproduce on 3.5, I assume it's safe to close this
Comment 6 Martin Zbořil 2006-02-26 22:11:12 UTC
Created attachment 14888 [details]
straced fault of konqueror

the fault is still here in 3.5.1 i can reproduce it easily by draging _any_ url
over the bookmark toolbar, which cause segault
the bookmark toolbar is containing only folders
Comment 7 Martin Zbořil 2006-03-29 01:25:07 UTC
ARGH! i hate this bug! i have more than 200 bookmarks placed between tabs and address bar, so this happens very often
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
`shared object read from target memory' has disappeared; keeping its symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1234265696 (LWP 14205)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb7faeff7 in QRect::left () from /usr/lib/libkparts.so.2
#7  0xb7e1783d in KBookmarkBar::eventFilter () from /usr/lib/libkio.so.4
#8  0xb74b96ea in QObject::activate_filters ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0xb74b9753 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0xb74eea62 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0xb755d22d in QDockWindow::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0xb75da1d2 in QToolBar::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0xb6d2f4a6 in KToolBar::event () from /usr/lib/libkdeui.so.4
#14 0xb745fdeb in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0xb74604aa in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0xb7a83554 in KApplication::notify () from /usr/lib/libkdecore.so.4
#17 0xb740e30c in qt_handle_xdnd_position ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0xb740ebf5 in QDragManager::move () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0xb740f573 in QDragManager::eventFilter ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0xb745fda7 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0xb74608a0 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0xb7a83554 in KApplication::notify () from /usr/lib/libkdecore.so.4
#23 0xb74001a5 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0xb73fecb9 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0xb7411586 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0xb7474731 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0xb745f5cf in QApplication::enter_loop ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0xb740f2fc in QDragManager::drag () from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0xb746d93e in QDragObject::drag () from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0xb746d8a1 in QDragObject::drag () from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0xb5e0f36c in KHTMLPart::khtmlMouseMoveEvent ()
   from /usr/lib/libkhtml.so.4
#32 0xb5ddc23f in KHTMLPart::customEvent () from /usr/lib/libkhtml.so.4
#33 0xb74b97c9 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0xb745fdeb in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0xb74604aa in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0xb7a83554 in KApplication::notify () from /usr/lib/libkdecore.so.4
#37 0xb7fafbfe in QApplication::sendEvent () from /usr/lib/libkparts.so.2
#38 0xb5e12950 in KHTMLView::viewportMouseMoveEvent ()
   from /usr/lib/libkhtml.so.4
#39 0xb75bfaa3 in QScrollView::eventFilter ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0xb5deadd9 in KHTMLView::eventFilter () from /usr/lib/libkhtml.so.4
#41 0xb74b96ea in QObject::activate_filters ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#42 0xb74b9753 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#43 0xb74eea62 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#44 0xb745fdeb in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0xb74608a0 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#46 0xb7a83554 in KApplication::notify () from /usr/lib/libkdecore.so.4
#47 0xb74001a5 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#48 0xb73fecb9 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#49 0xb7411586 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#50 0xb7474731 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#51 0xb7474654 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#52 0xb745f59f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#53 0xb650a503 in kdemain () from /usr/lib/libkdeinit_konqueror.so
#54 0xb65bb564 in kdeinitmain () from /usr/lib/kde3/konqueror.so
#55 0x0804f780 in ?? ()
#56 0x0804fed7 in ?? ()
#57 0x08050517 in ?? ()
#58 0x08050c26 in ?? ()
#59 0xb6f67e40 in __libc_start_main () from /lib/tls/libc.so.6
#60 0x0804c731 in ?? ()
Comment 8 Martin Zbořil 2006-05-11 17:56:13 UTC
well, this will not bugging me anymore, i had to save current bookmarks (now about 400 items) into external file and then import the file "from KDE 2/3" and short it again
since then i cant reproduce the bug