<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Segfault in CairoOutputDev::endTransparencyGroup"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=81624">81624</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault in CairoOutputDev::endTransparencyGroup
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gpoo@gnome.org
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cairo backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=103241" name="attach_103241" title="PDF Test case">attachment 103241</a> <a href="attachment.cgi?id=103241&action=edit" title="PDF Test case">[details]</a></span>
PDF Test case

This was reported in GNOME's Bugzilla:
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=733402">https://bugzilla.gnome.org/show_bug.cgi?id=733402</a>

pdftocairo crashes when trying to render the attached document.  FWIW, an older
version of poppler (0.18.)0 does not have this issue.

My cairo version is 2a7f133639 (>0.12.16).

The stacktrace is as follows:
(gdb) r -png ~/Descargas/epiphany/013-crash.pdf 
Starting program: /home/gpoo/code/evince/install/bin/pdftocairo -png
~/Descargas/epiphany/013-crash.pdf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x08053080 in CairoOutputDev::endTransparencyGroup (this=0x8087178) at
CairoOutputDev.cc:1500
1500      if (groupColorSpaceStack->next &&
groupColorSpaceStack->next->knockout) {
(gdb) thread apply all bt

Thread 1 (Thread 0xb74c2800 (LWP 3911)):
#0  0x08053080 in CairoOutputDev::endTransparencyGroup (this=0x8087178) at
CairoOutputDev.cc:1500
#1  0x0805124a in CairoOutputDev::unsetSoftMaskFromImageMask (this=0x8087178,
state=0x8244d48, baseMatrix=0x80879b4)
    at CairoOutputDev.cc:1932
#2  0xb7e6a120 in Gfx::doPatternImageMask (this=0x8087978, ref=0xbfffe0a4,
str=0x8246378, width=1, height=1, invert=false, 
    inlineImg=false) at Gfx.cc:2097
#3  0xb7e6b2bc in Gfx::doImage (this=0x8087978, ref=0xbfffe0a4, str=0x8246378,
inlineImg=false) at Gfx.cc:4370
#4  0xb7e703f1 in Gfx::opXObject (this=0x8087978, args=0xbfffe184, numArgs=1)
at Gfx.cc:4179
#5  0xb7e5f949 in Gfx::execOp (this=0x8087978, cmd=0xbfffe324, args=0xbfffe184,
numArgs=1) at Gfx.cc:903
#6  0xb7e670b0 in Gfx::go (this=0x8087978, topLevel=true) at Gfx.cc:762
#7  0xb7e6756e in Gfx::display (this=0x8087978, obj=0xbfffe414, topLevel=true)
at Gfx.cc:728
#8  0xb7eb3873 in Page::displaySlice (this=0x8087da0, out=0x8087178, hDPI=72,
vDPI=72, rotate=0, useMediaBox=true, crop=false, 
    sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=false,
abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, 
    annotDisplayDecideCbkData=0x0, copyXRef=false) at Page.cc:585
#9  0xb7ebc815 in PDFDoc::displayPageSlice (this=0x8087570, out=0x8087178,
page=1, hDPI=72, vDPI=72, rotate=0, useMediaBox=true, 
    crop=false, printing=false, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1,
abortCheckCbk=0, abortCheckCbkData=0x0, 
    annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0, copyXRef=false) at
PDFDoc.cc:503
#10 0x0804f4c6 in renderPage (output_h=3367, output_w=2363, page_h=1615.75,
page_w=1133.8599850000001, pg=1, cairoOut=0x8087178, 
    doc=0x8087570) at pdftocairo.cc:588
#11 main (argc=2, argv=0xbfffe6c4) at pdftocairo.cc:1056</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>