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

SIGSEGV on MacBook M1 #8657

Closed
vorot93 opened this issue Nov 29, 2022 · 4 comments
Closed

SIGSEGV on MacBook M1 #8657

vorot93 opened this issue Nov 29, 2022 · 4 comments

Comments

@vorot93
Copy link

vorot93 commented Nov 29, 2022

Crashes around the same block and on restart:

2022-11-29 22:36:51.443	I Sync data returned a new top block candidate: 2719724 -> 2766694 [Your node is 46970 blocks (2.1 months) behind]
2022-11-29 22:36:51.443	I SYNCHRONIZATION started
fish: Job 1, './build/Darwin/release-v0.18/re…' terminated by signal SIGSEGV (Address boundary error)
@selsta
Copy link
Collaborator

selsta commented Nov 29, 2022

There's an issue with the latest macOS version that we didn't figure out yet.

Workaround is to use an older SDK

diff --git a/Makefile b/Makefile
index a07ac77a1..10e3cde27 100644
--- a/Makefile
+++ b/Makefile
@@ -100,7 +100,7 @@ release-test:
 
 release-all:
 	mkdir -p $(builddir)/release
-	cd $(builddir)/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE)
+	cd $(builddir)/release && cmake -D CMAKE_OSX_SYSROOT=~/dev/MacOSX12.3.sdk/ -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release $(topdir) && $(MAKE)
 
 release-static:
 	mkdir -p $(builddir)/release

You can download the older SDK from here: https://github.com/phracker/MacOSX-SDKs/releases/tag/11.3

Alternatively you can disable RandomX JIT with: MONERO_RANDOMX_UMASK=8 env var.

@smathy
Copy link

smathy commented Jan 30, 2023

Just throwing in some keywords to help anyone else searching (and missing) with segfault or segmentation fault. Thanks for your help in the chat @selsta

@selsta
Copy link
Collaborator

selsta commented Oct 19, 2023

We found the issue, a fix will be included in the next release: tevador/RandomX#281

@philipmw
Copy link

I can confirm that the the latest git rev works on my Macbook Air M1, whereas the latest release (0.18.3.1) was consistently crashing with a segmentation fault.

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

4 participants