translator/sandbox/test/test_sandbox.py::TestPrintedResults::()::test_safefuncs
self = <rpython.translator.sandbox.test.test_sandbox.TestPrintedResults instance at 0xfffcaba935a0>
def test_safefuncs(self):
import math
def entry_point(argv):
a = float(argv[1])
print int(math.floor(a - 0.2)),
print int(math.ceil(a)),
print int(100.0 * math.sin(a)),
mantissa, exponent = math.frexp(a)
print int(100.0 * mantissa), exponent,
fracpart, intpart = math.modf(a)
print int(100.0 * fracpart), int(intpart),
print
return 0
> self.run(entry_point, ["3.011"], "2 4 13 75 2 1 3\n")
translator/sandbox/test/test_sandbox.py:352:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/sandbox/test/test_sandbox.py:335: in run
output, error = proc.communicate()
translator/sandbox/sandlib.py:307: in communicate
self.handle_forever()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.translator.sandbox.sandlib.SimpleIOSandboxedProc object at 0xfffcab540810>
def handle_forever(self):
returncode = self.handle_until_return()
if returncode != 0:
raise OSError("the sandboxed subprocess exited with code %d" % (
> returncode,))
E OSError: the sandboxed subprocess exited with code -11
translator/sandbox/sandlib.py:220: OSError
---------- Captured stderr call ----------
[flowgraph] (rpython.translator.sandbox.test.test_sandbox:341)entry_point
[translation:info] Annotating&simplifying...
[c5819114a428d80] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5819114fc5fb80] translation-task}
[translation:info] RTyping...
[c5819114fc71300] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 100 / 225 blocks (44%)
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.translator.sandbox.rsandbox:157)sandboxed_ll_os.ll_os_write
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:199)ll_math_modf
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.rstr:996)ll_float
[flowgraph] (rpython.rlib.rfloat:87)rstring_to_float
[flowgraph] (rpython.rlib.rdtoa:54)strtod
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_strtod
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)floor
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:367)ll_math_ceil
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:345)ll_math_sin
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 200 / 436 blocks (45%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 300 / 440 blocks (68%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 400 / 442 blocks (90%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_0
[rtyper] -=- specialized 459 blocks -=-
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)sin
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ceil
[flowgraph] (rpython.rlib.rmarshal:223)dump_string_or_none
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_ceil
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)modf
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rmarshal:129)dump_none
[flowgraph] (rpython.rlib.rmarshal:119)w_long
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)copysign
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rmarshal:473)dump_tuple
[flowgraph] (rpython.rlib.rmarshal:157)dump_int
[flowgraph] (rpython.rlib.rmarshal:184)dump_longlong
[flowgraph] (rpython.translator.sandbox.rsandbox:72)sandboxed_io
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Array of Char {'nolength': True} .__init__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Array of Char {'nolength': True} .__enter__
[flowgraph] (rpython.rlib.rfloat:585)_error_check_errno_unary_math
[flowgraph] (rpython.rlib.rfloat:567)_likely_raise
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fabs
[flowgraph] (rpython.translator.sandbox.rsandbox:40)writeall_not_sandboxed
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Array of Char {'nolength': True} .__exit__
[flowgraph] (rpython.translator.sandbox.rsandbox:55)FdLoader.__init__
[flowgraph] (rpython.rlib.rmarshal:173)load_int
[flowgraph] (rpython.rlib.rmarshal:312)readchr
[flowgraph] (rpython.rlib.rmarshal:284)Loader.__init__
[flowgraph] (rpython.translator.sandbox.rsandbox:60)FdLoader.need_more_data
[flowgraph] (rpython.rlib.rmarshal:325)readlong
[flowgraph] (rpython.translator.sandbox.rsandbox:90)reraise_error
[flowgraph] (rpython.rlib.rmarshal:166)load_int_nonneg
[flowgraph] (rpython.rlib.rmarshal:288)Loader.check_finished
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_scoped_allocator_0
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:91)ll_math_isnan
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 500 / 694 blocks (72%)
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[rtyper] specializing: 600 / 711 blocks (84%)
[flowgraph] (rpython.rtyper.rlist:792)ll_extend_with_str
[flowgraph] (rpython.rtyper.rlist:795)ll_extend_with_str_slice_startonly
[flowgraph] (rpython.rtyper.rlist:547)listItemType
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 700 / 733 blocks (95%)
[rtyper] -=- specialized 274 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c58191170bcf100] translation-task}
[translation:info] lltype back-end optimisations...
[c58191170bdc200] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v35102___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v35108___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 2 cast_pointers in ll_math_modf__Float
[backendopt:removecasts] removed 3 cast_pointers in ll_float__rpy_stringPtr
[backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString
[backendopt:removecasts] removed 1 cast_pointers in ll_math_sin__Float
[backendopt:removecasts] removed 2 cast_pointers in ll_math_frexp__Float
[backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed
[backendopt:removecasts] removed 3 cast_pointers in _likely_raise
[backendopt:removecasts] removed 2 cast_pointers in writeall_not_sandboxed
[backendopt:removecasts] removed 1 cast_pointers in load_int
[backendopt:removecasts] removed 4 cast_pointers in FdLoader.need_more_data
[backendopt:removecasts] removed 12 cast_pointers in reraise_error
[backendopt:removecasts] removed 1 cast_pointers in load_int_nonneg
[backendopt:removecasts] removed 1 cast_pointers in Loader.check_finished
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_getitem_nonneg__dum_checkidxConst_ll_getitem_fastConst_listPtr_Signed
[backendopt:removecasts] removed 2 cast_pointers in ll_extend_with_str_slice_startonly__listPtr_rpy_stringPtr_ll_strlenConst_ll_stritem_nonnegConst_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 isvirtual__v35123___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v35131___simple_call__function
[backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 0.00 ceil__Float_star_1
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_fastConst_listPtr_Signed
[backendopt:inlining] 0.00 conditional_call__v35112___simple_call__function_star_3
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 isconstant__v35133___simple_call__function
[backendopt:inlining] 0.00 isconstant__v35111___simple_call__function
[backendopt:inlining] 0.00 isconstant__v35110___simple_call__function
[backendopt:inlining] 0.00 isconstant__v35128___simple_call__function
[backendopt:inlining] 0.00 isconstant__v35117___simple_call__function
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_checkidxConst_ll_getitem_fastConst_listPtr_Signed
[backendopt:inlining] 0.00 memo_emptystrfun_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isvirtual__v35106___simple_call__function
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 sin__Float_star_1
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 modf__Float_arrayPtr_star_2
[backendopt:inlining] 0.00 conditional_call__v35134___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v35116___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v35105___simple_call__function
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 floor__Float_star_1
[backendopt:inlining] 0.00 isconstant__v35130___simple_call__function
[backendopt:inlining] 0.00 isconstant__v35122___simple_call__function
[backendopt:inlining] 0.00 frexp__Float_arrayPtr_star_2
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null__SomeString
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 copysign__Float_Float_star_2
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null__SomeString
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null__SomeString
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_math_isnan__Float
[backendopt:inlining] 2.00 ScopedAlloc_Array of Char {'nolength': True} .__enter__
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 4.00 ll_math_isfinite__Float
[backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[backendopt:inlining] 4.00 __exit____star_3
[backendopt:inlining] 4.00 Loader.__init__
[backendopt:inlining] 4.00 ScopedAlloc_Array of Char {'nolength': True} .__init__
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 5.50 ll_math_isinf__Float
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null__SomeString
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 4.00 get_saved_errno
[backendopt:inlining] 2.00 ll_len__listPtr
[backendopt:inlining] 7.00 dump_none
[backendopt:inlining] 7.00 dump_int
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 rstring_to_float__SomeString
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 8.00 ll_newemptylist__GcStruct_listLlT
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 6.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 11.00 ll_extend_with_str__listPtr_rpy_stringPtr_ll_strlenConst_ll_stritem_nonnegConst
[backendopt:inlining] 8.00 FdLoader.__init__
[backendopt:inlining] 6.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 10.00 scoped_alloc__array_False
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v35104___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v35126___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v35135___simple_call__function
[backendopt:inlining] 14.00 load_int_nonneg
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 13.00 Loader.check_finished
[backendopt:inlining] 18.12 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed
[backendopt:inlining] 21.00 ccall_ceil
[backendopt:inlining] 23.00 dump_longlong
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v35137___simple_call__function
[backendopt:inlining] 19.25 _errno_after__v35101___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v35120___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v35125___simple_call__function
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 27.87 ll_math_frexp__Float
[backendopt:inlining] 27.50 _error_check_errno_unary_math__False
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v35136___simple_call__function
[backendopt:inlining] 31.87 _errno_before__v35100___simple_call__function
[backendopt:inlining] inlined 263 callsites.
[backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 4 simple mallocs removed in 'entry_point'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v35112___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v35134___simple_call__function_star_3'
[backendopt:malloc] 3 simple mallocs removed in 'll_math_modf__Float'
[backendopt:malloc] 1 simple mallocs removed in 'strtod__SomeString'
[backendopt:malloc] 5 simple mallocs removed in '_PyPy_dg_strtod__arrayPtr_arrayPtr_star_2'
[backendopt:malloc] 3 simple mallocs removed in 'floor__Float_star_1'
[backendopt:malloc] 3 simple mallocs removed in 'll_math_ceil__Float'
[backendopt:malloc] 3 simple mallocs removed in 'll_math_sin__Float'
[backendopt:malloc] 3 simple mallocs removed in 'sin__Float_star_1'
[backendopt:malloc] 3 simple mallocs removed in 'ceil__Float_star_1'
[backendopt:malloc] 5 simple mallocs removed in 'frexp__Float_arrayPtr_star_2'
[backendopt:malloc] 5 simple mallocs removed in 'modf__Float_arrayPtr_star_2'
[backendopt:malloc] 3 simple mallocs removed in 'copysign__Float_Float_star_2'
[backendopt:malloc] 3 simple mallocs removed in 'sandboxed_io'
[backendopt:malloc] 3 simple mallocs removed in '_likely_raise'
[backendopt:malloc] 3 simple mallocs removed in 'fabs__Float_star_1'
[backendopt:malloc] 3 simple mallocs removed in 'FdLoader.need_more_data'
[backendopt:malloc] removed 71 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in load_int
[backendopt] merging blocks in reraise_error
[c5819117f108180] translation-task}
[translation:info] inserting stack checks...
[c5819117f118f00] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5819117fa2fd80] translation-task}
[translation:info] Creating database for generating c source...
[c5819117fa3e000] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[flowgraph] (rpython.memory.gctransform.refcounting:34)ll_incref
[flowgraph] (rpython.memory.gctransform.refcounting:38)ll_decref
[flowgraph] (rpython.memory.gctransform.refcounting:45)ll_decref_simple
[flowgraph] (rpython.memory.gctransform.refcounting:53)ll_no_pointer_dealloc
[flowgraph] (rpython.memory.gctransform.refcounting:58)ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.refcounting:64)ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.refcounting:78)ll_identityhash
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:461)_ll_compute_size
[rtyper] specializing: 800 / 839 blocks (95%)
[rtyper] -=- specialized 60 more blocks -=-
[backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length_zero__Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize__Signed
[backendopt:removecasts] removed 1 cast_pointers in _ll_compute_size__Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_malloc_varsize_no_length__Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length__Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize_zero__Signed
[backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize__Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 _ll_compute_size__Signed_Signed_Signed
[backendopt:inlining] 9.00 _ll_malloc_fixedsize__Signed
[backendopt:inlining] 16.50 _ll_malloc_varsize_no_length__Signed_Signed_Signed
[backendopt:inlining] 20.75 ll_malloc_varsize_no_length__Signed_Signed_Signed
[backendopt:inlining] inlined 6 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[flowgraph] (rpython.translator.c.genc:261)entrypoint_wrapper
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[rtyper] specializing: 900 / 915 blocks (98%)
[rtyper] -=- specialized 76 more blocks -=-
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[flowgraph] (rpython.memory.gctransform.refcounting:264)ll_dealloc
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[flowgraph] (?:1)ll_deallocator
[rtyper] -=- specialized 28 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 4.00 ll_runtime_type_info__objectPtr
[backendopt:inlining] inlined 1 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt:malloc] removed 0 simple mallocs in total
[c:database] GC transformer: finished helpers
[c:database] GC transformer: finished tables
[c:database] Inlining GC helpers and postprocessing
[c] 327 nodes [ array: 25 func: 95 refcnt rtti: 18 struct: 189 ]
[c:database] Completed
[translation:info] database for generating C source was created
[c581911b18f0c80] translation-task}
[translation:info] Generating c source...
[c581911b1900280] {translation-task
starting source_c
[c:writing] structdef.h
[c:writing] forwarddecl.h
[c:writing] preimpl.h
[c:writing] data_rpython_flowspace.c
[c:writing] data_rpython_memory_gctransform.c
[c:writing] data_rpython_rlib.c
[c:writing] data_rpython_rtyper_lltypesystem_module.c
[c:writing] data_rpython_translator_c.c
[c:writing] data_rpython_translator_sandbox.c
[c:writing] nonfuncnodes.c
[c:writing] data_rpython_rlib_1.c
[c:writing] data_rpython_rtyper_lltypesystem.c
[c:writing] data_rpython_rtyper_lltypesystem_module_1.c
[c:writing] data_rpython_translator_sandbox_1.c
[c:writing] data_rpython_translator_sandbox_test.c
[c:writing] implement.c
[c:writing] rpython_flowspace.c
[c:writing] rpython_memory_gctransform.c
[c:writing] rpython_rlib.c
[c:writing] rpython_rtyper.c
[c:writing] rpython_rtyper_lltypesystem.c
[c:writing] rpython_rtyper_lltypesystem_module.c
[c:writing] rpython_translator.c
[c:writing] rpython_translator_c.c
[c:writing] rpython_translator_sandbox.c
[c:writing] rpython_translator_sandbox_test.c
[translation:info] written: /tmp/pytest/usession-main-4160/testing_12/testing_12.c
[c581911c2551000] translation-task}
[translation:info] Compiling c source...
[c581911c255d980] {translation-task
starting compile_c
[platform:execute] make in /tmp/pytest/usession-main-4160/testing_12
[platform:WARNING] In file included from /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/g_include.h:9,
[platform:WARNING] from rpython_flowspace.c:6:
[platform:WARNING] rpython_flowspace.c: In function ‘pypy_g_rpython_print_end’:
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:21:27: warning: attempt to free a non-heap object ‘pypy_g_rpy_string_17’ [-Wfree-nonheap-object]
[platform:WARNING] 21 | #define OP_RAW_FREE(p, r) free(p); COUNT_FREE;
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:37:20: note: in expansion of macro ‘OP_RAW_FREE’
[platform:WARNING] 37 | #define OP_FREE(p) OP_RAW_FREE(p, do_not_use)
[platform:WARNING] | ^~~~~~~~~~~
[platform:WARNING] rpython_flowspace.c:273:4: note: in expansion of macro ‘OP_FREE’
[platform:WARNING] 273 | OP_FREE(l_adr_2220);
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:21:27: warning: attempt to free a non-heap object ‘pypy_g_rpy_string_17’ [-Wfree-nonheap-object]
[platform:WARNING] 21 | #define OP_RAW_FREE(p, r) free(p); COUNT_FREE;
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:37:20: note: in expansion of macro ‘OP_RAW_FREE’
[platform:WARNING] 37 | #define OP_FREE(p) OP_RAW_FREE(p, do_not_use)
[platform:WARNING] | ^~~~~~~~~~~
[platform:WARNING] rpython_flowspace.c:367:5: note: in expansion of macro ‘OP_FREE’
[platform:WARNING] 367 | OP_FREE(l_v35373);
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:21:27: warning: attempt to free a non-heap object ‘pypy_g_rpy_string_17’ [-Wfree-nonheap-object]
[platform:WARNING] 21 | #define OP_RAW_FREE(p, r) free(p); COUNT_FREE;
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:37:20: note: in expansion of macro ‘OP_RAW_FREE’
[platform:WARNING] 37 | #define OP_FREE(p) OP_RAW_FREE(p, do_not_use)
[platform:WARNING] | ^~~~~~~~~~~
[platform:WARNING] rpython_flowspace.c:484:5: note: in expansion of macro ‘OP_FREE’
[platform:WARNING] 484 | OP_FREE(l_adr_2227);
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:21:27: warning: attempt to free a non-heap object ‘pypy_g_rpy_string_17’ [-Wfree-nonheap-object]
[platform:WARNING] 21 | #define OP_RAW_FREE(p, r) free(p); COUNT_FREE;
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:37:20: note: in expansion of macro ‘OP_RAW_FREE’
[platform:WARNING] 37 | #define OP_FREE(p) OP_RAW_FREE(p, do_not_use)
[platform:WARNING] | ^~~~~~~~~~~
[platform:WARNING] rpython_flowspace.c:530:5: note: in expansion of macro ‘OP_FREE’
[platform:WARNING] 530 | OP_FREE(l_adr_2223);
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:21:27: warning: attempt to free a non-heap object ‘pypy_g_rpy_string_17’ [-Wfree-nonheap-object]
[platform:WARNING] 21 | #define OP_RAW_FREE(p, r) free(p); COUNT_FREE;
[platform:WARNING] | ^~~~~~~
[platform:WARNING] /build_dir/rpython-linux-aarch64/build/rpython/translator/c/src/mem.h:37:20: note: in expansion of macro ‘OP_RAW_FREE’
[platform:WARNING] 37 | #define OP_FREE(p) OP_RAW_FREE(p, do_not_use)
[platform:WARNING] | ^~~~~~~~~~~
[platform:WARNING] rpython_flowspace.c:578:4: note: in expansion of macro ‘OP_FREE’
[platform:WARNING] 578 | OP_FREE(l_adr_2224);
[platform:WARNING] | ^~~~~~~
[translation:info] created: /tmp/pytest/usession-main-4160/testing_12/testing_12
[c581912459cb500] translation-task}
[translation:info] usession directory: /tmp/pytest/usession-main-4160
builder: rpython-linux-aarch64 build #534
test: translator/sandbox/test/test_sandbox/py/TestPrintedResults/()/test_safefuncs