- 
selsta
is there anything else we can try about this issue? 
tevador/RandomX #262 
 
- 
selsta
somehow I can't imagine that JIT is broken for a year now and no other program (e.g. browsers) run into this
 
- 
hyc
isn't it only broken with particular SDK ?
 
- 
selsta
it's weird, using an old SDK solves it when starting monerod from the command line
 
- 
selsta
but when I start monerod from the GUI as a detached process it also crashes
 
- 
hyc
then maybe it's an app signing issue or similar
 
- 
selsta
I had to add this workaround now 
monero-project/monero-gui #4157 
 
- 
hyc
ugh
 
- 
hyc
the fact that it works from CLI tends to imply that the code is fine as is, but maybe some other metadata is missing
 
- 
hyc
like app signature crap
 
- 
hyc
what about running randomx-test or randomx-benchmark ?
 
- 
selsta
will try to run randomx-test
 
- 
hyc
we ought to be able to see some API call failing, returning an error code
 
- 
hyc
I guess there's no strace on macos tho. maybe dtrace or something similar
 
- 
selsta
this is where it crashes when starting as a detached process 
irccloud.com/pastebin/zm47Sarz 
 
- 
hyc
that doesn't tell me much, location-wise. it just says something in monerod.
 
- 
hyc
and it says a NULL pointer deref
 
- 
hyc
is that a binary built with debug symbols?
 
- 
selsta
it's the release binary we built using depends/gitian
 
- 
selsta
that uses the old sdk
 
- 
hyc
then not a debug build.
 
- 
hyc
threads 19 and 20 also have no valid stack traces
 
- 
hyc
odd
 
- 
selsta
i think the crash itself isn't interesting, it fails to calculate correct hashes so once that's fixed the crash should also be gone
 
- 
hyc
shouldn't crash on invalid hash results
 
- 
hyc
anyway... no luck with randomx-test?
 
- 
selsta
working on it
 
- 
hyc
I'm still on MacOS12
 
- 
selsta
i'll use xmrig benchmark because that one also crashes
 
- 
hyc
no problems here
 
- 
selsta
yea, it only happened with macOS 13
 
- 
hyc
if you can gt a debug build and run it under their debugger maybe we can get more useful info out
 
- 
hyc
also I've been considering installing Asahi Linux and leaving macOS behind completely
 
- 
selsta
interesting so xmrig benchmark doesn't crash
 
- 
selsta
trying randomx-tests now
 
- 
hyc
 
- 
selsta
randomx-tests also works, so it's only monerod somehow
 
- 
hyc
that's very strange
 
- 
hyc
wait that's all from CLI then?
 
- 
ofrnxmr[m]
hyc: Halving is next year? And those tx fees from nfts are paying the bills
 
- 
selsta
no, starting from the GUI as detachedProcess
 
- 
ofrnxmr[m]
Arent*
 
- 
hyc
selsta: ok, cool
 
- 
selsta
monerod from CLI works without issues
 
- 
hyc
then is it even related to randomx at all?
 
- 
hyc
maybe it's some missing environment var or something silly
 
- 
selsta
it's solved when disabling JIT so not sure
 
- 
selsta
i'll try around with env vars and working directory
 
- 
hyc
have we tried this before - comment out the #define USE_PTHREAD_JIT_WP in randomx/src/virtual_memory.c ?
 
- 
selsta
same
 
- 
selsta
 
- 
selsta
for example this user seems to be using macOS 13 and while they say it's slow it seems it's at least working for them
 
- 
sech1
If cache invalidate is not working properly, it can give all sorts of random results, i.e. CLI working and GUI not working
 
- 
hyc
unfortunately cache invalidate is an OS function, not something we can fix if it's broken
 
- 
hyc
although I suppose we could duplicate its functionality ourselves in asm code
 
- 
selsta
 
- 
hyc
strange, that page says latest commit Nov 18 2020 but if you select History it shows commits up to 2021
 
- 
DataHoarder
authored on vs commited on