Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Top frame from interpreter gets wrong filename #5849
Output on JIT and interpreter:
I'm not sure why that top frame is getting screwed up. If we change the contents of required.rb to raise, the trace is also incorrect:
This is not specific to the MRI backtrace; the JRuby format also shows the problem. It seems like a top-level backtrace element is getting stomped on.
All modes of Ruby execution handle their own backtrace and frame pushing. The startup and full interpreters push both before they begin executing. Compiled Ruby code pushes a frame only if needed, and leans on the Java stack trace for its backtrace data. The extra frames removed here are unnecessary overhead and muck up the backtrace as shown in jrubyGH-5849.