WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
140260
Python error when running tests with libgmalloc - ValueError: invalid literal for long()
https://bugs.webkit.org/show_bug.cgi?id=140260
Summary
Python error when running tests with libgmalloc - ValueError: invalid literal...
Joseph Pecoraro
Reported
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?
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
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).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug