<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>176320</bug_id>
          
          <creation_ts>2008-11-28 10:45:07 +0000</creation_ts>
          <short_desc>crash with PDF of focus-campus.de (freetype)</short_desc>
          <delta_ts>2009-02-16 22:19:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>okular</product>
          <component>PDF backend</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Helge Hielscher">hhielscher</reporter>
          <assigned_to name="Okular developers">okular-devel</assigned_to>
          <cc>aacid</cc>
    
    <cc>andresbajotierra</cc>
    
    <cc>archx</cc>
    
    <cc>bradh</cc>
    
    <cc>nick.degraeve</cc>
    
    <cc>pgrahl</cc>
    
    <cc>sime.essert</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>671795</commentid>
    <comment_count>0</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2008-11-28 10:45:07 +0000</bug_when>
    <thetext>Version:           0.7.80 (using Devel)
Installed from:    Compiled sources

Okular crashes with this PDF
http://www.focus-campus.de/download.html?f=FC_0848.pdf

KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = okular path = &lt;unknown&gt; pid = 15149
sock_file=/home/helge/.kde4/socket-iwan/kdeinit4__0
okular: Fatal IO error: client killed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>671909</commentid>
    <comment_count>1</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2008-11-28 14:44:19 +0000</bug_when>
    <thetext>Qt: 4.4.3
KDE: 4.1.3 (KDE 4.1.3)
Okular: 0.7.3
poppler (and poppler-qt) 0.10.0
freetype2 2.3.7
on ArchLinux x86_64

Here I can reproduce it. 
Seems related to poppler.

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x418c8950 (LWP 12600)]         
0x00007f718ff1557f in cff_parse_real () from /usr/lib/libfreetype.so.6
(gdb) bt full                                                         
#0  0x00007f718ff1557f in cff_parse_real () from /usr/lib/libfreetype.so.6
No symbol table info available.                                           
#1  0x00007f718ff156d0 in cff_parse_num () from /usr/lib/libfreetype.so.6 
No symbol table info available.                                           
#2  0x00007f718ff15946 in cff_parser_run () from /usr/lib/libfreetype.so.6
No symbol table info available.                                           
#3  0x00007f718ff199fd in cff_subfont_load () from /usr/lib/libfreetype.so.6
No symbol table info available.                                             
#4  0x00007f718ff19eae in cff_face_init () from /usr/lib/libfreetype.so.6   
No symbol table info available.                                             
#5  0x00007f718fefa200 in open_face () from /usr/lib/libfreetype.so.6       
No symbol table info available.                                             
#6  0x00007f718fefc61e in FT_Open_Face () from /usr/lib/libfreetype.so.6    
No symbol table info available.                                             
#7  0x00007f718fefd330 in FT_New_Memory_Face () from /usr/lib/libfreetype.so.6
No symbol table info available.                                               
#8  0x00007f718930dc1b in SplashFTFontFile::loadType1Font ()                  
   from /usr/lib/libpoppler.so.4                                              
No symbol table info available.                                               
#9  0x00007f718930e974 in SplashFontEngine::loadType1CFont ()                 
   from /usr/lib/libpoppler.so.4                                              
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---                        
No symbol table info available.                                               
#10 0x00007f718923baca in SplashOutputDev::doUpdateFont ()                    
   from /usr/lib/libpoppler.so.4                                              
No symbol table info available.                                               
#11 0x00007f718923bdac in SplashOutputDev::drawChar ()                        
   from /usr/lib/libpoppler.so.4                                              
No symbol table info available.                                               
#12 0x00007f7189279500 in Gfx::doShowText () from /usr/lib/libpoppler.so.4    
No symbol table info available.                                               
#13 0x00007f718927a194 in Gfx::opShowText () from /usr/lib/libpoppler.so.4    
No symbol table info available.                                               
#14 0x00007f718927156d in Gfx::go () from /usr/lib/libpoppler.so.4            
No symbol table info available.                                               
#15 0x00007f7189275a16 in Gfx::display () from /usr/lib/libpoppler.so.4       
No symbol table info available.                                               
#16 0x00007f71892b8030 in Page::displaySlice () from /usr/lib/libpoppler.so.4 
No symbol table info available.                                               
#17 0x00007f71895ccd4d in Poppler::Page::renderToImage ()                     
   from /usr/lib/libpoppler-qt4.so.3                                          
No symbol table info available.
#18 0x00007f718982e8c4 in PDFPixmapGeneratorThread::run (this=0x15fd140)
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
    at /home/dario/Build/ABS/kdegraphics/src/kdegraphics-4.1.3/okular/generators/poppler/generator_pdf.cpp:1780
        page = &lt;value optimized out&gt;
        width = &lt;value optimized out&gt;
        height = &lt;value optimized out&gt;
        pageWidth = 842
        pageHeight = 595
        genTextPage = false
        pp = &lt;value optimized out&gt;
        __PRETTY_FUNCTION__ = &quot;virtual void PDFPixmapGeneratorThread::run()&quot;
#19 0x00007f7196c86d79 in ?? () from /usr/lib/libQtCore.so.4
No symbol table info available.
#20 0x00007f7196a16fe7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#21 0x00007f719135823d in clone () from /lib/libc.so.6
No symbol table info available.
#22 0x0000000000000000 in ?? ()
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672105</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2008-11-28 20:32:52 +0000</bug_when>
    <thetext>Related to poppler? I see it crashing in freetype eh ;-)

Works for me using poppler 0.10.1 and freetype either 2.3.5-1ubuntu4.8.04.1 or compiled from cvs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672124</commentid>
    <comment_count>3</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2008-11-28 21:01:59 +0000</bug_when>
    <thetext>You&apos;re right :-P 
Updating poppler to 0.10.1 didn&apos;t solve the issue.

May be related to 
http://www.mail-archive.com/freetype-devel@nongnu.org/msg02803.html
(Regression Crash between freetype 2.3.5 and 2.3.7 / cff_parse_real(), seems to be related to GCC optimizations).

Helge, what freetype2 version do you have?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672129</commentid>
    <comment_count>4</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2008-11-28 21:10:42 +0000</bug_when>
    <thetext>After recompiling freetype 2.3.7 (after unsetting CFLAGS and CXXFLAGS), I can&apos;t reproduce this bug anymore. So it seems to be fault of a GCC optimization on freetype2 2.3.7 :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672206</commentid>
    <comment_count>5</comment_count>
    <who name="Helge Hielscher">hhielscher</who>
    <bug_when>2008-11-29 00:09:24 +0000</bug_when>
    <thetext># rpm -qa|grep freetype
libfreetype6-2.3.7-1plf2009.0
freetype-1.3.1-29mdv2009.0
freetype-tools-1.3.1-29mdv2009.0
libfreetype6-devel-2.3.7-1plf2009.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672351</commentid>
    <comment_count>6</comment_count>
    <who name="Brad Hards">bradh</who>
    <bug_when>2008-11-29 09:47:24 +0000</bug_when>
    <thetext>Dario: did you rebuild the package with different options, or do a clean build from upstream sources?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672354</commentid>
    <comment_count>7</comment_count>
    <who name="Brad Hards">bradh</who>
    <bug_when>2008-11-29 09:49:29 +0000</bug_when>
    <thetext>Three Okular bugs, all involving SIGFPE, perhaps all in freetype:
#170427
#176304
#176320</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672489</commentid>
    <comment_count>8</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2008-11-29 14:05:46 +0000</bug_when>
    <thetext>Brad:
My distribution (ArchLinux) uses precompiled binaries (compiled with &quot;-O2 -pipe&quot;)
But we can compile ourselves the distribution packages (it uses a BSD-port like system), and thus changing some compile options and so on.
I have compiled freetype2 (2.3.7) from source disabling the GCC options (&quot;unset CFLAGS&quot;, seting CFLAGS=&quot;-g&quot; ) to check the information I found about this bug (the link in comment 3). Then, I installed my own source-build package to overwrite the original freetype package. And the bug seems to be gone. I could even read the PDF :).
Is that what you were asking for? If not, just ask me again :)

I have only recompiled kdegraphics after updating my poppler packages to 0.10.1. But this wasn&apos;t neccesary to do after updating my freetype2 package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672846</commentid>
    <comment_count>9</comment_count>
    <who name="Brad Hards">bradh</who>
    <bug_when>2008-11-29 23:46:09 +0000</bug_when>
    <thetext>Dario: I was trying to figure out whether it could be caused by some patches applied to freetype (Ubuntu / Debian has 107K diff applied, most of which looks harmless, but I didn&apos;t do a full check), or whether it is more likely a compiler problem. Sounds like the compiler optimisations might be the issue.

What gcc version is this with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672853</commentid>
    <comment_count>10</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2008-11-29 23:56:54 +0000</bug_when>
    <thetext>Here: I&apos;m using gcc (GCC) 4.3.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>698261</commentid>
    <comment_count>11</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-01-12 11:48:09 +0000</bug_when>
    <thetext>*** Bug 176304 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702475</commentid>
    <comment_count>12</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-01-19 10:38:40 +0000</bug_when>
    <thetext>*** Bug 181275 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702478</commentid>
    <comment_count>13</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-01-19 10:44:52 +0000</bug_when>
    <thetext>Albert, Brad: is this problem strictly freetype&apos;s, or how it is used within poppler?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702622</commentid>
    <comment_count>14</comment_count>
      <attachid>30419</attachid>
    <who name="Grahl">pgrahl</who>
    <bug_when>2009-01-19 15:05:01 +0000</bug_when>
    <thetext>Created attachment 30419
Okular crash file

This is the crash report I got when trying to browse a PFD file with okular.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702628</commentid>
    <comment_count>15</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-01-19 15:11:33 +0000</bug_when>
    <thetext>@Grahl:
&gt; Created an attachment (id=30419) [details]
&gt; Okular crash file
&gt; 
&gt; This is the crash report I got when trying to browse a PFD file with okular.

This is an old crash in the Poppler library (that has nothing to do with this bug report); please update your Poppler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>702774</commentid>
    <comment_count>16</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2009-01-19 19:46:41 +0000</bug_when>
    <thetext>Strictly freetype as far as i know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704948</commentid>
    <comment_count>17</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-01-24 15:39:11 +0000</bug_when>
    <thetext>As seen in various comments, this bug belongs either to freetype, or to gcc itself.
Thus closing it as UPSTREAM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>717839</commentid>
    <comment_count>18</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-02-16 22:19:20 +0000</bug_when>
    <thetext>*** Bug 184560 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>30419</attachid>
            <date>2009-01-19 15:05:01 +0000</date>
            <delta_ts>2009-01-19 15:05:01 +0000</delta_ts>
            <desc>Okular crash file</desc>
            <filename>okular.kcrash</filename>
            <type>text/plain</type>
            <size>2957</size>
            <attacher name="Grahl">pgrahl</attacher>
            
              <data encoding="base64">QXBwbGljYXRpb246IE9rdWxhciAob2t1bGFyKSwgc2lnbmFsIFNJR1NFR1YKMHgwMDAwN2YxYzI3
OTY2NDgyIGluIHNlbGVjdCAoKSBmcm9tIC9saWIvbGliYy5zby42CltDdXJyZW50IHRocmVhZCBp
cyAwIChMV1AgMTQ0MjkpXQoKVGhyZWFkIDIgKFRocmVhZCAweDQyMjI4OTUwIChMV1AgMTQ0MzYp
KToKW0tDcmFzaCBIYW5kbGVyXQojNSAgMHgwMDAwN2YxYzFjNzFjYTA2IGluIEZvcm06OmZpbmRX
aWRnZXRCeVJlZiAoKSBmcm9tIC91c3IvbGliL2xpYnBvcHBsZXIuc28uMwojNiAgMHgwMDAwN2Yx
YzFjNzBmZDE3IGluIEFubm90V2lkZ2V0Ojppbml0aWFsaXplICgpIGZyb20gL3Vzci9saWIvbGli
cG9wcGxlci5zby4zCiM3ICAweDAwMDA3ZjFjMWM3MGZmZGIgaW4gQW5ub3RXaWRnZXQ6OkFubm90
V2lkZ2V0ICgpIGZyb20gL3Vzci9saWIvbGlicG9wcGxlci5zby4zCiM4ICAweDAwMDA3ZjFjMWM3
MTIxNjIgaW4gQW5ub3RzOjpjcmVhdGVBbm5vdCAoKSBmcm9tIC91c3IvbGliL2xpYnBvcHBsZXIu
c28uMwojOSAgMHgwMDAwN2YxYzFjNzEyNDE4IGluIEFubm90czo6QW5ub3RzICgpIGZyb20gL3Vz
ci9saWIvbGlicG9wcGxlci5zby4zCiMxMCAweDAwMDA3ZjFjMWM3NzRlNjEgaW4gUGFnZTo6ZGlz
cGxheVNsaWNlICgpIGZyb20gL3Vzci9saWIvbGlicG9wcGxlci5zby4zCiMxMSAweDAwMDA3ZjFj
M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