Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KJTsanaktsidis/21d7ed46251fbd87bfa14cccbe704133 to your computer and use it in GitHub Desktop.
Save KJTsanaktsidis/21d7ed46251fbd87bfa14cccbe704133 to your computer and use it in GitHub Desktop.
Backtrace showing st_table doing ruby_xmalloc
#0 heap_page_add_freeobj (objspace=0xeb9800, page=0x153da2c0, obj=139975204190960) at gc.c:1850
#1 0x00007f4e98cf35ab in gc_sweep_plane (objspace=0xeb9800, heap=0xeb9838, p=139975204190960, bitset=1, ctx=0x7ffe5ff47e20) at gc.c:5293
#2 0x00007f4e98cf39ad in gc_sweep_page (objspace=0xeb9800, size_pool=0xeb9828, heap=0xeb9838, ctx=0x7ffe5ff47e20) at gc.c:5389
#3 0x00007f4e98cf3f89 in gc_sweep_step (objspace=0xeb9800, size_pool=0xeb9828, heap=0xeb9838) at gc.c:5665
#4 0x00007f4e98cf485d in gc_sweep (objspace=0xeb9800) at gc.c:5900
#5 0x00007f4e98cf8c49 in gc_marks_rest (objspace=0xeb9800) at gc.c:8100
#6 0x00007f4e98cf8daf in gc_marks (objspace=0xeb9800, full_mark=0) at gc.c:8151
#7 0x00007f4e98cfae13 in gc_start (objspace=0xeb9800, reason=512) at gc.c:8967
#8 0x00007f4e98cfaa8a in garbage_collect (objspace=0xeb9800, reason=512) at gc.c:8853
#9 0x00007f4e98cfb567 in garbage_collect_with_gvl (objspace=0xeb9800, reason=512) at gc.c:9225
#10 0x00007f4e98d01238 in objspace_malloc_increase_body (objspace=0xeb9800, mem=0x7f4e6f322010, new_size=50335728, old_size=0, type=MEMOP_TYPE_MALLOC) at gc.c:11298
#11 0x00007f4e98d012d2 in objspace_malloc_fixup (objspace=0xeb9800, mem=0x7f4e6f322010, size=50335728) at gc.c:11376
#12 0x00007f4e98d01378 in objspace_xmalloc0 (objspace=0xeb9800, size=50331648) at gc.c:11447
#13 0x00007f4e98d015e8 in ruby_xmalloc0 (size=50331648) at gc.c:11666
#14 0x00007f4e98d0161a in ruby_xmalloc_body (size=50331648) at gc.c:11675
#15 0x00007f4e98d06c61 in ruby_xmalloc (size=50331648) at gc.c:13653
#16 0x00007f4e98e5d508 in rb_st_init_table_with_size (type=0x7f4e990bd170 <st_hashtype_num>, size=1425989) at st.c:559
#17 0x00007f4e98e5d78e in rebuild_table (tab=0x259605a0) at st.c:727
#18 0x00007f4e98e5e34c in rebuild_table_if_necessary (tab=0x259605a0) at st.c:1071
#19 0x00007f4e98e5e398 in rb_st_insert (tab=0x259605a0, key=139975070100040, value=470150048) at st.c:1089
#20 0x00007f4e94e7c46a in collector_tphook_newobj (tpval=139975092980000, data=0x25d42f50) at ../../../../ext/ruby_memprofiler_pprof/collector.c:362
#21 0x00007f4e98f0bf19 in tp_call_trace (tpval=139975092980000, trace_arg=0x7ffe5ff483c0) at vm_trace.c:1146
#22 0x00007f4e98f0a340 in exec_hooks_body (ec=0xeb9f80, list=0xeba1a0, trace_arg=0x7ffe5ff483c0) at vm_trace.c:331
#23 0x00007f4e98f0a41e in exec_hooks_unprotected (ec=0xeb9f80, list=0xeba1a0, trace_arg=0x7ffe5ff483c0) at vm_trace.c:360
#24 0x00007f4e98f0a66b in rb_exec_event_hooks (trace_arg=0x7ffe5ff483c0, hooks=0xeba1a0, pop_p=0) at vm_trace.c:405
#25 0x00007f4e98cea43e in rb_exec_event_hook_orig (ec=0xeb9f80, hooks=0xeba1a0, flag=1048576, self=139975092984640, id=0, called_id=0, klass=0, data=139975070100040, pop_p=0)
at /home/kj/.rbenv/sources/3.1.2/ruby-3.1.2/vm_core.h:2052
#26 0x00007f4e98ced5b0 in gc_event_hook_body (ec=0xeb9f80, objspace=0xeb9800, event=1048576, data=139975070100040) at gc.c:2222
#27 0x00007f4e98cedb31 in newobj_slowpath (size_pool_idx=0, wb_protected=1, cr=0xeba190, objspace=0xeb9800, flags=5, klass=139975539975200) at gc.c:2489
#28 newobj_slowpath_wb_protected (klass=139975539975200, flags=5, objspace=0xeb9800, cr=0xeba190, size_pool_idx=0) at gc.c:2504
#29 0x00007f4e98cede5d in newobj_of0 (klass=139975539975200, flags=5, wb_protected=1, cr=0xeba190, alloc_size=40) at gc.c:2545
#30 0x00007f4e98cedeca in newobj_of (klass=139975539975200, flags=5, v1=0, v2=0, v3=0, wb_protected=1, alloc_size=40) at gc.c:2555
#31 0x00007f4e98cedfcc in rb_wb_protected_newobj_of (klass=139975539975200, flags=5, size=40) at gc.c:2577
#32 0x00007f4e98e6b38f in str_alloc (klass=139975539975200, size=40) at string.c:845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment