Bug 140260
| Summary: | Python error when running tests with libgmalloc - ValueError: invalid literal for long() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | ap, ddkilzer |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Joseph Pecoraro
* 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
I don't know if this is worth fixing; the supported way to enable GuardMalloc is with --guard-malloc switch (-g in abbreviated form).