Skip to content

[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called #38560

@conradwt

Description

@conradwt

Steps to reproduce

rails new testapp -d postgresql
cd testapp
rails g scaffold post title body:text
rails db:migrate
rails c
irb(main):001:0> Post.create(title: "This is a test 1", body:  "This is a body 1")

Expected behavior

I would expect to get a response saying that the Post was successfully created.

Actual behavior

objc[18501]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[18501]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

System configuration

Rails version: Rails 6.0.2.1

Ruby version: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions