Project

General

Profile

Actions

Misc #19176

open

Missing insns_info for iseqs in ruby 3.2 built with debug options

Added by hurricup (Alexandr Evstigneev) over 1 year ago. Updated over 1 year ago.

Status:
Open
Assignee:
-
[ruby-core:111172]

Description

I'm not quite sure it is a proper place to ask questions, correct me if I'm wrong.
But I have a problem with ruby-3.2.0 previews. Looks like iseq is missing insns_infos.

It works fine in with pre-3.2 rubies but seems something has changed and I can't figure out - what exactly.

It looks like this:

You may see that body, supposed to be a pointer to iseq_insn_info_entry contains some 0x7 pointing nowhere. And size for insns_info in all iseq I can find with iterating objspace is zero.


Files

clipboard-202212031723-don1h.png (375 KB) clipboard-202212031723-don1h.png hurricup (Alexandr Evstigneev), 12/03/2022 01:23 PM

Updated by hurricup (Alexandr Evstigneev) over 1 year ago

This happening only if ruby is built with following options: -C --with-valgrind -E CFLAGS='-O0 -g3 -fno-inline -ggdb -DHAVE_DEBUG'
Not sure which one causing this.

Actions #2

Updated by hurricup (Alexandr Evstigneev) over 1 year ago

  • Subject changed from How to find insns_info for iseq in ruby 3.2 to How to find insns_info for iseq in ruby 3.2 built with debug options
Actions #3

Updated by hurricup (Alexandr Evstigneev) over 1 year ago

  • Subject changed from How to find insns_info for iseq in ruby 3.2 built with debug options to Missing insns_info for iseqs in ruby 3.2 built with debug options
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0