<?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>225637</bug_id>
          
          <creation_ts>2021-05-10 23:45:13 -0700</creation_ts>
          <short_desc>[GLIB] REGRESSION(r277225): imported/w3c/web-platform-tests/fetch/content-length/content-length.html is a flaky crash</short_desc>
          <delta_ts>2021-07-03 06:48:46 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>pgriffis</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1758826</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-05-10 23:45:13 -0700</bug_when>
    <thetext>The test started crashing in r277225:

https://results.webkit.org/?platform=GTK&amp;platform=WPE&amp;suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Ffetch%2Fcontent-length%2Fcontent-length.html

Stacktrace:

https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/r277315%20(1048)/imported/w3c/web-platform-tests/fetch/content-length/content-length-crash-log.txt

Program terminated with signal SIGSEGV, Segmentation fault.
#0  response_network_stream_read_data_cb (msg=&lt;optimized out&gt;, count=1) at ../libsoup/soup-client-message-io-http1.c:519
519	        if (client_io-&gt;base.read_state &lt; SOUP_MESSAGE_IO_STATE_BODY_START)
[Current thread is 1 (Thread 0x7f790fd8bec0 (LWP 39283))]

Thread 1 (Thread 0x7f790fd8bec0 (LWP 39283)):
#0  response_network_stream_read_data_cb (msg=&lt;optimized out&gt;, count=1) at ../libsoup/soup-client-message-io-http1.c:519
#1  0x00007f791256b86c in g_cclosure_marshal_VOID__UINTv (closure=closure@entry=0x55bf822de690, return_value=return_value@entry=0x0, instance=instance@entry=0x55bf81ccbf30, args=args@entry=0x7ffde32b6ea0, marshal_data=marshal_data@entry=0x0, n_params=n_params@entry=1, param_types=0x55bf81cdf940) at ../gobject/gmarshal.c:704
#2  0x00007f7912569179 in _g_closure_invoke_va (closure=closure@entry=0x55bf822de690, return_value=return_value@entry=0x0, instance=instance@entry=0x55bf81ccbf30, args=args@entry=0x7ffde32b6ea0, n_params=1, param_types=0x55bf81cdf940) at ../gobject/gclosure.c:873
#3  0x00007f79125827df in g_signal_emit_valist (instance=0x55bf81ccbf30, signal_id=&lt;optimized out&gt;, detail=0, var_args=var_args@entry=0x7ffde32b6ea0) at ../gobject/gsignal.c:3406
#4  0x00007f79125829c3 in g_signal_emit (instance=instance@entry=0x55bf81ccbf30, signal_id=&lt;optimized out&gt;, detail=detail@entry=0) at ../gobject/gsignal.c:3553
#5  0x00007f7911147265 in soup_filter_input_stream_read_nonblocking (stream=&lt;optimized out&gt;, buffer=&lt;optimized out&gt;, count=1, error=0x7ffde32b6fb8) at ../libsoup/soup-filter-input-stream.c:165
#6  0x00007f7911145a5e in is_idle_connection_disconnected (conn=0x55bf81cae930 [SoupConnection]) at ../libsoup/soup-connection.c:961
#7  soup_connection_get_state (conn=0x55bf81cae930 [SoupConnection]) at ../libsoup/soup-connection.c:984
#8  0x00007f79111555e8 in connection_state_changed (object=0x55bf81cae930 [SoupConnection], param=&lt;optimized out&gt;, user_data=0x55bf81cc8150) at ../libsoup/soup-session.c:1534
#12 0x00007f79125829c3 in &lt;emit signal notify:state on instance 0x55bf81cae930 [SoupConnection]&gt; (instance=instance@entry=0x55bf81cae930, signal_id=&lt;optimized out&gt;, detail=&lt;optimized out&gt;) at ../gobject/gsignal.c:3553
    #9  0x00007f7912568f3f in g_closure_invoke (closure=0x55bf81e275d0, return_value=return_value@entry=0x0, n_param_values=2, param_values=param_values@entry=0x7ffde32b71a0, invocation_hint=invocation_hint@entry=0x7ffde32b7120) at ../gobject/gclosure.c:810
    #10 0x00007f791257bd4b in signal_emit_unlocked_R (node=node@entry=0x55bf81c53660, detail=detail@entry=344, instance=instance@entry=0x55bf81cae930, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffde32b71a0) at ../gobject/gsignal.c:3741
    #11 0x00007f7912582861 in g_signal_emit_valist (instance=&lt;optimized out&gt;, signal_id=&lt;optimized out&gt;, detail=&lt;optimized out&gt;, var_args=var_args@entry=0x7ffde32b7340) at ../gobject/gsignal.c:3497
#13 0x00007f791256db54 in g_object_dispatch_properties_changed (object=0x55bf81cae930 [SoupConnection], n_pspecs=&lt;optimized out&gt;, pspecs=&lt;optimized out&gt;) at ../gobject/gobject.c:1206
#14 0x00007f791256d38e in g_object_notify_queue_thaw (object=0x55bf81cae930 [SoupConnection], nqueue=&lt;optimized out&gt;) at ../gobject/gobject.c:341
#15 0x00007f791256fd9b in g_object_thaw_notify (object=0x55bf81cae930 [SoupConnection]) at ../gobject/gobject.c:1443
#16 0x00007f7911144fc3 in soup_connection_set_state (conn=0x55bf81cae930 [SoupConnection], state=SOUP_CONNECTION_IDLE) at ../libsoup/soup-connection.c:1022
#17 0x00007f7911155385 in soup_session_unqueue_item (session=0x55bf81cc8150 [SoupSession], item=0x55bf82341b40) at ../libsoup/soup-session.c:1551
#18 0x00007f79111566b3 in soup_session_process_queue_item (loop=1, should_cleanup=0x7ffde32b75b4, item=0x55bf82341b40, session=0x55bf81cc8150 [SoupSession]) at ../libsoup/soup-session.c:1972
#19 async_run_queue (session=session@entry=0x55bf81cc8150 [SoupSession]) at ../libsoup/soup-session.c:2072
#20 0x00007f791115677d in queue_dispatch (source=&lt;optimized out&gt;, callback=&lt;optimized out&gt;, user_data=&lt;optimized out&gt;) at ../libsoup/soup-session.c:222
#21 0x00007f791246febb in g_main_dispatch (context=0x55bf81c6d180) at ../glib/gmain.c:3337
#22 g_main_context_dispatch (context=0x55bf81c6d180) at ../glib/gmain.c:4055
#23 0x00007f7912470168 in g_main_context_iterate (context=0x55bf81c6d180, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4131
#24 0x00007f7912470483 in g_main_loop_run (loop=0x55bf81c6e330) at ../glib/gmain.c:4329
#25 0x00007f79165c5d78 in WTF::RunLoop::run() () at ../../Source/WTF/wtf/glib/RunLoopGLib.cpp:108
#26 0x00007f791a5dec3f in WebKit::AuxiliaryProcessMainBase&lt;WebKit::NetworkProcess, false&gt;::run(int, char**) (this=0x7ffde32b77c0, argc=3, argv=0x7ffde32b7968) at ../../Source/WebKit/Shared/AuxiliaryProcessMain.h:70
#27 0x00007f791a5dbb90 in WebKit::AuxiliaryProcessMain&lt;WebKit::NetworkProcessMainSoup&gt;(int, char**) (argc=3, argv=0x7ffde32b7968) at ../../Source/WebKit/Shared/AuxiliaryProcessMain.h:96
#28 0x00007f791a5cb7dd in WebKit::NetworkProcessMain(int, char**) (argc=3, argv=0x7ffde32b7968) at ../../Source/WebKit/NetworkProcess/soup/NetworkProcessMainSoup.cpp:61
#29 0x000055bf817a4959 in main(int, char**) (argc=3, argv=0x7ffde32b7968) at ../../Source/WebKit/NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp:31</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1758829</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-05-10 23:58:54 -0700</bug_when>
    <thetext>It seems to be an error in libsoup. Attempt to fix it: https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/220</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759567</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-05-13 00:00:53 -0700</bug_when>
    <thetext>This other test is also failing with the same stracktrace:

imported/w3c/web-platform-tests/cors/preflight-failure.htm

https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/r277341%20(1059)/imported/w3c/web-platform-tests/cors/preflight-failure-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761004</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-05-17 19:26:17 -0700</bug_when>
    <thetext>Another test failing with the same stacktrace:

imported/w3c/web-platform-tests/eventsource/eventsource-close.htm

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r277619%20(1816)/imported/w3c/web-platform-tests/eventsource/eventsource-close-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761007</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-05-17 19:36:10 -0700</bug_when>
    <thetext>Gardened in r277632.

imported/w3c/web-platform-tests/eventsource/eventsource-close.htm started to crash in r277601.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761061</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-17 23:46:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/78141533&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774666</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2021-07-03 06:48:46 -0700</bug_when>
    <thetext>This two tests stopped crashing around r277946 (updating to libsoup3)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>