[pypy-issue] [issue815] segfault in register allocator

Alex Gaynor tracker at bugs.pypy.org
Sat Jul 30 02:10:50 CEST 2011


New submission from Alex Gaynor <alex.gaynor at gmail.com>:

On `unroll-if-alt` doing:

./pypy-c-new -S -mtimeit -s "i = 0" "'%d %d' % (i, i); i += 1"

Results in a segfault, using gdb, the bt is (I removed the frames below this, 
that aren't really relevant):

#0  0x0000000000a95664 in pypy_g_FrameManager_loc ()
#1  0x0000000000a98bba in pypy_g_RegisterManager_make_sure_var_in_reg ()
#2  0x0000000000a88281 in pypy_g_RegAlloc__consider_copystrcontent ()
#3  0x0000000000a7ca5d in pypy_g_RegAlloc_walk_operations ()
#4  0x0000000000d43125 in pypy_g_Assembler386__assemble ()
#5  0x0000000000d4c0c6 in pypy_g_Assembler386_assemble_loop ()
#6  0x0000000000d3c93f in pypy_g_send_loop_to_backend ()
#7  0x0000000000d3e9c8 in pypy_g_compile_new_loop ()
#8  0x0000000000a28de0 in pypy_g_MetaInterp_compile ()
#9  0x0000000000a2b30f in pypy_g_MetaInterp_reached_loop_header ()
#10 0x0000000000a1b37a in pypy_g_MIFrame_opimpl_jit_merge_point ()
#11 0x00000000009fcaa2 in pypy_g_MetaInterp__interpret ()
#12 0x00000000009fce50 in pypy_g_MetaInterp__compile_and_run_once ()
#13 0x00000000009fe6ab in 
pypy_g_compile_and_run_once___pypy_jit_metainterp_jitdr_1 ()
#14 0x0000000000f93b88 in pypy_g_maybe_compile_and_run__star_5_1 ()
#15 0x0000000000d26c35 in pypy_g_jump_absolute__AccessDirect_None ()
#16 0x0000000000487103 in pypy_g_handle_bytecode__AccessDirect_None ()
#17 0x0000000000d26832 in pypy_g_portal_1 ()
#18 0x0000000000981d74 in 
pypy_g_ll_portal_runner__Unsigned_Bool_pypy_interpreter ()
#19 0x0000000000abd875 in pypy_g_PyFrame_run ()

----------
messages: 2890
nosy: agaynor, pypy-issue
priority: bug
status: unread
title: segfault in register allocator

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue815>
________________________________________


More information about the pypy-issue mailing list