[Okular-devel] [Bug 153436] New: Okular crashes when adding bookmark if bookmarks.xml is corrupted

Oliver Putz Regnaron at web.de
Tue Dec 4 18:59:19 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=153436         
           Summary: Okular crashes when adding bookmark if bookmarks.xml is
                    corrupted
           Product: okular
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: okular-devel kde org
        ReportedBy: Regnaron web de


Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

If you replace okular's bookmarks.xml file with a corrupted one (an empty one for example), adding a bookmark crashes okular.

Steps to reproduce

1) Delete bookmarks.* in /home/kde4daily/.kde4/share/apps/okular
2) Create new empy bookmarks.xml file (touch bookmarks.xml) 
3) Start okular and open any document
4) Add a bookmark (CTRL-B)

Except that okular does not crash when just showing the current bookmarks, it shows the same behaviour as konqueror in Bug 153429
If both use the same bookmark backend, maybe the two bugs are related?

I use kde4daily r744670 and the backtrace for this okular crash is:


Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1235781936 (LWP 5902)]
[KCrash handler]
#6  0xffffe402 in __kernel_vsyscall ()
#7  0xb6886df0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6888641 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7e39fad in qt_message_output ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtCore.so.4
#10 0xb7e3a031 in qFatal ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtCore.so.4
#11 0xb7e3a19d in qt_assert ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtCore.so.4
#12 0xb7835c89 in KBookmarkGroup::createNewFolder (this=0xbfe8dee4, 
    text= 0xbfe8dee0)
    at /storage/tmp/kde4dev/kdelibs/kio/bookmarks/kbookmark.cc:96
#13 0xb4f5e48a in find (files= 0x81122dc, url= 0x81122c4, manager=0x810c120, 
    doCreate=true)
    at /storage/tmp/kde4dev/kdegraphics/okular/core/bookmarkmanager.cpp:184
#14 0xb4f5e75b in Okular::BookmarkManager::setPageBookmark (this=0x81116a0, 
    page=0)
    at /storage/tmp/kde4dev/kdegraphics/okular/core/bookmarkmanager.cpp:304
#15 0xb4f5f459 in Okular::BookmarkManager::addBookmark (this=0x81116a0, n=0)
    at /storage/tmp/kde4dev/kdegraphics/okular/core/bookmarkmanager.cpp:194
#16 0xb4fe15e3 in Part::slotAddBookmark (this=0x8101d60)
    at /storage/tmp/kde4dev/kdegraphics/okular/part.cpp:1132
#17 0xb4fe4f01 in Part::qt_metacall (this=0x8101d60, 
    _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfe8e54c)
    at /storage/tmp/kde4dev/kdegraphics-build/okular/part.moc:184
#18 0xb7f09af8 in QMetaObject::activate ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtCore.so.4
#19 0xb7f09cf4 in QMetaObject::activate ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtCore.so.4
#20 0xb6bfa37c in QAction::triggered ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#21 0xb6bfc0ea in QAction::activate ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#22 0xb6fe6093 in QMenuPrivate::activateAction ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#23 0xb6fe89b8 in QMenu::mouseReleaseEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#24 0xb7b566d8 in KMenu::mouseReleaseEvent (this=0x82fa790, e=0xbfe8ed9c)
    at /storage/tmp/kde4dev/kdelibs/kdeui/widgets/kmenu.cpp:423
#25 0xb6c53989 in QWidget::event ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#26 0xb6fe407f in QMenu::event ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#27 0xb6c01f51 in QApplicationPrivate::notify_helper ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#28 0xb6c02ac2 in QApplication::notify ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#29 0xb7a9662f in KApplication::notify (this=0xbfe8f568, receiver=0x82fa790, 
    event=0xbfe8ed9c)
    at /storage/tmp/kde4dev/kdelibs/kdeui/kernel/kapplication.cpp:319
#30 0xb7ef8356 in QCoreApplication::notifyInternal ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtCore.so.4
#31 0xb6c0d321 in QCoreApplication::sendSpontaneousEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#32 0xb6c6e6dd in QETWidget::translateMouseEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#33 0xb6c6c480 in QApplication::x11ProcessEvent ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#34 0xb6c9a047 in x11EventSourceDispatch ()
   from /storage/tmp/kde4dev/qt-unstable/lib/libQtGui.so.4
#35 0xb67e6df2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#36 0xb67e9dcf in ?? () from /usr/lib/libglib-2.0.so.0
#37 0x08067a98 in ?? ()
#38 0x00000000 in ?? ()
#0  0xffffe402 in __kernel_vsyscall ()


More information about the Okular-devel mailing list