I had a problem with a ruby 3.3 app segfaulting on fly.io, and the fix was to increase memory size. I put this in the fly.toml:

1
2
3
4
5
[[vm]]
  size = 'shared-cpu-1x'
  memory = '512mb'
  cpu_kind = 'shared'
  cpus = 1