Bug 164092 - okular crashed when a link from about menu was clicked on
Summary: okular crashed when a link from about menu was clicked on
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 169450 195793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-14 20:35 UTC by Cristi
Modified: 2009-06-09 19:21 UTC (History)
2 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 Cristi 2008-06-14 20:35:49 UTC
Version:           0.6.80 (using 4.00.82 (KDE 4.0.82 >= 20080610), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.25-gentoo-r4

One should at least be able to click on your mail to mail you and say thanks for making such a cool app(really I mean it okular is so coool)
Application: Okular (okular), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0x7f5498157700 (LWP 4204)]
[KCrash handler]
#5  0x00007f5497597ea3 in QByteArray::isEmpty (this=0x7f5497c056a8)
    at /usr/include/qt4/QtCore/qbytearray.h:390
#6  0x00007f5497659aec in KLocalizedString::isEmpty (
    this=<value optimized out>)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdecore/localization/klocalizedstring.cpp:195
#7  0x00007f54975edd10 in KAboutData::copyrightStatement (this=0x7fffa0194730)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdecore/kernel/kaboutdata.cpp:883
#8  0x00007f54975f003d in KAboutLicense::text (this=0xd60db0)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdecore/kernel/kaboutdata.cpp:211
#9  0x00007f54970e3af2 in KAboutApplicationDialog::Private::_k_showLicense (
    this=0x10e9180, number=@0x7fffa0192960)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/dialogs/kaboutapplicationdialog.cpp:262
#10 0x00007f54970e3c61 in KAboutApplicationDialog::qt_metacall (
    this=0x7fffa0193fe0, _c=QMetaObject::InvokeMetaMethod, _id=1899334984,
    _a=0x7fffa01925f0)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs_build/kdeui/kaboutapplicationdialog.moc:66
#11 0x00007f5497c9ea02 in QMetaObject::activate (sender=0xf731f0,
    from_signal_index=<value optimized out>, to_signal_index=27, argv=0x2)
    at kernel/qobject.cpp:3001
#12 0x00007f549334af52 in QLabel::linkActivated (this=0x7f5497c056a8,
    _t1=<value optimized out>) at .moc/debug-shared/moc_qlabel.cpp:167
#13 0x00007f549334f002 in QLabel::qt_metacall (this=0xf731f0,
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
    _a=0x7fffa0192770) at .moc/debug-shared/moc_qlabel.cpp:100
#14 0x00007f5497c9ea02 in QMetaObject::activate (sender=0x109cb60,
    from_signal_index=<value optimized out>, to_signal_index=17, argv=0x2)
    at kernel/qobject.cpp:3001
#15 0x00007f54931a38c5 in QTextControl::linkActivated (this=0x7f5497c056a8,
    _t1=<value optimized out>) at .moc/debug-shared/moc_qtextcontrol_p.cpp:299
#16 0x00007f54931aa6d1 in QTextControlPrivate::activateLinkUnderCursor (
    this=0xf73b40, href=@0x7fffa0192960) at text/qtextcontrol.cpp:2504
#17 0x00007f54931adae5 in QTextControlPrivate::mouseReleaseEvent (
    this=0xf73b40, button=<value optimized out>, pos=@0x7fffa0192b50)
    at text/qtextcontrol.cpp:1662
#18 0x00007f54931afd31 in QTextControl::processEvent (
    this=<value optimized out>, e=0x7fffa0193650, matrix=@0x7fffa0192c70,
    contextWidget=0xf731f0) at text/qtextcontrol.cpp:923
#19 0x00007f54931a428b in QTextControl::processEvent (this=0x109cb60,
    e=0x7fffa0193650, coordinateOffset=@0x7fffa0192cf0,
    contextWidget=0xf731f0) at text/qtextcontrol.cpp:871
#20 0x00007f549334c3d1 in QLabelPrivate::sendControlEvent (this=0xf732f0,
    e=0x7fffa0193650) at widgets/qlabel.cpp:1488
#21 0x00007f5493018453 in QWidget::event (this=0xf731f0, event=0x7fffa0193650)
    at kernel/qwidget.cpp:6927
#22 0x00007f5493347ff6 in QFrame::event (this=0xf731f0, e=0x7fffa0193650)
    at widgets/qframe.cpp:657
#23 0x00007f549334bccb in QLabel::event (this=0xf731f0, e=0x7fffa0193650)
    at widgets/qlabel.cpp:931
#24 0x00007f5492fc23af in QApplicationPrivate::notify_helper (this=0xaabf70,
    receiver=0xf731f0, e=0x7fffa0193650) at kernel/qapplication.cpp:3772
#25 0x00007f5492fc69a5 in QApplication::notify (this=<value optimized out>,
    receiver=0xf731f0, e=0x7fffa0193650) at kernel/qapplication.cpp:3501
#26 0x00007f54971451ae in KApplication::notify (this=0x7fffa0195720,
    receiver=0xf731f0, event=0x7fffa0193650)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/kernel/kapplication.cpp:311
#27 0x00007f5497c89168 in QCoreApplication::notifyInternal (
    this=0x7fffa0195720, receiver=0xf731f0, event=0x7fffa0193650)
    at kernel/qcoreapplication.cpp:587
#28 0x00007f5492fc80ef in QApplicationPrivate::sendMouseEvent (
    receiver=0xf731f0, event=0x7fffa0193650,
    alienWidget=<value optimized out>, nativeWidget=0x7fffa0193fe0,
    buttonDown=<value optimized out>, lastMouseReceiver=@0x7f549398b6b0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#29 0x00007f549302bd86 in QETWidget::translateMouseEvent (
    this=0x7fffa0193fe0, event=<value optimized out>)
    at kernel/qapplication_x11.cpp:4133
#30 0x00007f549302aaf0 in QApplication::x11ProcessEvent (this=0x1a6,
    event=0x7fffa0193dd0) at kernel/qapplication_x11.cpp:3255
#31 0x00007f5493050524 in QEventDispatcherX11::processEvents (this=0xaabaa0,
    flags=@0x7fffa0193ee0) at kernel/qeventdispatcher_x11.cpp:134
#32 0x00007f5497c88565 in QEventLoop::processEvents (
    this=<value optimized out>, flags=@0x7fffa0193f20)
    at kernel/qeventloop.cpp:149
#33 0x00007f5497c886be in QEventLoop::exec (this=0x7fffa0193f70,
    flags=@0x7fffa0193f90) at kernel/qeventloop.cpp:200
#34 0x00007f54934117cc in QDialog::exec (this=0x7fffa0193fe0)
    at dialogs/qdialog.cpp:453
#35 0x00007f548ea27fa1 in Part::slotAboutBackend (this=0xb2f6e0)
    at /var/tmp/paludis/kde-base-okular-scm/work/okular/okular/part.cpp:1697
#36 0x00007f548ea2cdcd in Part::qt_metacall (this=0xb2f6e0,
    _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
    _a=0x7fffa0194170)
    at /var/tmp/paludis/kde-base-okular-scm/work/okular_build/okular/part.moc:206
#37 0x00007f5497c9ea02 in QMetaObject::activate (sender=0xcba9c0,
    from_signal_index=<value optimized out>, to_signal_index=6, argv=0x2)
    at kernel/qobject.cpp:3001
#38 0x00007f5492fbb977 in QAction::triggered (this=0x7f5497c056a8, _t1=false)
    at .moc/debug-shared/moc_qaction.cpp:216
#39 0x00007f5492fbc320 in QAction::activate (this=0xcba9c0,
    event=<value optimized out>) at kernel/qaction.cpp:1119
#40 0x00007f549338d227 in QMenuPrivate::activateAction (this=0xd18760,
    action=0xcba9c0, action_e=QAction::Trigger, self=true)
    at widgets/qmenu.cpp:1005
#41 0x00007f54971e0527 in KMenu::mouseReleaseEvent (this=0xd25a70,
    e=0x7fffa0194dc0)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/widgets/kmenu.cpp:452
#42 0x00007f5493018453 in QWidget::event (this=0xd25a70, event=0x7fffa0194dc0)
    at kernel/qwidget.cpp:6927
#43 0x00007f549338ae81 in QMenu::event (this=0xd25a70, e=0x7fffa0194dc0)
    at widgets/qmenu.cpp:2256
#44 0x00007f5492fc23af in QApplicationPrivate::notify_helper (this=0xaabf70,
    receiver=0xd25a70, e=0x7fffa0194dc0) at kernel/qapplication.cpp:3772
#45 0x00007f5492fc69a5 in QApplication::notify (this=<value optimized out>,
    receiver=0xd25a70, e=0x7fffa0194dc0) at kernel/qapplication.cpp:3501
#46 0x00007f54971451ae in KApplication::notify (this=0x7fffa0195720,
    receiver=0xd25a70, event=0x7fffa0194dc0)
    at /var/tmp/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/kernel/kapplication.cpp:311
#47 0x00007f5497c89168 in QCoreApplication::notifyInternal (
    this=0x7fffa0195720, receiver=0xd25a70, event=0x7fffa0194dc0)
    at kernel/qcoreapplication.cpp:587
#48 0x00007f5492fc80ef in QApplicationPrivate::sendMouseEvent (
    receiver=0xd25a70, event=0x7fffa0194dc0,
    alienWidget=<value optimized out>, nativeWidget=0xd25a70,
    buttonDown=<value optimized out>, lastMouseReceiver=@0x7f549398b6b0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#49 0x00007f549302bbf6 in QETWidget::translateMouseEvent (this=0xd25a70,
    event=<value optimized out>) at kernel/qapplication_x11.cpp:4067
#50 0x00007f549302aaf0 in QApplication::x11ProcessEvent (this=0x1a6,
    event=0x7fffa0195540) at kernel/qapplication_x11.cpp:3255
#51 0x00007f5493050524 in QEventDispatcherX11::processEvents (this=0xaabaa0,
    flags=@0x7fffa0195650) at kernel/qeventdispatcher_x11.cpp:134
#52 0x00007f5497c88565 in QEventLoop::processEvents (
    this=<value optimized out>, flags=@0x7fffa0195690)
    at kernel/qeventloop.cpp:149
#53 0x00007f5497c886be in QEventLoop::exec (this=0x7fffa01956d0,
    flags=@0x7fffa01956e0) at kernel/qeventloop.cpp:200
#54 0x00007f5497c8a709 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:845
#55 0x0000000000407e55 in main (argc=<value optimized out>,
    argv=<value optimized out>)
    at /var/tmp/paludis/kde-base-okular-scm/work/okular/okular/shell/main.cpp:58
#0  0x00007f5491bcdc01 in nanosleep () from /lib64/libc.so.6
Comment 1 Pino Toscano 2008-08-19 21:57:07 UTC
*** Bug 169450 has been marked as a duplicate of this bug. ***
Comment 2 Cristi 2008-08-26 14:32:27 UTC
it's working fine now.
Comment 3 Pino Toscano 2009-06-09 19:20:40 UTC
It was still there, and reproduceable. Fixing in a minute...
Comment 4 Pino Toscano 2009-06-09 19:20:47 UTC
*** Bug 195793 has been marked as a duplicate of this bug. ***
Comment 5 Pino Toscano 2009-06-09 19:21:25 UTC
SVN commit 979394 by pino:

KAboutData contains a list of KAboutLicense's, and each KAboutLicense object contains a pointer to the KAboutData which created it.
The problem is that when copying a KAboutData, its licenses are copied, but the KAboutLicense objects still point to the previous KAboutData.
Thus, change the pointer in KAboutLicense (after detaching the shared data pointer) when KAboutData is copied.
Also with a small unit test case which should be a sentinel of such crashy situation.
BUG: 164092


 M  +15 -1     kernel/kaboutdata.cpp  
 M  +21 -0     tests/kaboutdatatest.cpp  
 M  +1 -0      tests/kaboutdatatest.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=979394