Bug 183363 - crash with LCHM entries with no urls
Summary: crash with LCHM entries with no urls
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: CHM backend (show other bugs)
Version: 0.7.4
Platform: Fedora RPMs Unspecified
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 185763 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-05 21:34 UTC by John Athanaselis
Modified: 2009-06-02 18:00 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 John Athanaselis 2009-02-05 21:34:49 UTC
Version:           0.7.4 (using KDE 4.1.4)
Installed from:    Fedora RPMs

Application: Okular (okular), signal SIGSEGV

[Current thread is 1 (Thread 0xb7f1c770 (LWP 3471))]

Thread 1 (Thread 0xb7f1c770 (LWP 3471)):

[KCrash Handler]

#5 0x00764e16 in KServiceType::serviceOffersOffset (this=0x0) at /home/kde-devel/kdesvn/kdelibs/kdecore/services/kservicetype.cpp:229

#6 0x0074d82d in filterMimeTypeOffers () at /home/kde-devel/kdesvn/kdelibs/kdecore/services/kmimetypetrader.cpp:113

#7 KMimeTypeTrader::query (this=0x9332270, mimeType=@0xbfc48c3c, genericServiceType=@0xbfc48c38, constraint=@0xbfc48c44) at /home/kde-devel/kdesvn/kdelibs/kdecore/services/kmimetypetrader.cpp:127

#8 0x01313458 in Okular::Document::openDocument () from /usr/lib/libokularcore.so.1

#9 0x0648a2fd in ?? () from /usr/lib/kde4/okularpart.so

#10 0x00494eba in KParts::ReadOnlyPart::openUrl (this=0x9202af0, url=@0x9202540) at /home/kde-devel/kdesvn/kdelibs/kparts/part.cpp:558

#11 0x064846ec in ?? () from /usr/lib/kde4/okularpart.so

#12 0x0804eb62 in _start ()
Comment 1 Dario Andres 2009-02-05 21:57:00 UTC
Do you experience this on loading every CHM file? If this is a crash on a specific file can you attach it ?
This may be related to kdelibs
Comment 2 Pino Toscano 2009-02-05 22:01:20 UTC
In a terminal, please run:
$ kbuildsycoca4 --noincremental
Comment 3 John Athanaselis 2009-02-05 22:05:50 UTC
(In reply to comment #1)
> Do you experience this on loading every CHM file? If this is a crash on a
> specific file can you attach it ?
> This may be related to kdelibs
> 

I tested only one chm file. I don't have second. I cannot attach that file. Sorry :(

I run okular using kde 4.1.4 as it is the current version for my fedora distribution and also on kde 4.2.61 (20090127) I compiled from sources. If it is a kdelibs problem it remains on kde 4.2
Comment 4 John Athanaselis 2009-02-05 22:06:57 UTC
(In reply to comment #2)
> In a terminal, please run:
> $ kbuildsycoca4 --noincremental
> 

Problem remains

Thread 1 (Thread 0xb7fa7770 (LWP 3927)):
#0  0x00903416 in __kernel_vsyscall ()
#1  0x0042c430 in __nanosleep_nocancel () from /lib/libc.so.6
#2  0x0042c26e in sleep () from /lib/libc.so.6
#3  0x0558d8aa in ?? () from /usr/lib/libkdeui.so.5
#4  0x0558e2dc in KCrash::defaultCrashHandler () from /usr/lib/libkdeui.so.5
#5  <signal handler called>
#6  0x0305cf42 in QString::operator= () from /usr/lib/libQtCore.so.4
#7  0x0071e31f in ?? () from /usr/lib/libQtXml.so.4
#8  0x0071cc8b in ?? () from /usr/lib/libQtXml.so.4
#9  0x0106149a in ?? () from /usr/lib/kde4/okularGenerator_chmlib.so
#10 0x06c9acbc in Okular::Document::openDocument () from /usr/lib/libokularcore.so.1
#11 0x00fa12fd in ?? () from /usr/lib/kde4/okularpart.so
#12 0x0061ecf3 in KParts::ReadOnlyPart::openUrl () from /usr/lib/libkparts.so.4
#13 0x00f9b6ec in ?? () from /usr/lib/kde4/okularpart.so
#14 0x0804eb62 in _start ()
Comment 5 Pino Toscano 2009-02-05 22:17:59 UTC
This is another problem now.
Please follow http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
for getting a better backtrace.
Comment 6 Albert Astals Cid 2009-02-05 23:46:13 UTC
Reopening
Comment 7 Pino Toscano 2009-02-07 17:36:53 UTC
Also, the faulty document would be something needed for reproducing the issue.
Comment 8 John Athanaselis 2009-02-15 23:13:41 UTC
The full debug info:

Application: Okular (okular), signal SIGSEGV
[Current thread is 1 (Thread 0xb8097770 (LWP 6010))]

Thread 1 (Thread 0xb8097770 (LWP 6010)):
[KCrash Handler]
#6  QBasicAtomicInt::ref () at ../../src/corelib/arch/qatomic_i386.h:116
#7  QString::operator= (this=0x955f350, other=@0x8052678) at tools/qstring.cpp:1103
#8  0x0071e31f in QDomAttrPrivate::setNodeValue (this=0x955f330, v=@0x8052678) at dom/qdom.cpp:4075
#9  0x0071cc8b in QDomElementPrivate::setAttribute (this=0x955f2e8, aname=@0xbf9c4da8, newValue=@0x8052678) at dom/qdom.cpp:4419
#10 0x006d434a in CHMGenerator::loadDocument (this=0x952dfe0, fileName=@0xbf9c51e8, pagesVector=@0x92381ac) at /usr/src/debug/kdegraphics-4.2.0/okular/generators/chm/generator_chm.cpp:98
#11 0x01010aa1 in Okular::DocumentPrivate::openDocumentInternal (this=0x92380f8, offer=@0xbf9c4fa0, isstdin=false, docFile=@0xbf9c51e8, filedata=@0xbf9c5020)
    at /usr/src/debug/kdegraphics-4.2.0/okular/core/document.cpp:643
#12 0x01018a24 in Okular::Document::openDocument (this=0x92411b0, docFile=@0xbf9c51e8, url=@0xbf9c515c, _mime=@0xbf9c5208) at /usr/src/debug/kdegraphics-4.2.0/okular/core/document.cpp:1593
#13 0x00f157ec in Part::openFile (this=0x91beb10) at /usr/src/debug/kdegraphics-4.2.0/okular/part.cpp:874
#14 0x02c72b3a in KParts::ReadOnlyPart::openUrl (this=0x91beb10, url=@0x91ae5dc) at /usr/src/debug/kdelibs-4.2.0/kparts/part.cpp:558
#15 0x00f1075c in Part::openUrl (this=0x91beb10, url=@0x91ae5dc) at /usr/src/debug/kdegraphics-4.2.0/okular/part.cpp:970
#16 0x0804f602 in Shell::openUrl (this=0x91ae590, url=@0x91ae5dc, page=0) at /usr/src/debug/kdegraphics-4.2.0/okular/shell/shell.cpp:131
#17 0x0804f71b in Shell::delayedOpen (this=0x91ae590) at /usr/src/debug/kdegraphics-4.2.0/okular/shell/shell.cpp:114
#18 0x080504ab in Shell::qt_metacall (this=0x91ae590, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf9c5408) at /usr/src/debug/kdegraphics-4.2.0/i386-redhat-linux-gnu/okular/shell/shell.moc:90
#19 0x0311ddf0 in QMetaObject::activate (sender=0x9525f78, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031
#20 0x0311eb72 in QMetaObject::activate (sender=0x9525f78, m=0x31ef368, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#21 0x03124147 in QSingleShotTimer::timeout (this=0x9525f78) at .moc/release-shared/qtimer.moc:74
#22 0x0312426c in QSingleShotTimer::timerEvent (this=0x9525f78) at kernel/qtimer.cpp:294
#23 0x031188cf in QObject::event (this=0x9525f78, e=0xbf9c589c) at kernel/qobject.cpp:1120
#24 0x022a068c in QApplicationPrivate::notify_helper (this=0x915c990, receiver=0x9525f78, e=0xbf9c589c) at kernel/qapplication.cpp:3803
#25 0x022a84ce in QApplication::notify (this=0xbf9c5b8c, receiver=0x9525f78, e=0xbf9c589c) at kernel/qapplication.cpp:3393
#26 0x0552ffdd in KApplication::notify (this=0xbf9c5b8c, receiver=0x9525f78, event=0xbf9c589c) at /usr/src/debug/kdelibs-4.2.0/kdeui/kernel/kapplication.cpp:307
#27 0x031091c1 in QCoreApplication::notifyInternal (this=0xbf9c5b8c, receiver=0x9525f78, event=0xbf9c589c) at kernel/qcoreapplication.cpp:587
#28 0x03137081 in QCoreApplication::sendEvent () at ../../src/corelib/kernel/qcoreapplication.h:209
#29 QTimerInfoList::activateTimers (this=0x915fabc) at kernel/qeventdispatcher_unix.cpp:557
#30 0x031338a0 in timerSourceDispatch (source=0x915fa88) at kernel/qeventdispatcher_glib.cpp:160
#31 0x00e30238 in g_main_dispatch () at gmain.c:2144
#32 IA__g_main_context_dispatch (context=0x915e710) at gmain.c:2697
#33 0x00e338e3 in g_main_context_iterate (context=0x915e710, block=1, dispatch=1, self=0x915c050) at gmain.c:2778
#34 0x00e33aa1 in IA__g_main_context_iteration (context=0x915e710, may_block=1) at gmain.c:2841
#35 0x031337f8 in QEventDispatcherGlib::processEvents (this=0x915c588, flags={i = 4}) at kernel/qeventdispatcher_glib.cpp:319
#36 0x02339515 in QGuiEventDispatcherGlib::processEvents (this=0x915c588, flags={i = 4}) at kernel/qguieventdispatcher_glib.cpp:198
#37 0x0310788a in QEventLoop::processEvents (this=0xbf9c5ac0, flags={i = 4}) at kernel/qeventloop.cpp:143
#38 0x03107a4a in QEventLoop::exec (this=0xbf9c5ac0, flags={i = 0}) at kernel/qeventloop.cpp:194
#39 0x0310a105 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#40 0x022a0507 in QApplication::exec () at kernel/qapplication.cpp:3331
#41 0x0804dc47 in main (argc=0, argv=0x0) at /usr/src/debug/kdegraphics-4.2.0/okular/shell/main.cpp:81

Comment 9 Pino Toscano 2009-02-16 01:43:30 UTC
Hi John,

I've seen that backtrace already, and I think that I could have fixed it; although, if you could attach the file, I could double check that.
If the file is private, you can send it to me directly.
Comment 10 Pino Toscano 2009-02-16 12:10:21 UTC
Hi again John,

got your file (thanks!), and indeed I fixed it few days ago (r922601 on trunk/4.3, r922604 on branch/4.2). This means you just need to wait for KDE 4.2.1, that is going to be released at the start of March.
Changing the subject to make it slightly clear what it is about.
Comment 11 Aaron J. Seigo 2009-06-02 18:00:18 UTC
*** Bug 185763 has been marked as a duplicate of this bug. ***