<?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>136073</bug_id>
          
          <creation_ts>2014-08-19 09:42:56 -0700</creation_ts>
          <short_desc>[GStreamer] crash after attempt to unlock mutex that was not locked</short_desc>
          <delta_ts>2015-08-21 11:45:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.vox.com/2014/8/19/6043409/a-local-public-defender-on-the-deeply-dysfunctional-ferguson-court</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>b.long</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1030043</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2014-08-19 09:42:56 -0700</bug_when>
    <thetext>Loading http://www.vox.com/2014/8/19/6043409/a-local-public-defender-on-the-deeply-dysfunctional-ferguson-court always causes my web process to crash, after printing this warning:

Attempt to unlock mutex that was not locked

Here&apos;s a stack trace from a release build; I can post one from a debug build if you think that&apos;d be helpful.

#0  0x00007fa21c907c39 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 5602
        selftid = 5647
#1  0x00007fa21c909348 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x57288, 
            sa_sigaction = 0x57288}, sa_mask = {__val = {140331614257200, 
              140331614268192, 140334287738662, 140333761429509, 0, 44, 
              140334240468288, 140331614257200, 140331614268192, 724000, 
              140334287765893, 44, 140334241384445, 140334244350464, 44, 0}}, 
          sa_flags = 482920960, sa_restorer = 0x7fa21b5acdf0}
        sigs = {__val = {32, 0 &lt;repeats 15 times&gt;}}
#2  0x00007fa21b528735 in g_mutex_unlock_slowpath (mutex=&lt;optimized out&gt;, 
    prev=&lt;optimized out&gt;) at gthread-posix.c:1321
No locals.
#3  0x00007fa21b5283ee in g_mutex_unlock (mutex=&lt;optimized out&gt;)
    at gthread-posix.c:1344
        prev = &lt;optimized out&gt;
#4  0x00007fa170b158bf in gst_hls_demux_change_playlist (
    demux=demux@entry=0x7fa18004c030, max_bitrate=9343035)
    at gsthlsdemux.c:1673
        previous_variant = 0x7fa18004eb00
        current_variant = 0x7fa18004eb20
        old_bandwidth = 357000
        new_bandwidth = 724000
        __FUNCTION__ = &quot;gst_hls_demux_change_playlist&quot;
#5  0x00007fa170b198ad in gst_hls_demux_switch_playlist (demux=0x7fa18004c030)
    at gsthlsdemux.c:1755
        bitrate = 11678794
#6  gst_hls_demux_stream_loop (demux=0x7fa18004c030) at gsthlsdemux.c:1249
        end_of_playlist = 0
        err = 0x0
        __FUNCTION__ = &quot;gst_hls_demux_stream_loop&quot;
#7  0x00007fa21825b346 in gst_task_func (task=0x80e710) at gsttask.c:317
        lock = 0x7fa18004c210
        tself = 0x7fa180049230
        priv = 0x80e6c0
        __PRETTY_FUNCTION__ = &quot;gst_task_func&quot;
#8  0x00007fa21b50c0cc in g_thread_pool_thread_proxy (data=&lt;optimized out&gt;)
    at gthreadpool.c:307
        task = 0x7fa178001fa0
        pool = 0xc4e4b0
#9  0x00007fa21b50b745 in g_thread_proxy (data=0x7fa180049230) at gthread.c:764
        thread = 0x7fa180049230
#10 0x00007fa21ac84f33 in start_thread (arg=0x7fa1a5ffb700)
    at pthread_create.c:309
        __res = &lt;optimized out&gt;
        pd = 0x7fa1a5ffb700
        now = &lt;optimized out&gt;
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140332251461376, 
                -2793351388160340356, 0, 0, 140332251462080, 140332251461376, 
                2774021971184963196, 2772018513804643964}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, 
            data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = &lt;optimized out&gt;
        pagesize_m1 = &lt;optimized out&gt;
        sp = &lt;optimized out&gt;
        freesize = &lt;optimized out&gt;
#11 0x00007fa21c9c6ded in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032125</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-08-29 00:17:11 -0700</bug_when>
    <thetext>*** Bug 136074 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032188</commentid>
    <comment_count>2</comment_count>
    <who name="Brendan Long">b.long</who>
    <bug_when>2014-08-29 10:52:45 -0700</bug_when>
    <thetext>Hm I don&apos;t get this in an Arch Linux VM either :\</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032210</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2014-08-29 11:25:43 -0700</bug_when>
    <thetext>Arch would still be on glib 2.40.  The strict mutex behavior is new in glib 2.42 (to be released late next month).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1049493</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-11-18 08:46:19 -0800</bug_when>
    <thetext>This trace is very similar to the one in Bug 138606. Shall we dupe one of these bugs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1049526</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2014-11-18 10:34:29 -0800</bug_when>
    <thetext>Yeah it looks the same, though that makes me wonder if I was right to suspect glib 2.42 since if Andreas is using WebKit jhbuild, surely glib is much older.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1119832</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-08-21 11:45:02 -0700</bug_when>
    <thetext>I do not see this anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>