PG gem segmentation fault when running with debugger, ok without.

Starting my server without debugger works fine with debugger I get the segmentation fault/crash below. 

This on a mac using the pg gem, server start details rubymine build Build #RM-251.23774.429, built on April 14, 2025

23:39:36 web.1        | Puma starting in single mode...
23:39:36 web.1        | * Puma version: 6.6.0 ("Return to Forever")
23:39:36 web.1        | * Ruby version: ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +YJIT +PRISM [arm64-darwin24]
23:39:36 web.1        | *  Min threads: 3
23:39:36 web.1        | *  Max threads: 3
23:39:36 web.1        | *  Environment: development
23:39:36 web.1        | *          PID: 51618
23:39:36 web.1        | * Listening on ssl://0.0.0.0:3000?key=localhost_2-key.pem&cert=localhost_2.pem
23:39:36 web.1        | Use Ctrl-C to stop

Crash file
Upload id: 2025_05_11_GXrcJRWaMgiUouCBRsAYr6 (file: Debugging Crash log.txt)

0

Actually solved it almost by accident. The default “debug” gem had been added to my gemfile when I was upgrading to Rails 8. Removing this removed the crashing.

0

请先登录再写评论。