lftp icon indicating copy to clipboard operation
lftp copied to clipboard

macOS crash: objc[58253]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called.

Open salomvary opened this issue 3 years ago • 4 comments

Latest lftp stops working on connect with the following error:

objc[58253]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called. objc[58253]: +[__NSPlaceholderDictionary 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.

Version 4.9.2 Libraries used: idn2 2.3.0, libiconv 1.11, OpenSSL 1.1.1k 25 Mar 2021, Readline 8.1, zlib 1.2.11

macOS 10.14.6

Installed via Homebrew, also tried recompiling but got the same results.

salomvary avatar May 05 '21 13:05 salomvary

This is quite strange error as lftp does not use threads at all.

On Wed, 5 May 2021 at 16:10, Márton Salomváry @.***> wrote:

Latest lftp stops working on connect with the following error:

objc[58253]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called. objc[58253]: +[__NSPlaceholderDictionary 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.

Version 4.9.2 Libraries used: idn2 2.3.0, libiconv 1.11, OpenSSL 1.1.1k 25 Mar 2021, Readline 8.1, zlib 1.2.11

macOS 10.14.6

Installed via Homebrew, also tried recompiling but got the same results.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lavv17/lftp/issues/631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLWXF5RNMPTEDLUNVFDCDTME7TPANCNFSM44EWHATQ .

-- Alexander.

lavv17 avatar May 06 '21 07:05 lavv17

@lavv17 Is there any way I can provide more detail?

salomvary avatar May 06 '21 08:05 salomvary

I am having the same problem...

brew info lftp
lftp: stable 4.9.2 (bottled)
Sophisticated file transfer program
https://lftp.yar.ru/
/usr/local/Cellar/lftp/4.9.2_1 (37 files, 3.3MB) *
  Poured from bottle on 2021-01-11 at 18:02:52
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/lftp.rb
License: GPL-3.0-or-later
==> Dependencies
Required: libidn2 ✔, [email protected] ✘, readline ✔
==> Analytics
install: 1,547 (30 days), 5,103 (90 days), 35,468 (365 days)
install-on-request: 1,547 (30 days), 5,099 (90 days), 35,040 (365 days)
build-error: 0 (30 days)

PeterSommerlad avatar Aug 27 '21 15:08 PeterSommerlad

I found a workaround...

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

before calling lftp prevents the crash.

PeterSommerlad avatar Aug 27 '21 15:08 PeterSommerlad