You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS Ventura 13, when the vagrant-dns plugin tries to start its daemon, that process crashes with:
objc[3646]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.
objc[3646]: +[NSPlaceholderMutableString 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.
This seems to be a common issue and a widely suggested "solution" is to set an env var OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes, but I find that a bit dangerous and it's also seems not to be working for everyone.
$ vagrant dns --startvagrant-dns: process with pid 7480 started.
Check if the daemon is still running
$ vagrant dns --statuspid-file for killed process 7480 found ($HOME/.vagrant.d/tmp/dns/daemon/vagrant-dns.pid), deleting.vagrant-dns: no instances running
check logfile
$ cat $HOME/.vagrant.d/tmp/dns/daemon/vagrant-dns.outputobjc[3646]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.objc[3646]: +[NSPlaceholderMutableString 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.
What it should look like
In development mode, using a fresh install of ruby 2.7.7 it works:
$ bin/vagrant dns --startYou appear to be running Vagrant outside of the official installers.Note that the installers are what ensure that Vagrant has all requireddependencies, and Vagrant assumes that these dependencies exist. Byrunning outside of the installer environment, Vagrant may not functionproperly. To remove this warning, install Vagrant using one of theofficial packages from vagrantup.com.vagrant-dns: process with pid 7785 started.
$ bin/vagrant dns --statusYou appear to be running Vagrant outside of the official installers.Note that the installers are what ensure that Vagrant has all requireddependencies, and Vagrant assumes that these dependencies exist. Byrunning outside of the installer environment, Vagrant may not functionproperly. To remove this warning, install Vagrant using one of theofficial packages from vagrantup.com.vagrant-dns: running [pid 7785]
$ bin/vagrant dns --stopYou appear to be running Vagrant outside of the official installers.Note that the installers are what ensure that Vagrant has all requireddependencies, and Vagrant assumes that these dependencies exist. Byrunning outside of the installer environment, Vagrant may not functionproperly. To remove this warning, install Vagrant using one of theofficial packages from vagrantup.com.vagrant-dns: trying to stop process with pid 7785 sending TERM and waiting 20s ...vagrant-dns: process with pid 7785 successfully stopped.
We have just started work to update the embedded Ruby to version 3.1.3. Once that work has been merged into the installers repo we'll start to have nightly builds with the updated Ruby version that can be tested to verify if it provides a fix for this issue. I'll ping here once the work has been completed and the nightly builds are available.
Closing this as the updated version of Ruby in the installers appears to have resolved the issue. If you still experience any issues, please feel free to open a new issue.
We are trying to fix an issue over at BerlinVagrant/vagrant-dns#72
On macOS Ventura 13, when the vagrant-dns plugin tries to start its daemon, that process crashes with:
This seems to be a common issue and a widely suggested "solution" is to set an env var
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes
, but I find that a bit dangerous and it's also seems not to be working for everyone.Debug output
see above.
Expected behavior
Should not crash
Actual behavior
Crashes
Reproduction information
Vagrant version
Vagrant 2.3.4
Host operating system
macOS 13.1
Guest operating system
"bionic64", but not relevant
Steps to reproduce
(Creating or booting a box is not necessary)
vagrant plugin install vagrant-dns --plugin-version 2.2.2
What it should look like
In development mode, using a fresh install of ruby 2.7.7 it works:
Vagrantfile
Observations
My freshly installed ruby:
The embedded ruby:
A very simple test script and some description how/when it breaks can be found here: BerlinVagrant/vagrant-dns#72 (comment)
The text was updated successfully, but these errors were encountered: