<?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>229971</bug_id>
          
          <creation_ts>2021-09-06 15:58:41 -0700</creation_ts>
          <short_desc>run_webkit_tests failed to print error message in python3 in linux_get_crash_log.py</short_desc>
          <delta_ts>2021-09-07 08:45:19 -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>Tools / Tests</component>
          <version>Other</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="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1790798</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-09-06 15:58:41 -0700</bug_when>
    <thetext>run_webkit_tests failed to print error message in python3 in linux_get_crash_log.py 

From https://build.webkit.org/#/builders/63/builds/2245/steps/11/logs/stdio

17:18:52.297 3 worker/11 stopping
17:18:52.614 3 Some workers failed to gracefully shut down, but in-flight exception taking precedence
17:18:52.725 3 TypeError(&quot;can only concatenate str (not &quot;bytes&quot;) to str (from worker/3)&quot;) raised, exiting
17:18:52.725 3 Flushing stdout
17:18:52.725 3 Flushing stderr
17:18:52.725 3 Stopping helper
17:18:52.725 3 Cleaning up port
TypeError raised: can only concatenate str (not &quot;bytes&quot;) to str (from worker/3)
Traceback (most recent call last):
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 92, in main
    run_details = run(port, options, args, stderr)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 494, in run
    run_details = manager.run(args)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 413, in run
    temp_initial_results, temp_retry_results, temp_enabled_pixel_tests_in_retry = self._run_test_subset(test_inputs, device_type=device_type)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 487, in _run_test_subset
    initial_results = self._run_tests(test_inputs, self._options.repeat_each, self._options.iterations, int(self._options.child_processes), retrying=False, device_type=device_type)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py&quot;, line 566, in _run_tests
    return self._runner.run_tests(self._expectations[device_type], new_test_inputs, num_workers, retrying, device_type)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 179, in run_tests
    pool.wait()
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py&quot;, line 451, in __exit__
    reraise(*inflight)
  File &quot;/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3/six.py&quot;, line 703, in reraise
    raise value
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 179, in run_tests
    pool.wait()
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py&quot;, line 423, in wait
    self.queue.receive()(self)
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py&quot;, line 133, in __call__
    reraise(*self.exc_info)
  File &quot;/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3/six.py&quot;, line 702, in reraise
    raise value.with_traceback(tb)
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py&quot;, line 296, in main
    queue.send(_Result(value=task(None), id=task.id))
  File &quot;/app/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/task_pool.py&quot;, line 56, in __call__
    return self.function(*self.args, **self.kwargs)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 76, in run_shard
    return Worker.instance.run_tests(shard)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 318, in run_tests
    Worker.instance.run_test(input, shard.name)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 346, in run_test
    result = self._run_test_with_or_without_timeout(test_input, test_timeout_sec, stop_when_done)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 403, in _run_test_with_or_without_timeout
    return self._run_test_in_this_thread(test_input, stop_when_done)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 489, in _run_test_in_this_thread
    return self._run_single_test(self._driver, test_input, stop_when_done)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py&quot;, line 492, in _run_single_test
    return single_test_runner.run_single_test(
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py&quot;, line 46, in run_single_test
    return runner.run()
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py&quot;, line 121, in run
    return self._run_compare_test()
  File &quot;/app/webkit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py&quot;, line 124, in _run_compare_test
    driver_output = self._driver.run_test(self._driver_input(), self._stop_when_done)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/driver.py&quot;, line 834, in run_test
    return self._driver.run_test(driver_input, stop_when_done)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/driver.py&quot;, line 255, in run_test
    self.error_from_test, crash_log = self._get_crash_log(text, self.error_from_test, newer_than=start_time)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/driver.py&quot;, line 324, in _get_crash_log
    return self._port._get_crash_log(self._crashed_process_name, self._crashed_pid, stdout, stderr, newer_than, target_host=self._target_host)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/gtk.py&quot;, line 246, in _get_crash_log
    return GDBCrashLogGenerator(self._executive, name, pid, newer_than,
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/linux_get_crash_log.py&quot;, line 156, in generate_crash_log
    crash_log, errors = self._get_gdb_output(coredump_path)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/port/linux_get_crash_log.py&quot;, line 63, in _get_gdb_output
    stdout = (&apos;ERROR: The gdb process exited with non-zero return code %s\n\n&apos; % proc.returncode) + stdout
TypeError: can only concatenate str (not &quot;bytes&quot;) to str (from worker/3)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791008</commentid>
    <comment_count>1</comment_count>
      <attachid>437503</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-09-07 07:57:23 -0700</bug_when>
    <thetext>Created attachment 437503
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791012</commentid>
    <comment_count>2</comment_count>
      <attachid>437503</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-09-07 08:09:32 -0700</bug_when>
    <thetext>Comment on attachment 437503
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=437503&amp;action=review

&gt; Tools/Scripts/webkitpy/port/linux_get_crash_log.py:63
&gt; +            stdout = (b&apos;ERROR: The gdb process exited with non-zero return code %s\n\n&apos; % str(proc.returncode)) + stdout

should we use {} and .format() instead of %s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791017</commentid>
    <comment_count>3</comment_count>
      <attachid>437503</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-09-07 08:17:07 -0700</bug_when>
    <thetext>Comment on attachment 437503
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=437503&amp;action=review

&gt;&gt; Tools/Scripts/webkitpy/port/linux_get_crash_log.py:63
&gt;&gt; +            stdout = (b&apos;ERROR: The gdb process exited with non-zero return code %s\n\n&apos; % str(proc.returncode)) + stdout
&gt; 
&gt; should we use {} and .format() instead of %s

Bytes don&apos;t have `.format()`, so we need to use %.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791035</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-09-07 08:44:48 -0700</bug_when>
    <thetext>Committed r282087 (241387@main): &lt;https://commits.webkit.org/241387@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 437503.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791037</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-07 08:45:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/82823545&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>437503</attachid>
            <date>2021-09-07 07:57:23 -0700</date>
            <delta_ts>2021-09-07 08:44:48 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-229971-20210907075722.patch</filename>
            <type>text/plain</type>
            <size>1669</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjgyMDg0CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNjMyMmEyOD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