<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:philip.chimento&#64;gmail.com" title="Philip Chimento &lt;philip.chimento&#64;gmail.com&gt;"> <span class="fn">Philip Chimento</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - WebKit2.WebContext register_uri_scheme does segfault"
   href="https://bugs.webkit.org/show_bug.cgi?id=116672">bug 116672</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>philip.chimento&#64;gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - WebKit2.WebContext register_uri_scheme does segfault"
   href="https://bugs.webkit.org/show_bug.cgi?id=116672#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - WebKit2.WebContext register_uri_scheme does segfault"
   href="https://bugs.webkit.org/show_bug.cgi?id=116672">bug 116672</a>
              from <span class="vcard"><a class="email" href="mailto:philip.chimento&#64;gmail.com" title="Philip Chimento &lt;philip.chimento&#64;gmail.com&gt;"> <span class="fn">Philip Chimento</span></a>
</span></b>
        <pre>What's going wrong here is that the default WebContext object is destroyed in an atexit() handler. When that happens, the GDestroyNotify function passed to register_uri_scheme() is called, but at that point the Python or JS runtime has already been shut down, so it segfaults.

A library should definitely not register any atexit() handlers. Probably it should be OK to not destroy the default WebContext, since the memory will be reclaimed at the end of the process anyhow.</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>