Skip to content

Segmentation fault #538

@hbontempo-cw

Description

@hbontempo-cw

When trying to access the database I'm receiving a Segmentation fault.
Tried to reinstall the gem, libpq, and the ruby itself. Not sure how to proceed here. Can anyone help me figure it out what is going on?

System

OS: MacOS Ventura (13.4)
Chip: Apple M1
Ruby: 3.2.2
ruby-pg: 1.5.3

Behaviour

/Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/pg-1.5.3/lib/pg/connection.rb:690: [BUG] Segmentation fault at 0x00000001066c0a96
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]

-- Crash Report log information --------------------------------------------
   See Crash Report log file in one of the following locations:             
     * ~/Library/Logs/DiagnosticReports                                     
     * /Library/Logs/DiagnosticReports                                      
   for more details.                                                        
Don't forget to include the above Crash Report log file in bug reports.     

-- Control frame information -----------------------------------------------
c:0071 p:---- s:0474 e:000473 CFUNC  :connect_poll
c:0070 p:0358 s:0470 e:000469 METHOD /Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/pg-1.5.3/lib/pg/connection.rb:690
c:0069 p:0265 s:0457 e:000456 METHOD /Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/pg-1.5.3/lib/pg/connection.rb:824
c:0068 p:0007 s:0446 e:000445 METHOD /Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/pg-1.5.3/lib/pg/connection.rb:759
c:0067 p:0012 s:0440 e:000439 METHOD /Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/pg-1.5.3/lib/pg.rb:63
c:0066 p:0006 s:0434 e:000433 METHOD /Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/activerecord-7.0.5/lib/active_record/connection_adap
c:0065 p:0079 s:0428 e:000426 METHOD /Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/activerecord-7.0.5/lib/active_record/connection_adap [FINISH]
c:0064 p:---- s:0420 e:000419 CFUNC  :public_send
c:0063 p:0014 s:0414 e:000413 METHOD /Users/xxx/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/activerecord-7.0.5/lib/active_record/connection_adap
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions