Bug 197025

Summary: Okular crash on opening pdf (similar to 197024, 197022 and 197019, different backtrace)
Product: [Applications] okular Reporter: mps <moabi2000>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mps 2009-06-18 16:22:37 UTC
Application that crashed: okular
Version of the application: 0.8.80
KDE Version: 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2))
Qt Version: 4.5.1
Operating System: Linux 2.6.29.5-186.fc11.i586 i686
Distribution: "Fedora release 11 (Leonidas)"

What I was doing when the application crashed:

Same as 197024, but with a different pdf file.

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[Current thread is 1 (Thread 0xb7ef9780 (LWP 17122))]

Thread 2 (Thread 0xb5122b70 (LWP 17123)):
[KCrash Handler]
#6  0x00cb3422 in __kernel_vsyscall ()
#7  0x00b167c1 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0x00b18092 in *__GI_abort () at abort.c:88
#9  0x00b5b25b in malloc_printerr (action=2, str=0x6 <Address 0x6 out of bounds>, ptr=0x9f48d08) at malloc.c:6201
#10 0x00b5efbb in *__GI___libc_free (mem=0x6) at malloc.c:3677
#11 0x002cf51d in ft_free (memory=0x9e68230, block=0x9f48d08) at builds/unix/ftsystem.c:158
#12 0x002d368a in ft_mem_free (memory=0x6, P=0x0) at /usr/src/debug/freetype-2.3.9/src/base/ftutil.c:171
#13 0x002d3b55 in ft_glyphslot_free_bitmap (slot=0x9f0c4c0) at /usr/src/debug/freetype-2.3.9/src/base/ftobjs.c:263
#14 0x002d66e3 in ft_glyphslot_clear (slot=<value optimized out>) at /usr/src/debug/freetype-2.3.9/src/base/ftobjs.c:309
#15 FT_Load_Glyph (slot=<value optimized out>) at /usr/src/debug/freetype-2.3.9/src/base/ftobjs.c:567
#16 0x0582e706 in SplashFTFont::makeGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) () from /usr/lib/libpoppler.so.4
#17 0x0582f63e in SplashFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) () from /usr/lib/libpoppler.so.4
#18 0x0582dcb6 in SplashFTFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) () from /usr/lib/libpoppler.so.4
#19 0x05822f40 in Splash::fillChar(double, double, int, SplashFont*) () from /usr/lib/libpoppler.so.4
#20 0x0575144e in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) () from /usr/lib/libpoppler.so.4
#21 0x0578f08c in Gfx::doShowText(GooString*) () from /usr/lib/libpoppler.so.4
#22 0x05792212 in Gfx::opShowSpaceText(Object*, int) () from /usr/lib/libpoppler.so.4
#23 0x05787116 in Gfx::execOp(Object*, Object*, int) () from /usr/lib/libpoppler.so.4
#24 0x0578771e in Gfx::go(int) () from /usr/lib/libpoppler.so.4
#25 0x0578a216 in Gfx::display(Object*, int) () from /usr/lib/libpoppler.so.4
#26 0x057cfe90 in Page::displaySlice(OutputDev*, double, double, int, int, int, int, int, int, int, int, Catalog*, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.4
#27 0x057d37e7 in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, int, int, int, int, int, int, int, int (*)(void*), void*, int (*)(Annot*, void*), void*) ()
   from /usr/lib/libpoppler.so.4
#28 0x01019338 in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const () from /usr/lib/libpoppler-qt4.so.3
#29 0x00fed598 in PDFPixmapGeneratorThread::run (this=0x9e7c230) at /usr/src/debug/kdegraphics-4.2.90/okular/generators/poppler/generator_pdf.cpp:1701
#30 0x023f221e in QThreadPrivate::start (arg=0x9e7c230) at thread/qthread_unix.cpp:189
#31 0x00115935 in start_thread (arg=0xb5122b70) at pthread_create.c:297
#32 0x00bc982e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7ef9780 (LWP 17122)):
#0  0x00cb3422 in __kernel_vsyscall ()
#1  0x00bbf276 in *__GI___poll (fds=0xc58ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x00cf4060 in _xcb_conn_wait (c=0x9b32818, cond=0x9b338ac, vector=0xbf963604, count=0xbf963608) at xcb_conn.c:306
#3  0x00cf45db in _xcb_out_send (c=0x9b32818, vector=0xbf963604, count=0xbf963608) at xcb_out.c:338
#4  0x00cf4977 in xcb_writev (c=0x9b32818, vector=0xbf963658, count=3, requests=324) at xcb_out.c:286
#5  0x0016cde9 in _XSend (dpy=0x9b4b2b0, 
    data=0x9f45ba8 "BBCJ\311\312\313\343\340\341\343\377\336\337\340\377\334\335\336\377\332\333\335\377\327\331\333\377\325\327\330\377\323\325\326\377\276\300\302\350@AAO\313\314\315\343\342\343\344\377\340\341\343\377\336\337\340\377\334\335\336\377\332\333\335\377\327\331\333\377\325\327\330\377\323\325\326\377\321\323\325\377\274\275\277\347\344\345\346\377\342\343\344\377\340\341\343\377\336\337\340\377\334\335\336\377\332\333\335\377\327\331\333\377\325\327\330\377\323\325\326\377\321\323\325\377\317\321\323\377\344\345\346\377\342\343\344\377\340\341\343\377\336\337\340\377\334\335\336\377\332\333\335\377\327\331\333\377\325\327\330\377\323\325\326\377\321\323\325\377\317\321\323\377\344\345\346\377\342\343\344\377\340\341\343\377\336\337\340\377\334\335\336\377\332\333\335\377"..., size=6424) at xcb_io.c:332
#6  0x001595e5 in SendZImage (dest_scanline_pad=<value optimized out>, dest_bits_per_pixel=<value optimized out>, req_yoffset=<value optimized out>, req_xoffset=<value optimized out>, 
    image=<value optimized out>, req=<value optimized out>, dpy=<value optimized out>) at PutImage.c:804
#7  PutImageRequest (dest_scanline_pad=<value optimized out>, dest_bits_per_pixel=<value optimized out>, req_yoffset=<value optimized out>, req_xoffset=<value optimized out>, 
    image=<value optimized out>, req=<value optimized out>, dpy=<value optimized out>) at PutImage.c:872
#8  PutSubImage (dest_scanline_pad=<value optimized out>, dest_bits_per_pixel=<value optimized out>, req_yoffset=<value optimized out>, req_xoffset=<value optimized out>, 
    image=<value optimized out>, req=<value optimized out>, dpy=<value optimized out>) at PutImage.c:910
#9  0x001597ab in XPutImage (dpy=0x9b4b2b0, d=121635353, gc=0x9f4d9a8, image=0x9f45b48, req_xoffset=0, req_yoffset=0, x=0, y=0, req_width=11, req_height=146) at PutImage.c:1029
#10 0x02a507c1 in QX11PixmapData::fromImage (this=0x9f0b9c0, img=@0xbf9662c0, flags={i = 20}) at image/qpixmap_x11.cpp:563
#11 0x02a3cc57 in QPixmap::fromImage (image=@0xbf9662c0, flags={i = 20}) at image/qpixmap.cpp:1954
#12 0x02a8a2fe in QPaintEngine::drawImage (this=0x9c6d0d8, r=@0xbf9664f0, image=@0xbf966694, sr=@0xbf966510, flags={i = 20}) at painting/qpaintengine.cpp:617
#13 0x02b6fe19 in QX11PaintEngine::drawImage (this=0x9c6d0d8, r=@0xbf9664f0, image=@0xbf966694, sr=@0xbf966510, flags={i = 20}) at painting/qpaintengine_x11.cpp:1865
#14 0x02aa0184 in QPainterPrivate::draw_helper (this=0x9f37cd0, originalPath=@0xbf9668ec, op=<value optimized out>) at painting/qpainter.cpp:476
#15 0x02aa6349 in QPainter::drawPath (this=0xbf96982c, path=@0xbf9668ec) at painting/qpainter.cpp:3195
#16 0x02aa8164 in QPainter::drawRoundedRect (this=0xbf96982c, rect=@0xbf966ae0, xRadius=2, yRadius=2, mode=Qt::AbsoluteSize) at painting/qpainter.cpp:4051
#17 0x00e17ec2 in OxygenStyle::renderScrollBarHandle (this=0x9b59898, p=0xbf96982c, r=@0xbf968a04, pal=@0xbf968af4, orientation=Qt::Vertical, hover=false)
    at /usr/src/debug/kdebase-runtime-4.2.90/kstyles/oxygen/oxygen.cpp:2540
#18 0x00e20af0 in OxygenStyle::drawKStylePrimitive (this=0x9b59898, widgetType=KStyle::WT_ScrollBar, primitive=8, opt=0xbf968e34, r=@0xbf968a04, pal=@0xbf968af4, flags={i = 65537}, p=0xbf96982c, 
    widget=0x9d67138, kOpt=0x0) at /usr/src/debug/kdebase-runtime-4.2.90/kstyles/oxygen/oxygen.cpp:1022
#19 0x03f62366 in KStyle::drawControl (this=0x9b59898, element=QStyle::CE_ScrollBarSlider, option=0xbf968e34, p=0xbf96982c, widget=0x9d67138)
    at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kstyle.cpp:2257
#20 0x00e1409b in OxygenStyle::drawControl (this=0x9b59898, element=QStyle::CE_ScrollBarSlider, option=0xbf968e34, p=0xbf96982c, widget=0x9d67138)
    at /usr/src/debug/kdebase-runtime-4.2.90/kstyles/oxygen/oxygen.cpp:395
#21 0x02c9b430 in QCommonStyle::drawComplexControl (this=0x9b59898, cc=QStyle::CC_ScrollBar, opt=0xbf9697c4, p=0xbf96982c, widget=0x9d67138) at styles/qcommonstyle.cpp:3446
#22 0x03f5e74c in KStyle::drawComplexControl (this=0x9b59898, cc=QStyle::CC_ScrollBar, opt=0xbf9697c4, p=0xbf96982c, w=0x9d67138) at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kstyle.cpp:3548
#23 0x00e13cb6 in OxygenStyle::drawComplexControl (this=0x9b59898, control=QStyle::CC_ScrollBar, option=0xbf9697c4, painter=0xbf96982c, widget=0x9d67138)
    at /usr/src/debug/kdebase-runtime-4.2.90/kstyles/oxygen/oxygen.cpp:302
#24 0x02dff618 in QScrollBar::paintEvent (this=0x9d67138) at widgets/qscrollbar.cpp:541
#25 0x029c4f5a in QWidget::event (this=0x9d67138, event=0xbf969cd4) at kernel/qwidget.cpp:7659
#26 0x02d55324 in QAbstractSlider::event (this=0x9d67138, e=0xbf969cd4) at widgets/qabstractslider.cpp:855
#27 0x02e0005a in QScrollBar::event (this=0x9d67138, event=0xbf969cd4) at widgets/qscrollbar.cpp:521
#28 0x02970444 in QApplicationPrivate::notify_helper (this=0x9b2ab00, receiver=0x9d67138, e=0xbf969cd4) at kernel/qapplication.cpp:4057
#29 0x02977abe in QApplication::notify (this=0xbf96b628, receiver=0x9d67138, e=0xbf969cd4) at kernel/qapplication.cpp:4022
#30 0x03f4f3da in KApplication::notify (this=0xbf96b628, receiver=0x9d67138, event=0xbf969cd4) at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kapplication.cpp:302
#31 0x024e1fdb in QCoreApplication::notifyInternal (this=0xbf96b628, receiver=0x9d67138, event=0xbf969cd4) at kernel/qcoreapplication.cpp:610
#32 0x029cd6c5 in QCoreApplication::sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:216
#33 QWidgetPrivate::drawWidget (event=<value optimized out>, receiver=<value optimized out>) at kernel/qwidget.cpp:5052
#34 0x029cdeed in QWidgetPrivate::paintSiblingsRecursive (this=0x9d5e540, pdev=0x9b78534, siblings=@0x9d5e54c, index=1, rgn=@0xbf96a088, offset=@0xbf96a080, flags=4, sharedPainter=0x0, 
    backingStore=0x9b61d88) at kernel/qwidget.cpp:5162
#35 0x029cd2b6 in QWidgetPrivate::drawWidget (this=0x9d5e540, pdev=0x9b78534, rgn=@0xbf96a088, offset=@0xbf96a080, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9b61d88)
    at kernel/qwidget.cpp:5101
#36 0x029cdeed in QWidgetPrivate::paintSiblingsRecursive (this=0x9d5d518, pdev=0x9b78534, siblings=@0x9d5d524, index=51, rgn=@0xbf96a2a8, offset=@0xbf96a2a0, flags=4, sharedPainter=0x0, 
    backingStore=0x9b61d88) at kernel/qwidget.cpp:5162
#37 0x029cd2b6 in QWidgetPrivate::drawWidget (this=0x9d5d518, pdev=0x9b78534, rgn=@0xbf96a2a8, offset=@0xbf96a2a0, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9b61d88)
    at kernel/qwidget.cpp:5101
#38 0x029cdeed in QWidgetPrivate::paintSiblingsRecursive (this=0x9c7bc60, pdev=0x9b78534, siblings=@0x9c7bc6c, index=5, rgn=@0xbf96a4c8, offset=@0xbf96a4c0, flags=4, sharedPainter=0x0, 
    backingStore=0x9b61d88) at kernel/qwidget.cpp:5162
#39 0x029cd2b6 in QWidgetPrivate::drawWidget (this=0x9c7bc60, pdev=0x9b78534, rgn=@0xbf96a4c8, offset=@0xbf96a4c0, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9b61d88)
    at kernel/qwidget.cpp:5101
#40 0x029cdeed in QWidgetPrivate::paintSiblingsRecursive (this=0x9c34828, pdev=0x9b78534, siblings=@0x9c34834, index=3, rgn=@0xbf96a6e8, offset=@0xbf96a6e0, flags=4, sharedPainter=0x0, 
    backingStore=0x9b61d88) at kernel/qwidget.cpp:5162
#41 0x029cd2b6 in QWidgetPrivate::drawWidget (this=0x9c34828, pdev=0x9b78534, rgn=@0xbf96a6e8, offset=@0xbf96a6e0, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9b61d88)
    at kernel/qwidget.cpp:5101
#42 0x029cdeed in QWidgetPrivate::paintSiblingsRecursive (this=0x9bf3b00, pdev=0x9b78534, siblings=@0x9bf3b0c, index=2, rgn=@0xbf96a908, offset=@0xbf96a900, flags=4, sharedPainter=0x0, 
    backingStore=0x9b61d88) at kernel/qwidget.cpp:5162
#43 0x029cd2b6 in QWidgetPrivate::drawWidget (this=0x9bf3b00, pdev=0x9b78534, rgn=@0xbf96a908, offset=@0xbf96a900, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9b61d88)
    at kernel/qwidget.cpp:5101
#44 0x029cdeed in QWidgetPrivate::paintSiblingsRecursive (this=0x9b66910, pdev=0x9b78534, siblings=@0x9b6691c, index=22, rgn=@0xbf96abe0, offset=@0x9b61dac, flags=4, sharedPainter=0x0, 
    backingStore=0x9b61d88) at kernel/qwidget.cpp:5162
#45 0x029cd2b6 in QWidgetPrivate::drawWidget (this=0x9b66910, pdev=0x9b78534, rgn=@0xbf96abe0, offset=@0x9b61dac, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9b61d88)
    at kernel/qwidget.cpp:5101
#46 0x02b89168 in QWidgetBackingStore::sync (this=0x9b61d88) at painting/qbackingstore.cpp:1268
#47 0x029be556 in QWidgetPrivate::syncBackingStore (this=0x9b66910) at kernel/qwidget.cpp:1602
#48 0x029c5734 in QWidget::event (this=0x9b8a5f0, event=0x9e60cd0) at kernel/qwidget.cpp:7799
#49 0x02dbf377 in QMainWindow::event (this=0x9b8a5f0, event=0x9e60cd0) at widgets/qmainwindow.cpp:1402
#50 0x04034854 in KMainWindow::event (this=0x9b8a5f0, ev=0x9e60cd0) at /usr/src/debug/kdelibs-4.2.90/kdeui/widgets/kmainwindow.cpp:1094
#51 0x0407b95f in KXmlGuiWindow::event (this=0x9b8a5f0, ev=0x9e60cd0) at /usr/src/debug/kdelibs-4.2.90/kdeui/xmlgui/kxmlguiwindow.cpp:131
#52 0x02970444 in QApplicationPrivate::notify_helper (this=0x9b2ab00, receiver=0x9b8a5f0, e=0x9e60cd0) at kernel/qapplication.cpp:4057
#53 0x02977abe in QApplication::notify (this=0xbf96b628, receiver=0x9b8a5f0, e=0x9e60cd0) at kernel/qapplication.cpp:4022
#54 0x03f4f3da in KApplication::notify (this=0xbf96b628, receiver=0x9b8a5f0, event=0x9e60cd0) at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kapplication.cpp:302
#55 0x024e1fdb in QCoreApplication::notifyInternal (this=0xbf96b628, receiver=0x9b8a5f0, event=0x9e60cd0) at kernel/qcoreapplication.cpp:610
#56 0x024e2ad8 in QCoreApplication::sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#57 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1247
#58 0x024e2cad in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#59 0x0250d0af in QCoreApplication::sendPostedEvents () at kernel/qcoreapplication.h:218
#60 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:209
#61 0x00d44d78 in g_main_dispatch (context=<value optimized out>) at gmain.c:1814
#62 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2367
#63 0x00d48310 in g_main_context_iterate (context=0x9b2ce98, block=<value optimized out>, dispatch=1, self=0x9b2acc0) at gmain.c:2445
#64 0x00d48443 in IA__g_main_context_iteration (context=0x9b2ce98, may_block=1) at gmain.c:2508
#65 0x0250ccdc in QEventDispatcherGlib::processEvents (this=0x9b2aac0, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:324
#66 0x02a0f305 in QGuiEventDispatcherGlib::processEvents (this=0x9b2aac0, flags={i = 36}) at kernel/qguieventdispatcher_glib.cpp:202
#67 0x024e05c9 in QEventLoop::processEvents (this=0xbf96b524, flags={i = 36}) at kernel/qeventloop.cpp:149
#68 0x024e0a12 in QEventLoop::exec (this=0xbf96b524, flags={i = 0}) at kernel/qeventloop.cpp:200
#69 0x024e2d6f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#70 0x029702c7 in QApplication::exec () at kernel/qapplication.cpp:3526
#71 0x0804e559 in main (argc=2, argv=0xbf96b814) at /usr/src/debug/kdegraphics-4.2.90/okular/shell/main.cpp:81

Reported using DrKonqi
Comment 1 Pino Toscano 2009-06-18 16:30:22 UTC
Please stop reporting crashes for now, as it seems the problem is not in Okular, but something low-lever.
Comment 2 mps 2009-06-18 17:15:34 UTC
Ok, thanks Pino. FWIW this is a typical valgrind output I got (though I couldn't get a crash running within valgrind):

[user@localhost Download]$ valgrind --leak-check=full --track-origins=yes okular fulltext\(62\) 2>&1 | tee valgrind_okular6.log                                              
==18242== Memcheck, a memory error detector.                                        
==18242== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.           
==18242== Using LibVEX rev 1884, a library for dynamic binary translation.          
==18242== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.                 
==18242== Using valgrind-3.4.1, a dynamic binary instrumentation framework.         
==18242== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.           
==18242== For more details, rerun with: -v                                          
==18242==                                                                           
==18242== Conditional jump or move depends on uninitialised value(s)                
==18242==    at 0x2B6FA60: (within /usr/lib/libQtGui.so.4.5.1)                      
==18242==    by 0x2B79D12: (within /usr/lib/libQtGui.so.4.5.1)                      
==18242==    by 0x2A961C3: (within /usr/lib/libQtGui.so.4.5.1)                      
==18242==    by 0x2A9628B: (within /usr/lib/libQtGui.so.4.5.1)                      
==18242==    by 0x2AA1D8E: QPainter::drawEllipse(QRect const&) (in /usr/lib/libQtGui.so.4.5.1)                                                                            
==18242==    by 0x4FD9AFD: OxygenStyleHelper::hole(QColor const&, double, int) (qpainter.h:678)                                                                           
==18242==    by 0x4FE173F: OxygenStyle::renderHole(QPainter*, QColor const&, QRect const&, bool, bool, QFlags<TileSet::Tile>) const (oxygen.cpp:2440)                     
==18242==    by 0x4FEEFDD: OxygenStyle::drawKStylePrimitive(KStyle::WidgetType, int, QStyleOption const*, QRect const&, QPalette const&, QFlags<QStyle::StateFlag>, QPainter*, QWidget const*, KStyle::Option*) const (oxygen.cpp:2156)                        
==18242==    by 0x421F1D2: KStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const (in /usr/lib/libkdeui.so.5.3.0)          
==18242==    by 0x2C8B05C: QCommonStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const (in /usr/lib/libQtGui.so.4.5.1)        
==18242==    by 0x42191DB: KStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const (in /usr/lib/libkdeui.so.5.3.0)              
==18242==    by 0x4FE209A: OxygenStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const (oxygen.cpp:395)                        
==18242==  Uninitialised value was created by a heap allocation                      
==18242==    at 0x40068AD: operator new(unsigned int) (vg_replace_malloc.c:224)      
==18242==    by 0x2A9B124: QPainter::begin(QPaintDevice*) (in /usr/lib/libQtGui.so.4.5.1)                                                                                 
==18242==    by 0x2A9B327: QPainter::QPainter(QPaintDevice*) (in /usr/lib/libQtGui.so.4.5.1)                                                                              
==18242==    by 0x4FD9A2E: OxygenStyleHelper::hole(QColor const&, double, int) (helper.cpp:504)                                                                           
==18242==    by 0x4FE173F: OxygenStyle::renderHole(QPainter*, QColor const&, QRect const&, bool, bool, QFlags<TileSet::Tile>) const (oxygen.cpp:2440)                     
==18242==    by 0x4FEEFDD: OxygenStyle::drawKStylePrimitive(KStyle::WidgetType, int, QStyleOption const*, QRect const&, QPalette const&, QFlags<QStyle::StateFlag>, QPainter*, QWidget const*, KStyle::Option*) const (oxygen.cpp:2156)                        
==18242==    by 0x421F1D2: KStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const (in /usr/lib/libkdeui.so.5.3.0)          
==18242==    by 0x2C8B05C: QCommonStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const (in /usr/lib/libQtGui.so.4.5.1)        
==18242==    by 0x42191DB: KStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const (in /usr/lib/libkdeui.so.5.3.0)              
==18242==    by 0x4FE209A: OxygenStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const (oxygen.cpp:395)                        
==18242==    by 0x2DA1731: QFrame::drawFrame(QPainter*) (in /usr/lib/libQtGui.so.4.5.1)                                                                                   
==18242==    by 0x2DA17CA: QFrame::paintEvent(QPaintEvent*) (in /usr/lib/libQtGui.so.4.5.1)                                                                               
==18242==                                                                            
==18242== Conditional jump or move depends on uninitialised value(s)                 
==18242==    at 0x50D122F: PageView::resizeEvent(QResizeEvent*) (pageview.cpp:1279)  
==18242==    by 0x29C4F91: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.5.1)   
==18242==    by 0x2DA18B2: QFrame::event(QEvent*) (in /usr/lib/libQtGui.so.4.5.1)    
==18242==    by 0x2E404F3: QAbstractScrollArea::viewportEvent(QEvent*) (in /usr/lib/libQtGui.so.4.5.1)                                                                    
==18242==    by 0x2E42AF4: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x24E1189: QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.5.1)                                     
==18242==    by 0x297041B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.5.1)                                                          
==18242==    by 0x2977ABD: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.5.1)                                                                        
==18242==    by 0x42063D9: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.3.0)                                                                        
==18242==    by 0x24E1FDA: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.5.1)                                                           
==18242==    by 0x2A050A0: QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) (in /usr/lib/libQtGui.so.4.5.1)                                                      
==18242==    by 0x29C44FF: QWidget::setGeometry(QRect const&) (in /usr/lib/libQtGui.so.4.5.1)                                                                             
==18242==  Uninitialised value was created by a heap allocation                      
==18242==    at 0x40068AD: operator new(unsigned int) (vg_replace_malloc.c:224)      
==18242==    by 0x50D7A58: PageView::PageView(QWidget*, Okular::Document*) (pageview.cpp:308)                                                                             
==18242==    by 0x507F2B4: Part::Part(QWidget*, QObject*, QList<QVariant> const&) (part.cpp:343)                                                                          
==18242==    by 0x508A371: QObject* KPluginFactory::createPartInstance<Part>(QWidget*, QObject*, QList<QVariant> const&) (kpluginfactory.h:467)                           
==18242==    by 0x27C1D0A: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (in /usr/lib/libkdecore.so.5.3.0)              
==18242==    by 0x8050325: Shell::init() (kpluginfactory.h:491)                      
==18242==    by 0x8050C14: Shell::Shell(KCmdLineArgs*, int) (shell.cpp:74)           
==18242==    by 0x804E653: main (main.cpp:75)                                        
==18242==                                                                            
==18242== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 119 from 3)           
==18242== malloc/free: in use at exit: 983,464 bytes in 6,691 blocks.                
==18242== malloc/free: 305,641 allocs, 298,950 frees, 160,741,346 bytes allocated.   
==18242== For counts of detected errors, rerun with: -v                              
==18242== searching for pointers to 6,691 not-freed blocks.                          
==18242== checked 1,697,500 bytes.                                                   
==18242==                                                                            
==18242==                                                                            
==18242== 744 bytes in 3 blocks are possibly lost in loss record 37 of 151           
==18242==    at 0x4004CA4: memalign (vg_replace_malloc.c:460)                        
==18242==    by 0x4004D6E: posix_memalign (vg_replace_malloc.c:569)                  
==18242==    by 0xD6247D: (within /lib/libglib-2.0.so.0.2000.3)                      
==18242==    by 0xD633FC: g_slice_alloc (in /lib/libglib-2.0.so.0.2000.3)            
==18242==    by 0xD203B8: g_array_sized_new (in /lib/libglib-2.0.so.0.2000.3)        
==18242==    by 0xD204C6: g_array_new (in /lib/libglib-2.0.so.0.2000.3)              
==18242==    by 0xD6F40E: g_static_private_set (in /lib/libglib-2.0.so.0.2000.3)     
==18242==    by 0xD2DFD6: g_get_filename_charsets (in /lib/libglib-2.0.so.0.2000.3)  
==18242==    by 0xD2E050: (within /lib/libglib-2.0.so.0.2000.3)                      
==18242==    by 0xD6F6A9: g_thread_init_glib (in /lib/libglib-2.0.so.0.2000.3)       
==18242==    by 0x3DF4C6: g_thread_init (in /lib/libgthread-2.0.so.0.2000.3)         
==18242==    by 0x250D733: QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(_GMainContext*) (in /usr/lib/libQtCore.so.4.5.1)                                      
==18242==                                                                            
==18242==                                                                            
==18242== 3,592 (512 direct, 3,080 indirect) bytes in 2 blocks are definitely lost in loss record 42 of 151                                                               
==18242==    at 0x4007070: realloc (vg_replace_malloc.c:429)                         
==18242==    by 0x387F26: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x3889AF: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x38910B: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x38932F: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x37B6A7: FcDefaultSubstitute (in /usr/lib/libfontconfig.so.1.3.0)   
==18242==    by 0x2BB6056: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2BB799A: QFontDatabase::load(QFontPrivate const*, int) (in /usr/lib/libQtGui.so.4.5.1)                                                                  
==18242==    by 0x2B8F51F: QFontPrivate::engineForScript(int) const (in /usr/lib/libQtGui.so.4.5.1)                                                                       
==18242==    by 0x2BCA87A: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2BD696B: QTextLine::layout_helper(int) (in /usr/lib/libQtGui.so.4.5.1)                                                                                  
==18242==    by 0x2BD7FE4: QTextLine::setNumColumns(int) (in /usr/lib/libQtGui.so.4.5.1)                                                                                  
==18242==                                                                            
==18242==                                                                            
==18242== 33,143 (12 direct, 33,131 indirect) bytes in 1 blocks are definitely lost in loss record 54 of 151                                                              
==18242==    at 0x4006F3D: malloc (vg_replace_malloc.c:207)                          
==18242==    by 0x2CF4EC: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x2D364A: ft_mem_qalloc (in /usr/lib/libfreetype.so.6.3.20)          
==18242==    by 0x2D5122: ft_mem_alloc (in /usr/lib/libfreetype.so.6.3.20)           
==18242==    by 0x2D7647: FT_Add_Module (in /usr/lib/libfreetype.so.6.3.20)          
==18242==    by 0x2CF856: FT_Add_Default_Modules (in /usr/lib/libfreetype.so.6.3.20) 
==18242==    by 0x2CF8CE: FT_Init_FreeType (in /usr/lib/libfreetype.so.6.3.20)       
==18242==    by 0x2C6AEDF: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2C6B332: QFontEngineFT::init(QFontEngine::FaceId, bool, QFontEngineFT::GlyphFormat) (in /usr/lib/libQtGui.so.4.5.1)                                     
==18242==    by 0x2C6603B: QFontEngineX11FT::QFontEngineX11FT(_FcPattern*, QFontDef const&, int) (in /usr/lib/libQtGui.so.4.5.1)                                          
==18242==    by 0x2BB0948: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2BB5AF7: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==                                                                            
==18242==                                                                            
==18242== 32 bytes in 1 blocks are possibly lost in loss record 65 of 151            
==18242==    at 0x4007070: realloc (vg_replace_malloc.c:429)                         
==18242==    by 0x2CF593: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x2D5253: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.20)        
==18242==    by 0x2D5A2E: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.20)         
==18242==    by 0x3111B6: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x313305: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x3107F0: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x314B03: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x2D6A32: FT_Load_Glyph (in /usr/lib/libfreetype.so.6.3.20)          
==18242==    by 0x2C6BBD9: QFontEngineFT::loadGlyph(QFontEngineFT::QGlyphSet*, unsigned int, QFontEngineFT::GlyphFormat, bool) const (in /usr/lib/libQtGui.so.4.5.1)      
==18242==    by 0x2C6D771: QFontEngineFT::recalcAdvances(QGlyphLayout*, QFlags<QTextEngine::ShaperFlag>) const (in /usr/lib/libQtGui.so.4.5.1)                            
==18242==    by 0x2B9FD29: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==                                                                            
==18242==                                                                            
==18242== 216 bytes in 1 blocks are definitely lost in loss record 99 of 151         
==18242==    at 0x4006F3D: malloc (vg_replace_malloc.c:207)                          
==18242==    by 0x165E52: _XimOpenIM (in /usr/lib/libX11.so.6.2.0)                   
==18242==    by 0x165C97: _XimRegisterIMInstantiateCallback (in /usr/lib/libX11.so.6.2.0)                                                                                 
==18242==    by 0x1491B7: XRegisterIMInstantiateCallback (in /usr/lib/libX11.so.6.2.0)                                                                                    
==18242==    by 0x2F9A536: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F993D0: QInputContextFactory::create(QString const&, QObject*) (in /usr/lib/libQtGui.so.4.5.1)                                                         
==18242==    by 0x501C351: QMultiInputContext::QMultiInputContext() (qmultiinputcontext.cpp:101)                                                                          
==18242==    by 0x501CDAD: QMultiInputContextPlugin::create(QString const&) (qmultiinputcontextplugin.cpp:83)                                                             
==18242==    by 0x2F99407: QInputContextFactory::create(QString const&, QObject*) (in /usr/lib/libQtGui.so.4.5.1)                                                         
==18242==    by 0x2970119: QApplication::inputContext() const (in /usr/lib/libQtGui.so.4.5.1)                                                                             
==18242==    by 0x29B93D7: QWidgetPrivate::inputContext() const (in /usr/lib/libQtGui.so.4.5.1)                                                                           
==18242==    by 0x29BCC5A: QWidget::inputContext() (in /usr/lib/libQtGui.so.4.5.1)   
==18242==                                                                            
==18242==                                                                            
==18242== 248 (128 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 100 of 151                                                                  
==18242==    at 0x4006F3D: malloc (vg_replace_malloc.c:207)                          
==18242==    by 0x387E81: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x3889AF: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x388AC9: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x38E1EF: (within /usr/lib/libfontconfig.so.1.3.0)                   
==18242==    by 0x26471C: (within /lib/libexpat.so.1.5.2)                            
==18242==    by 0x265970: (within /lib/libexpat.so.1.5.2)                            
==18242==    by 0x266670: (within /lib/libexpat.so.1.5.2)                            
==18242==    by 0x267AC9: (within /lib/libexpat.so.1.5.2)                            
==18242==    by 0x25E52B: XML_ParseBuffer (in /lib/libexpat.so.1.5.2)                
==18242==    by 0x38C4BA: FcConfigParseAndLoad (in /usr/lib/libfontconfig.so.1.3.0)  
==18242==    by 0x38C803: FcConfigParseAndLoad (in /usr/lib/libfontconfig.so.1.3.0)  
==18242==                                                                            
==18242==                                                                            
==18242== 1,064 bytes in 16 blocks are definitely lost in loss record 120 of 151     
==18242==    at 0x4006F3D: malloc (vg_replace_malloc.c:207)                          
==18242==    by 0x1798C7: (within /usr/lib/libX11.so.6.2.0)                          
==18242==    by 0x12A030: XCreateOC (in /usr/lib/libX11.so.6.2.0)                    
==18242==    by 0x11DEEE: XCreateFontSet (in /usr/lib/libX11.so.6.2.0)               
==18242==    by 0x2F99FC4: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F9A0C2: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F9B5EE: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F9B41B: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x165CE7: _XimRegisterIMInstantiateCallback (in /usr/lib/libX11.so.6.2.0)                                                                                 
==18242==    by 0x1491B7: XRegisterIMInstantiateCallback (in /usr/lib/libX11.so.6.2.0)                                                                                    
==18242==    by 0x2F9A536: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F993D0: QInputContextFactory::create(QString const&, QObject*) (in /usr/lib/libQtGui.so.4.5.1)                                                         
==18242==                                                                            
==18242==                                                                            
==18242== 1,208 bytes in 7 blocks are definitely lost in loss record 124 of 151      
==18242==    at 0x4006F3D: malloc (vg_replace_malloc.c:207)                          
==18242==    by 0x11D09C: XListFontsWithInfo (in /usr/lib/libX11.so.6.2.0)           
==18242==    by 0x1799F0: (within /usr/lib/libX11.so.6.2.0)                          
==18242==    by 0x12A030: XCreateOC (in /usr/lib/libX11.so.6.2.0)                    
==18242==    by 0x11DEEE: XCreateFontSet (in /usr/lib/libX11.so.6.2.0)               
==18242==    by 0x2F99FC4: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F9A0C2: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F9B5EE: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x2F9B41B: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==    by 0x165CE7: _XimRegisterIMInstantiateCallback (in /usr/lib/libX11.so.6.2.0)                                                                                 
==18242==    by 0x1491B7: XRegisterIMInstantiateCallback (in /usr/lib/libX11.so.6.2.0)                                                                                    
==18242==    by 0x2F9A536: (within /usr/lib/libQtGui.so.4.5.1)                       
==18242==                                                                            
==18242==                                                                            
==18242== 22,384 bytes in 2 blocks are possibly lost in loss record 143 of 151       
==18242==    at 0x4006F3D: malloc (vg_replace_malloc.c:207)                          
==18242==    by 0x2CF4EC: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x2D364A: ft_mem_qalloc (in /usr/lib/libfreetype.so.6.3.20)          
==18242==    by 0x2D5122: ft_mem_alloc (in /usr/lib/libfreetype.so.6.3.20)           
==18242==    by 0x2D5280: ft_mem_qrealloc (in /usr/lib/libfreetype.so.6.3.20)        
==18242==    by 0x2D5A2E: ft_mem_realloc (in /usr/lib/libfreetype.so.6.3.20)         
==18242==    by 0x309A87: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x30CB82: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x2E3A67: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x2D5738: (within /usr/lib/libfreetype.so.6.3.20)                    
==18242==    by 0x2D7E08: FT_Open_Face (in /usr/lib/libfreetype.so.6.3.20)           
==18242==    by 0x2D8FDE: FT_New_Face (in /usr/lib/libfreetype.so.6.3.20)            
==18242==                                                                            
==18242==                                                                            
==18242== 73,680 bytes in 8 blocks are possibly lost in loss record 147 of 151       
==18242==    at 0x4004E5C: calloc (vg_replace_malloc.c:397)                          
==18242==    by 0x2459A4C: (within /usr/lib/libQtCore.so.4.5.1)                      
==18242==    by 0x24592A8: (within /usr/lib/libQtCore.so.4.5.1)                      
==18242==    by 0x245B981: (within /usr/lib/libQtCore.so.4.5.1)
==18242==    by 0x245990F: (within /usr/lib/libQtCore.so.4.5.1)
==18242==    by 0x245DAB1: (within /usr/lib/libQtCore.so.4.5.1)
==18242==    by 0x24635D3: qHBNewFace(void*, HB_Error (*)(void*, unsigned int, unsigned char*, unsigned int*)) (in /usr/lib/libQtCore.so.4.5.1)
==18242==    by 0x2C6AF9F: (within /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2C6B332: QFontEngineFT::init(QFontEngine::FaceId, bool, QFontEngineFT::GlyphFormat) (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2C6603B: QFontEngineX11FT::QFontEngineX11FT(_FcPattern*, QFontDef const&, int) (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2BB0948: (within /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2BB5AF7: (within /usr/lib/libQtGui.so.4.5.1)
==18242==
==18242==
==18242== 610,598 (116 direct, 610,482 indirect) bytes in 1 blocks are definitely lost in loss record 149 of 151
==18242==    at 0x40068AD: operator new(unsigned int) (vg_replace_malloc.c:224)
==18242==    by 0x2BB788B: QFontDatabase::load(QFontPrivate const*, int) (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2B8F51F: QFontPrivate::engineForScript(int) const (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2BCA87A: (within /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2BD696B: QTextLine::layout_helper(int) (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2BD7FE4: QTextLine::setNumColumns(int) (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2BD8070: QTextLayout::endLayout() (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2DB1DC9: (within /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2DB26B7: (within /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x2DB293E: QLineEdit::QLineEdit(QWidget*) (in /usr/lib/libQtGui.so.4.5.1)
==18242==    by 0x42E7A35: KLineEdit::KLineEdit(QWidget*) (in /usr/lib/libkdeui.so.5.3.0)
==18242==    by 0x50BA758: KTreeViewSearchLine::KTreeViewSearchLine(QWidget*, QTreeView*) (ktreeviewsearchline.cpp:210)
==18242==
==18242== LEAK SUMMARY:
==18242==    definitely lost: 3,256 bytes in 29 blocks.
==18242==    indirectly lost: 646,813 bytes in 1,113 blocks.
==18242==      possibly lost: 96,840 bytes in 14 blocks.
==18242==    still reachable: 236,555 bytes in 5,535 blocks.
==18242==         suppressed: 0 bytes in 0 blocks.
==18242== Reachable blocks (those to which a pointer was found) are not shown.
==18242== To see them, rerun with: --leak-check=full --show-reachable=yes
[user@localhost Download]$
Comment 3 Dario Andres 2009-06-19 15:49:56 UTC
*** Bug 197024 has been marked as a duplicate of this bug. ***
Comment 4 Pino Toscano 2009-12-26 18:35:08 UTC

*** This bug has been marked as a duplicate of bug 196207 ***