Last active
August 29, 2015 13:57
-
-
Save samgiles/9856834 to your computer and use it in GitHub Desktop.
Steps to reproduce JIT memory errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make wlvlang-jit PYPYPATH=~path/to/pypy | |
# This should pass | |
make test_all_jit | |
# Unfortunately the path to the script needs to be relative! (I should fix that) | |
bin/wlvlang-jit tests/benchmarks/thread-ring.wl 10 10 | |
# This should cause a segfault or: | |
# | |
# File "rpython_memory_gc_incminimark.c", line 9705, in IncrementalMiniMarkGC__malloc_out_of_nursery_non | |
# Fatal RPython error: MemoryError | |
# I've been using the following command to get the source then running 'make lldebug0' in the subsequent directory to get a binary to debug with. This binary for me causes bogus header for young obj assertion error | |
PYTHONPATH=:~/path/to/pypy/:. ~/path/to/pypy/rpython/bin/rpython --source -Ojit wlvlang/targetstandalone.py | |
# I have to run it with something like this thanks to the relative path only thing. | |
sam@beast:/tmp/usession-default-11/testing_1$ ./wlvlang-jit ../../../../../../../home/sam/code/python/wlvlang/tests/benchmarks/thread-ring.wl 10 10 | |
start | |
PyPy assertion failed at rpython_memory_gc_base.c:2978: | |
in pypy_g__trace_slow_path___trace_drag_out: bogus header for young obj | |
Aborted (core dumped) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment