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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>164912</bug_id>
          
          <creation_ts>2016-11-18 04:36:36 -0800</creation_ts>
          <short_desc>REGRESSION(r205734): [GTK][Stable] Crash clearing GLContextGLX contexts in exit handler</short_desc>
          <delta_ts>2016-12-27 02:34:41 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=1394600</see_also>
    
    <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=1396829</see_also>
    
    <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=1401202</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=165522</see_also>
    
    <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=1403502</see_also>
    
    <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=1398270</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1252643</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-11-18 04:36:36 -0800</bug_when>
    <thetext>Web process crash clearing active GLContextGLX contexts in exit handler:

Thread 1 (Thread 0x7fec5bca0ac0 (LWP 5832)):
#0  0x00007fec4d2d8809 in ?? ()
No symbol table info available.
#1  0x00007fec5aa3c775 in WebCore::GLContextGLX::clear (this=0x7fec45770000) at /usr/src/debug/webkitgtk-2.14.1/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:225
No locals.
#2  0x00007fec5aa3c823 in WebCore::&lt;lambda()&gt;::&lt;lambda()&gt;::operator() (__closure=0x0) at /usr/src/debug/webkitgtk-2.14.1/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:51
        context = &lt;optimized out&gt;
        __for_range = &lt;optimized out&gt;
#3  WebCore::&lt;lambda()&gt;::&lt;lambda()&gt;::_FUN(void) () at /usr/src/debug/webkitgtk-2.14.1/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:52
No locals.
#4  0x00007fec4d9d8258 in __run_exit_handlers (status=0, listp=0x7fec4dd5b5d8 &lt;__exit_funcs&gt;, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
        atfct = &lt;optimized out&gt;
        onfct = &lt;optimized out&gt;
        cxafct = &lt;optimized out&gt;
        f = &lt;optimized out&gt;
#5  0x00007fec4d9d82a5 in __GI_exit (status=&lt;optimized out&gt;) at exit.c:104
No locals.
#6  0x00007fec4d9bf738 in __libc_start_main (main=0x55bf30187c40 &lt;main(int, char**)&gt;, argc=2, argv=0x7fff9d5f8cb8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fff9d5f8ca8) at ../csu/libc-start.c:323
        result = &lt;optimized out&gt;
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 1908855912825480146, 94279634025584, 140735833672880, 0, 0, 5691640466447918034, 5682246756743504850}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7fff9d5f8cd0, 0x7fec5bd88128}, data = {prev = 0x0, cleanup = 0x0, canceltype = -1654682416}}}
        not_first_call = &lt;optimized out&gt;
#7  0x000055bf30187c99 in _start ()

Carlos Garcia already removed this function in trunk, so it should only be a problem in stable. We should probably take the fix that went into trunk instead of trying to do something &quot;safer&quot; in stable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1252644</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-11-18 04:37:16 -0800</bug_when>
    <thetext>Note: I have 518 reports of this crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1252645</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-11-18 04:37:51 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Note: I have 518 reports of this crash.

Hm, actually I don&apos;t trust that number, it looks like a bug report system bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1253150</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-11-20 09:43:48 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Carlos Garcia already removed this function in trunk, so it should only be a
&gt; problem in stable. We should probably take the fix that went into trunk
&gt; instead of trying to do something &quot;safer&quot; in stable.

Not quite. It never existed in trunk, it was added only in the 2.14 branch in r205734, as a &quot;safer&quot; way to fix the bug in the stable branch. This was bug #161605.

We should revert r205734 and take r205544 for 2.14.3 instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1262808</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-12-27 02:34:41 -0800</bug_when>
    <thetext>Fixed in 2.14 see r210154 and r210155</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>