vmprof-python icon indicating copy to clipboard operation
vmprof-python copied to clipboard

Segmentation fault with native profiling on macOS

Open caizixian opened this issue 8 years ago • 2 comments

# 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

caizixian avatar Jul 20 '17 02:07 caizixian

This could be the same issue as described in #146, I'm investigating. This has been fixed in pypy trunk.

planrich avatar Jul 20 '17 12:07 planrich

I can reproduce the issue on this mac (10.12.5, with the latest pypy built yesterday), this seems to be a new issue.

planrich avatar Jul 20 '17 13:07 planrich