<?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>140260</bug_id>
          
          <creation_ts>2015-01-08 11:13:14 -0800</creation_ts>
          <short_desc>Python error when running tests with libgmalloc - ValueError: invalid literal for long()</short_desc>
          <delta_ts>2015-01-08 11:18:59 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <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="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1059883</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-01-08 11:13:14 -0800</bug_when>
    <thetext>* SUMMARY
Python error when running tests with libgmalloc - ValueError: invalid literal for long().

* STEPS TO REPRODUCE
1. shell&gt; DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib ./Tools/Scripts/run-webkit-tests --debug
  =&gt; python error

* NOTES
Traceback (most recent call last):
  File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 80, in main
    run_details = run(port, options, args, stderr)
  File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 412, in run
    _set_up_derived_options(port, options)
  File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py&quot;, line 333, in _set_up_derived_options
    str(port.default_child_processes()))
  File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/port/mac.py&quot;, line 139, in default_child_processes
    total_memory = self.host.platform.total_bytes_memory()
  File &quot;/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/common/system/platforminfo.py&quot;, line 93, in total_bytes_memory
    return long(self._executive.run_command([&quot;sysctl&quot;, &quot;-n&quot;, &quot;hw.memsize&quot;]))
ValueError: invalid literal for long() with base 10: &apos;GuardMalloc[sysctl-27646]: Allocations will be placed on 16 byte boundaries. GuardMalloc[sysctl-27646]:  - Some buffer overruns may not be noticed. GuardMalloc[sysctl-27646]:  - Applications using vec&apos;


Looks like the run_command:

    return long(self._executive.run_command([&quot;sysctl&quot;, &quot;-n&quot;, &quot;hw.memsize&quot;]))

Gets the GuardMalloc output. Can that be ignored?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059886</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-01-08 11:18:59 -0800</bug_when>
    <thetext>I don&apos;t know if this is worth fixing; the supported way to enable GuardMalloc is with --guard-malloc switch (-g in abbreviated form).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>