Skip to content

JVM segfault with 9K and -noverify #2566

@grddev

Description

@grddev

I tried running the test-suite of one of our larger code-bases against jruby-head, and to my surprise the JVM suddenly segfaulted halfway through.

After some digging, I realized that the crash only happened when running with the option -J-noverify. At some point I put this flag into JRUBY_OPTS in order to improve start-up time. If I remove this flag, I see no crash, and no sign of any problem whatsoever. Similarly, if I run in jruby-1.7 (with or without -J-noverify) everything works well. Is this flag no longer supported by jruby-head?

I'm guessing some part of the new bytecode generation is the cause for the particular issue, and to that end I spent some time reducing thousands of lines of code to the following short snippet. With this snippet I can consistently reproduce the issue:

instance_eval do
  begin
    raise
  rescue
    nil
  ensure
    nil
  end
end

Beyond this point, I wasn't able to remove any more parts while retaining the segfault. I'm guessing that the next step to understand what is going on here, but I wouldn't really know where to start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions