lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.11k stars 162 forks source link

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

Open salomvary opened 3 years ago

salomvary commented 3 years ago

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.

lavv17 commented 3 years ago

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.

salomvary commented 3 years ago

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

PeterSommerlad commented 3 years ago

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 ✔, openssl@1.1 ✘, 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 commented 3 years ago

I found a workaround...

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

before calling lftp prevents the crash.