Bug 231244 - crash when opening large pdf
Summary: crash when opening large pdf
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 18:50 UTC by Sebastian Oliva
Modified: 2010-03-19 23:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Oliva 2010-03-18 18:50:52 UTC
Application that crashed: okular
Version of the application: 0.9.1
KDE Version: 4.3.1 (KDE 4.3.1) "release 6"
Qt Version: 4.5.3
Operating System: Linux 2.6.31.12-0.1-default i686
Distribution: "openSUSE 11.2 (i586)"

What I was doing when the application crashed:
I opened a large PDF file and it crashed before opening it

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

Thread 2 (Thread 0xb2037b70 (LWP 24567)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb60800cf in raise () from /lib/libc.so.6
#8  0xb60819e7 in abort () from /lib/libc.so.6
#9  0xb60c2730 in ?? () from /lib/libc.so.6
#10 0xb60c53ad in ?? () from /lib/libc.so.6
#11 0xb60c70ba in malloc () from /lib/libc.so.6
#12 0xb59953db in ft_alloc () from /usr/lib/libfreetype.so.6
#13 0xb599975a in ft_mem_qalloc () from /usr/lib/libfreetype.so.6
#14 0xb599b346 in ft_mem_alloc () from /usr/lib/libfreetype.so.6
#15 0xb599b6f7 in FT_New_Library () from /usr/lib/libfreetype.so.6
#16 0xb599579e in FT_Init_FreeType () from /usr/lib/libfreetype.so.6
#17 0xb21d3658 in SplashFTFontEngine::init(int, int) () from /usr/lib/libpoppler.so.5
#18 0xb21d4e44 in SplashFontEngine::SplashFontEngine(int, int, int) () from /usr/lib/libpoppler.so.5
#19 0xb20dd1cc in SplashOutputDev::startDoc(XRef*) () from /usr/lib/libpoppler.so.5
#20 0xb2277beb in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const () from /usr/lib/libpoppler-qt4.so.3
#21 0xb3d84d5e in ?? () from /usr/lib/kde4/okularGenerator_poppler.so
#22 0xb6c8b623 in ?? () from /usr/lib/libQtCore.so.4
#23 0xb5ffc6e5 in start_thread () from /lib/libpthread.so.0
#24 0xb5ffc600 in ?? () from /lib/libpthread.so.0

Thread 1 (Thread 0xb573b700 (LWP 24564)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb61355e3 in ?? () from /lib/libc.so.6
#2  0xb60c8871 in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

This bug may be a duplicate of or related to bug 197025

Reported using DrKonqi
Comment 1 Albert Astals Cid 2010-03-18 20:05:35 UTC
Please attach or link to such pdf file
Comment 2 Sebastian Oliva 2010-03-18 21:11:02 UTC
the PDF is freely available here: http://www.cnam.fr/lipsor/eng/data/the-image-of-the-future.pdf
Comment 3 Albert Astals Cid 2010-03-18 21:19:49 UTC
Works here. Which poppler and freetype versions are you using?
Comment 4 Sebastian Oliva 2010-03-19 00:46:11 UTC
LibPoppler 0.12.3-1.1.1, with the QT4 Wrapper 0.12.0-3.7.1

I installed freetype 2.3.12-10.1 with Subpixel and the Bytecode Interpreter, from an OpenSUSE Build Service Repository.
Comment 5 Sebastian Oliva 2010-03-19 00:50:58 UTC
I also tried opening from the command line:

tian@Kaji-Ryoji:~/Download> okular akademy-es2007.pdf
okular: symbol lookup error: /usr/lib/libpoppler-qt4.so.3: undefined symbol: _ZNK7SafeInt3IntEv

With (http://usuarios.multimania.es/tsdgeos/talks/2007/11/akademy-es2007.pdf)

And, 

tian@Kaji-Ryoji:~/Download> okular the-image-of-the-future.pdf 
*** glibc detected *** okular: free(): invalid pointer: 0x0840c280 ***
======= Backtrace: =========                                          
/lib/libc.so.6[0xb605b50b]                                            
/lib/libc.so.6[0xb605cde4]                                            
/lib/libc.so.6(cfree+0x6d)[0xb605ffdd]                                
/usr/lib/libstdc++.so.6(_ZdlPv+0x1f)[0xb6208f4f]                      
/usr/lib/libpoppler.so.5(_ZN15SplashOutputDev9startPageEiP8GfxState+0xbe)[0xb23d246e]
/usr/lib/libpoppler.so.5(_ZN3GfxC1EP4XRefP9OutputDeviP4DictP7CatalogddP12PDFRectangleS9_iPFiPvESA_+0x163)[0xb241edf3]                                                                                                           
/usr/lib/libpoppler.so.5(_ZN4Page9createGfxEP9OutputDevddiiiiiiiiP7CatalogPFiPvES4_PFiP5AnnotS4_ES4_+0x1b5)[0xb24649a5]                                                                                                         
/usr/lib/libpoppler.so.5(_ZN4Page12displaySliceEP9OutputDevddiiiiiiiiP7CatalogPFiPvES4_PFiP5AnnotS4_ES4_+0x19c)[0xb2464c1c]                                                                                                     
/usr/lib/libpoppler.so.5(_ZN6PDFDoc16displayPageSliceEP9OutputDeviddiiiiiiiiPFiPvES2_PFiP5AnnotS2_ES2_+0xc6)[0xb24689a6]                                                                                                        
/usr/lib/libpoppler-qt4.so.3(_ZNK7Poppler4Page13renderToImageEddiiiiNS0_8RotationE+0xfb)[0xb256c85b]            
/usr/lib/kde4/okularGenerator_poppler.so[0xb5417d5e]                                                            
/usr/lib/libQtCore.so.4[0xb6c24623]                                                                             
/lib/libpthread.so.0[0xb5f956e5]                                                                                
/lib/libpthread.so.0[0xb5f95600]                                                                                
======= Memory map: ========                                                                                    
08048000-08054000 r-xp 00000000 08:05 130296     /usr/bin/okular                                                
08054000-08055000 r--p 0000b000 08:05 130296     /usr/bin/okular                                                
08055000-08056000 rw-p 0000c000 08:05 130296     /usr/bin/okular                                                
08056000-0843f000 rw-p 00000000 00:00 0          [heap]                                                         
b1600000-b1621000 rw-p 00000000 00:00 0                                                                         
b1621000-b1700000 ---p 00000000 00:00 0                                                                         
b17cb000-b17cc000 ---p 00000000 00:00 0                                                                         
b17cc000-b1fcc000 rwxp 00000000 00:00 0                                                                         
b1fcc000-b2015000 r--p 00000000 08:05 261158     /var/cache/libx11/compose/l4_024_313cb605_00280cc0             
b2015000-b206c000 r-xp 00000000 08:05 6510       /usr/lib/libtiff.so.3.8.2                                      
b206c000-b206d000 ---p 00057000 08:05 6510       /usr/lib/libtiff.so.3.8.2                                      
b206d000-b206f000 r--p 00057000 08:05 6510       /usr/lib/libtiff.so.3.8.2                                      
b206f000-b2070000 rw-p 00059000 08:05 6510       /usr/lib/libtiff.so.3.8.2                                      
b2099000-b211a000 r-xp 00000000 08:05 7788       /usr/lib/libmng.so.1.1.0.10                                    
b211a000-b211c000 r--p 00081000 08:05 7788       /usr/lib/libmng.so.1.1.0.10                                    
b211c000-b211d000 rw-p 00083000 08:05 7788       /usr/lib/libmng.so.1.1.0.10                                    
b2139000-b213d000 r-xp 00000000 08:05 8466       /usr/lib/qt4/plugins/imageformats/libqtiff.so                  
b213d000-b213e000 ---p 00004000 08:05 8466       /usr/lib/qt4/plugins/imageformats/libqtiff.so                  
b213e000-b213f000 r--p 00004000 08:05 8466       /usr/lib/qt4/plugins/imageformats/libqtiff.so                  
b213f000-b2140000 rw-p 00005000 08:05 8466       /usr/lib/qt4/plugins/imageformats/libqtiff.so                  
b2140000-b2143000 r-xp 00000000 08:05 8471       /usr/lib/qt4/plugins/imageformats/libqsvg.so                   
b2143000-b2144000 ---p 00003000 08:05 8471       /usr/lib/qt4/plugins/imageformats/libqsvg.so                   
b2144000-b2145000 r--p 00003000 08:05 8471       /usr/lib/qt4/plugins/imageformats/libqsvg.so                   
b2145000-b2146000 rw-p 00004000 08:05 8471       /usr/lib/qt4/plugins/imageformats/libqsvg.so                   
b2146000-b214b000 r-xp 00000000 08:05 8468       /usr/lib/qt4/plugins/imageformats/libqmng.so                   
b214b000-b214c000 r--p 00004000 08:05 8468       /usr/lib/qt4/plugins/imageformats/libqmng.so                   
b214c000-b214d000 rw-p 00005000 08:05 8468       /usr/lib/qt4/plugins/imageformats/libqmng.so                   
b214d000-b2156000 r-xp 00000000 08:05 8469       /usr/lib/qt4/plugins/imageformats/libqjpeg.so                  
b2156000-b2157000 r--p 00008000 08:05 8469       /usr/lib/qt4/plugins/imageformats/libqjpeg.so                  
b2157000-b2158000 rw-p 00009000 08:05 8469       /usr/lib/qt4/plugins/imageformats/libqjpeg.so                  
b2158000-b215e000 r-xp 00000000 08:05 8470       /usr/lib/qt4/plugins/imageformats/libqico.so                   
b215e000-b215f000 r--p 00005000 08:05 8470       /usr/lib/qt4/plugins/imageformats/libqico.so                   
b215f000-b2160000 rw-p 00006000 08:05 8470       /usr/lib/qt4/plugins/imageformats/libqico.so                   
b2160000-b2171000 r-xp 00000000 08:05 140913     /usr/lib/kde4/plugins/imageformats/kimg_xcf.so                 
b2171000-b2172000 r--p 00010000 08:05 140913     /usr/lib/kde4/plugins/imageformats/kimg_xcf.so                 
b2172000-b2173000 rw-p 00011000 08:05 140913     /usr/lib/kde4/plugins/imageformats/kimg_xcf.so                 
b2173000-b2177000 rw-p 00000000 00:00 0                                                                         
b2177000-b21c2000 r-xp 00000000 08:05 6511       /usr/lib/libjasper.so.1.0.0                                    
b21c2000-b21c3000 r--p 0004b000 08:05 6511       /usr/lib/libjasper.so.1.0.0                                    
b21c3000-b21c6000 rw-p 0004c000 08:05 6511       /usr/lib/libjasper.so.1.0.0                                    
b21c6000-b21cc000 rw-p 00000000 00:00 0                                                                         
b21cc000-b220e000 r-xp 00000000 08:05 10039      /usr/lib/libHalf.so.6.0.0                                      
b220e000-b220f000 r--p 00041000 08:05 10039      /usr/lib/libHalf.so.6.0.0                                      
b220f000-b2210000 rw-p 00042000 08:05 10039      /usr/lib/libHalf.so.6.0.0                                      
b2210000-b2226000 r-xp 00000000 08:05 8859       /usr/lib/libIex.so.6.0.0
b2226000-b2228000 r--p 00016000 08:05 8859       /usr/lib/libIex.so.6.0.0
b2228000-b2229000 rw-p 00018000 08:05 8859       /usr/lib/libIex.so.6.0.0
b2229000-b22ec000 r-xp 00000000 08:05 29967      /usr/lib/libIlmImf.so.6.0.0
b22ec000-b22ee000 r--p 000c2000 08:05 29967      /usr/lib/libIlmImf.so.6.0.0
b22ee000-b22ef000 rw-p 000c4000 08:05 29967      /usr/lib/libIlmImf.so.6.0.0
b22f2000-b22f7000 r-xp 00000000 08:05 8467       /usr/lib/qt4/plugins/imageformats/libqgif.so
b22f7000-b22f8000 r--p 00004000 08:05 8467       /usr/lib/qt4/plugins/imageformats/libqgif.so
b22f8000-b22f9000 rw-p 00005000 08:05 8467       /usr/lib/qt4/plugins/imageformats/libqgif.so
b22f9000-b22fd000 r-xp 00000000 08:05 140914     /usr/lib/kde4/plugins/imageformats/kimg_xview.so
b22fd000-b22fe000 r--p 00003000 08:05 140914     /usr/lib/kde4/plugins/imageformats/kimg_xview.so
b22fe000-b22ff000 rw-p 00004000 08:05 140914     /usr/lib/kde4/plugins/imageformats/kimg_xview.so
b22ff000-b2304000 r-xp 00000000 08:05 140912     /usr/lib/kde4/plugins/imageformats/kimg_tga.so
b2304000-b2305000 r--p 00004000 08:05 140912     /usr/lib/kde4/plugins/imageformats/kimg_tga.so
b2305000-b2306000 rw-p 00005000 08:05 140912     /usr/lib/kde4/plugins/imageformats/kimg_tga.so
b2306000-b2310000 r-xp 00000000 08:05 140911     /usr/lib/kde4/plugins/imageformats/kimg_rgb.so
b2310000-b2311000 r--p 00009000 08:05 140911     /usr/lib/kde4/plugins/imageformats/kimg_rgb.so
b2311000-b2312000 rw-p 0000a000 08:05 140911     /usr/lib/kde4/plugins/imageformats/kimg_rgb.so
b2312000-b2316000 r-xp 00000000 08:05 140910     /usr/lib/kde4/plugins/imageformats/kimg_psd.so
b2316000-b2317000 r--p 00003000 08:05 140910     /usr/lib/kde4/plugins/imageformats/kimg_psd.so
b2317000-b2318000 rw-p 00004000 08:05 140910     /usr/lib/kde4/plugins/imageformats/kimg_psd.so
b2318000-b233a000 r-xp 00000000 08:05 30306      /usr/lib/libjpeg.so.62.0.0KCrash: Application 'okular' crashing...
sock_file=/home/tian/.kde4/socket-Kaji-Ryoji/kdeinit4__0
Comment 6 Albert Astals Cid 2010-03-19 09:54:53 UTC
_ZNK7SafeInt3IntEv has never been part of Okular nor poppler, so please go to opensuse bug reporting system and tell them to stop breaking Okular/poppler just for the fun of it because it is neither pleasant to users not to Okular/poppler developers.
Comment 7 Sebastian Oliva 2010-03-19 23:36:24 UTC
Thanks, I am using an alternate (community) build of Freetype, with the Bytecode Interpreter enabled, so I'll try to revert the install