vmprof-python
vmprof-python copied to clipboard
Segmentation fault with native profiling on macOS
# fib.py
def fib(n):
if n == 1 or n == 0:
return 1
else:
return fib(n - 1) + fib(n - 2)
print fib(35)
Segmentation fault when running pypy -m vmprof -o log.jit fib.py, but it works when running pypy -m vmprof -o log.jit --no-native fib.py
lldb gives
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x86800000014)
frame #0: 0x0000086800000014
error: memory read failed for 0x86800000000
This could be the same issue as described in #146, I'm investigating. This has been fixed in pypy trunk.
I can reproduce the issue on this mac (10.12.5, with the latest pypy built yesterday), this seems to be a new issue.