Bug 140260 - Python error when running tests with libgmalloc - ValueError: invalid literal for long()
Summary: Python error when running tests with libgmalloc - ValueError: invalid literal...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-08 11:13 PST by Joseph Pecoraro
Modified: 2015-01-08 11:18 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-01-08 11:13:14 PST
* SUMMARY
Python error when running tests with libgmalloc - ValueError: invalid literal for long().

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

* NOTES
Traceback (most recent call last):
  File "/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 80, in main
    run_details = run(port, options, args, stderr)
  File "/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 412, in run
    _set_up_derived_options(port, options)
  File "/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 333, in _set_up_derived_options
    str(port.default_child_processes()))
  File "/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/port/mac.py", line 139, in default_child_processes
    total_memory = self.host.platform.total_bytes_memory()
  File "/Users/pecoraro/Code/safari/OpenSource/Tools/Scripts/webkitpy/common/system/platforminfo.py", line 93, in total_bytes_memory
    return long(self._executive.run_command(["sysctl", "-n", "hw.memsize"]))
ValueError: invalid literal for long() with base 10: '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'


Looks like the run_command:

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

Gets the GuardMalloc output. Can that be ignored?
Comment 1 Alexey Proskuryakov 2015-01-08 11:18:59 PST
I don't know if this is worth fixing; the supported way to enable GuardMalloc is with --guard-malloc switch (-g in abbreviated form).