<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 cairo-xcb-surface-render.c"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78181">78181</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>psychon@znc.in
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>segfault in cairo-xcb-surface-render.c
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fly_b747@gmx.de
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>1.12.16
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=98331" name="attach_98331" title="backtrace of segfault">attachment 98331</a> <a href="attachment.cgi?id=98331&action=edit" title="backtrace of segfault">[details]</a></span>
backtrace of segfault

Hello all,

when using a Firefox compiled against cairo 1.12.16 I get a segfault
when visiting some webpages, eg when scrolling an expose on
www.immobilienscout24.de.

debugging the problem with gdb led me to line 3125 of
cairo-xcb-surface-render.c:

_cairo_clip_path_destroy (clip->path);

where on that webpage for reasons I don't know clip->path = NULL

I changed the line to

if (clip->path != NULL) _cairo_clip_path_destroy (clip->path);

which fixes the segfault.

a Backtrace is attached.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>