Segmentation fault with Rails 7.0.3 and Ruby 3.1

Hi there I’m getting a segmentation fault on production, I don’t know how to debug this or catch the error. This is the trace of the segfault it seems to be due to a to_json encoding.

need some help to debug this. anyone has seen this on Rails 7 with Ruby 3.1 ?

Could you include the output after -- C level backtrace information?

sorry, I don’t have more traces than that. is what DigitalOcean apps give us

@michelson did you end up figuring out what’s going on? or at least how to get more info from the stacktrace?

Probably was an out-of-memory error, I had to rollback to 2.7 but now I’m running the app with 3.2.0 without any issues