[Okular-devel] [Bug 157001] New: okular crashes when recompiling already opened ps file (QBasicAtomic::operator!=)

Oliver Putz Regnaron at web.de
Thu Jan 31 01:07:19 CET 2008


------- 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=157001         
           Summary: okular crashes when recompiling already opened ps file
                    (QBasicAtomic::operator!=)
           Product: okular
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: okular-devel kde org
        ReportedBy: Regnaron web de


Version:           0.6.80 (using 4.00.60 (KDE 4.0.60 >= 20080129), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.23-gentoo-r3

Steps to reproduce:

1) Compile some *.ps file (I use some rather big file (~50Meg) and did not check if smaller files work too)
2) Open that file in okular
3) Recompile that file again (I use kile dvi->ps)
4) See okular crash

Note: When I run okular in Valgrind, it does not crash.

Backtrace:
Application: Okular (okular), signal SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb64db990 (LWP 22269)]
[New Thread 0xb1c18b90 (LWP 22676)]
[New Thread 0xb27e9b90 (LWP 22639)]
[KCrash handler]
#6  0xb4e6f7a6 in QBasicAtomic::operator!= (this=0x30000cb, x=1)
    at /usr/include/qt4/QtCore/qatomic.h:97
#7  0xb4ea00e0 in QMap<int, Okular::PagePrivate::PixmapObject>::detach (
    this=0x827c390) at /usr/include/qt4/QtCore/qmap.h:159
#8  0xb4ea0338 in QMap<int, Okular::PagePrivate::PixmapObject>::find (
    this=0x827c390, akey= 0xbffe9be8) at /usr/include/qt4/QtCore/qmap.h:551
#9  0xb4e9ed8e in Okular::PagePrivate::imageRotationDone (this=0x827c390, 
    job=0x82197b8)
    at /var/tmp/portage/kde-base/kdegraphics-9999.4/work/kdegraphics-9999.4/okular/core/page.cpp:84
#10 0xb4ea2628 in Okular::PageController::imageRotationDone (this=0x8183508, 
    j=0x82197b8)
    at /var/tmp/portage/kde-base/kdegraphics-9999.4/work/kdegraphics-9999.4/okular/core/pagecontroller.cpp:53
#11 0xb4ea26de in Okular::PageController::qt_metacall (this=0x8183508, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbffea12c)
    at /var/tmp/portage/kde-base/kdegraphics-9999.4/work/kdegraphics_build/okular/pagecontroller_p.moc:70
#12 0xb7e7a1f4 in QMetaObject::activate (sender=0x83bb108, 
    from_signal_index=6, to_signal_index=6, argv=<value optimized out>)
    at kernel/qobject.cpp:3081
#13 0xb7e7ad94 in QMetaObject::activate (sender=0x83bb108, m=0xb4d255c0, 
    local_signal_index=2, argv=0xbffea12c) at kernel/qobject.cpp:3140
#14 0xb4d16bb4 in ThreadWeaver::WeaverInterface::jobDone (this=0x83bb108, 
    _t1=0x82197b8)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/threadweaver/Weaver/WeaverInterface.moc:96
#15 0xb4d16cdb in ThreadWeaver::WeaverInterface::qt_metacall (this=0x83bb108, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbffea65c)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/threadweaver/Weaver/WeaverInterface.moc:72
#16 0xb4d170c2 in ThreadWeaver::Weaver::qt_metacall (this=0x83bb108, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbffea65c)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/threadweaver/Weaver/ThreadWeaver.moc:56
#17 0xb7e7a1f4 in QMetaObject::activate (sender=0x832ca38, 
    from_signal_index=6, to_signal_index=6, argv=<value optimized out>)
    at kernel/qobject.cpp:3081
#18 0xb7e7ad94 in QMetaObject::activate (sender=0x832ca38, m=0xb4d255c0, 
    local_signal_index=2, argv=0xbffea65c) at kernel/qobject.cpp:3140
#19 0xb4d16bb4 in ThreadWeaver::WeaverInterface::jobDone (this=0x832ca38, 
    _t1=0x82197b8)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/threadweaver/Weaver/WeaverInterface.moc:96
#20 0xb4d16cdb in ThreadWeaver::WeaverInterface::qt_metacall (this=0x832ca38, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x823a770)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/threadweaver/Weaver/WeaverInterface.moc:72
#21 0xb4d1795a in ThreadWeaver::WeaverImpl::qt_metacall (this=0x832ca38, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x823a770)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/threadweaver/Weaver/WeaverImpl.moc:68
#22 0xb7e752f9 in QMetaCallEvent::placeMetaCall (this=0x832baa0, 
    object=0x832ca38) at kernel/qobject.cpp:536
#23 0xb7e78017 in QObject::event (this=0x832ca38, e=0xb4ec5ff4)
    at kernel/qobject.cpp:1122
#24 0xb6a37e8a in QApplicationPrivate::notify_helper (this=0x8060488, 
    receiver=0x832ca38, e=0x832baa0) at kernel/qapplication.cpp:3556
#25 0xb6a3977a in QApplication::notify (this=0xbffeadb8, receiver=0x832ca38, 
    e=0x832baa0) at kernel/qapplication.cpp:3115
#26 0xb79e8b93 in KApplication::notify (this=0xbffeadb8, receiver=0x832ca38, 
    event=0x832baa0)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:311
#27 0xb7e66d7b in QCoreApplication::notifyInternal (this=0xbffeadb8, 
    receiver=0x832ca38, event=0x832baa0) at kernel/qcoreapplication.cpp:530
#28 0xb7e6821a in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
    event_type=0, data=0x8056e50) at kernel/qcoreapplication.h:200
#29 0xb7e6856d in QCoreApplication::sendPostedEvents (receiver=0x0, 
    event_type=0) at kernel/qcoreapplication.cpp:1001
#30 0xb6ac1aee in QEventDispatcherX11::processEvents (this=0x805fdc8, 
    flags= 0xbffead04)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:205
#31 0xb7e66191 in QEventLoop::processEvents (this=0xbffead70, 
    flags= 0xbffead38) at kernel/qeventloop.cpp:140
#32 0xb7e6629a in QEventLoop::exec (this=0xbffead70, flags= 0xbffead78)
    at kernel/qeventloop.cpp:186
#33 0xb7e68626 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:759
#34 0xb6a37487 in QApplication::exec () at kernel/qapplication.cpp:3053
#35 0x0804e6e5 in main (argc=560260, argv=0x815b9e0)
    at /var/tmp/portage/kde-base/kdegraphics-9999.4/work/kdegraphics-9999.4/okular/shell/main.cpp:60
#36 0xb66e9fdc in __libc_start_main (main=0x804e2e0 <main>, argc=6, 
    ubp_av=0xbffeaee4, init=0x80515d0 <__libc_csu_init>, 
    fini=0x80515c0 <__libc_csu_fini>, rtld_fini=0xb7f2a100 <_dl_fini>, 
    stack_end=0xbffeaedc) at libc-start.c:229
#37 0x0804e251 in _start ()
#0  0xffffe410 in __kernel_vsyscall ()


Konsole debug output:
GPL Ghostscript 8.60 (2007-08-01)
Copyright (C) 2007 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
okular(22765)/kio (KDirWatch) KDirWatch::setDirty: "KDirWatch-1" emitting dirty "/mnt/usb/Data/solutions/ass1/MainText/generalText.ps"
okular(22765)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=4 100x142 1 async == true
okular(22765)/okular (Spectre) GSGenerator::generatePixmap: receiving Async PixmapRequest (id: 4) (100x142), prio 2, pageNo 1
GPL Ghostscript 8.60 (2007-08-01)
Copyright (C) 2007 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
okular(22765)/kio (KDirWatch) KDirWatchPrivate::removeEntry: KDirWatchPrivate::removeEntry for "/mnt/usb/Data/solutions/ass1/MainText/generalText.ps" sub_entry: 0x0
okular(22765)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Cancelled INotify (fd 17, 2) for "/mnt/usb/Data/solutions/ass1/MainText/generalText.ps"
okular(22765)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Removed File "/mnt/usb/Data/solutions/ass1/MainText/generalText.ps" for "" ["KDirWatch-1"]
okular(22765)/kdecore (trader) KMimeTypeTrader::weightedOffers: KMimeTypeTrader::weightedOffers(  "application/postscript" , "okular/Generator"  )
okular(22765)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/postscript" ,  "okular/Generator"  :returning  1  offers
okular(22765)/okular (Spectre) GSGenerator::loadDocument: Page count: 38
okular(22765)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added File "/mnt/usb/Data/solutions/ass1/MainText/generalText.ps" for "" ["KDirWatch-1"]
okular(22765)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
okular(22765)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
okular(22765)/okular (app) Okular::Document::requestPixmaps: request id=3 403x571 0
okular(22765)/okular (app) Okular::Document::requestPixmaps: request id=3 403x571 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = okular path = <unknown> pid = 22765
sock_file=/home/kdesvn/.kde4/socket-Remus/kdeinit4__0
Warning: connect() failed: : Connection refused


More information about the Okular-devel mailing list