Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tor crashes on OS X 10.11.6 / Ricochet 1.1.4 #480

Closed
taoeffect opened this issue Nov 8, 2016 · 8 comments
Closed

tor crashes on OS X 10.11.6 / Ricochet 1.1.4 #480

taoeffect opened this issue Nov 8, 2016 · 8 comments

Comments

@taoeffect
Copy link

The Tor tab shows: Process crashed

dyld: lazy symbol binding failed: Symbol not found: _getentropy
Referenced from: /Applications/Ricochet.app/Contents/MacOS/tor
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _getentropy
Referenced from: /Applications/Ricochet.app/Contents/MacOS/tor
Expected in: /usr/lib/libSystem.B.dylib

Crash report attached: tor_2016-11-07.crash.zip

@special
Copy link
Member

special commented Nov 8, 2016

This week in "Apple did something weird with XCode..."

OS Version: Mac OS X 10.11.6

Looks like _getentropy was added in 10.12, and Tor automatically picked it up. That is strange: we build with -mmacosx-version-min=10.7, which should hide newer symbols.

Investigating further. Workarounds are to update to Sierra, replace Ricochet.app/Contents/MacOS/tor with another tor binary and make codesign stop screaming, or remove that file and put a tor in $PATH (and maybe also make codesign stop screaming).

@taoeffect
Copy link
Author

Awesome, to help others with the workaround:

  1. Install Homebrew and get it setup / updated
  2. brew install tor
  3. Then in a new terminal window (or after running rehash to detect new tor binary):
cd /Applications/Ricochet.app/Contents/MacOS
rm -f tor
ln -s $(which tor)

Works like a charm. Oddly enough there was no complaint when I launched it via the Dock again... even though I have GateKeeper set to allow only from Mac App Store and identified developers... Perhaps because I already launched it once? (Is this a security bug in OS X that I just discovered?)

@special
Copy link
Member

special commented Nov 8, 2016

macOS SDK bug: <sys/random.h> is supposed to have an __OSX_AVAILABLE_STARTING macro for getentropy.

This is going to require patching tor in the build, which is something I prefer to avoid, but.. :/

special added a commit to special/buildscripts that referenced this issue Nov 8, 2016
See the patch for details, and the ricochet bug:

ricochet-im/ricochet#480

Incidentally, fix this script being broken due to a stray 'fi'
@special
Copy link
Member

special commented Nov 8, 2016

Rebuilt with that patch. Please give this a try and let me know if it works:

https://ricochet.im/releases/1.1.4/ricochet-1.1.4.1-macos.dmg
https://ricochet.im/releases/1.1.4/ricochet-1.1.4.1-macos.dmg.asc

@taoeffect
Copy link
Author

Fixed something, still broken:

Nov 07 20:02:08.731 [notice] Tor v0.2.8.9 running on Darwin with Libevent 2.0.22-stable, OpenSSL 1.0.2j and Zlib 1.2.5.
Nov 07 20:02:08.732 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Nov 07 20:02:08.733 [notice] Read configuration file "/Users/[user]/Library/Application Support/Ricochet/Ricochet/tor/default_torrc".
Nov 07 20:02:08.733 [notice] Read configuration file "/Users/[user]/Library/Application Support/Ricochet/Ricochet/tor//torrc".
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
Referenced from: /Applications/Ricochet.app/Contents/MacOS/tor
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _clock_gettime
Referenced from: /Applications/Ricochet.app/Contents/MacOS/tor
Expected in: /usr/lib/libSystem.B.dylib

tor_2016-11-07.crash.zip

special added a commit to special/buildscripts that referenced this issue Nov 8, 2016
See the patch for details, and this ricochet bug:

ricochet-im/ricochet#480

Incidentally, fix this script being broken due to a stray 'fi'
@special
Copy link
Member

special commented Nov 8, 2016

Rebuilt with that patch. Please give this a try and let me know if it works:

https://ricochet.im/releases/1.1.4/ricochet-1.1.4.1-macos.dmg
https://ricochet.im/releases/1.1.4/ricochet-1.1.4.1-macos.dmg.asc

Please try again, same links. To make sure:

$ shasum -a 256 ricochet-1.1.4.1-macos.dmg
e5fbcbebe51fa52d9443fd2a07714d0e6e087c314a9c3eecf73ed4da8ca9e8aa  ricochet-1.1.4.1-macos.dmg

@taoeffect
Copy link
Author

taoeffect commented Nov 8, 2016

Hey that worked, thanks! 😄

@special
Copy link
Member

special commented Nov 8, 2016

Great! I updated the GitHub release and website with the new link. Should be solved now. Thanks!

@special special closed this as completed Nov 8, 2016
special added a commit to ricochet-im/buildscripts that referenced this issue Nov 8, 2016
See the patch for details, and this ricochet bug:

ricochet-im/ricochet#480

Incidentally, fix this script being broken due to a stray 'fi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants