-
dr00tb_
nick /dr00tb
-
john_alan_
hi folks - I'm seeing a segmentation fault around 99% complete sync on ARM64 macOS/Darwin
-
john_alan_
I've tried on multiple occasions, nothing obvious in logs. On 0.18.2.2
-
john_alan_
anything reported/known, before I make a GH issue?
-
john_alan_
verbose logging simply shows: ```2023-05-04 09:25:36.240 T Blockchain::have_block_unlocked
-
john_alan_
2023-05-04 09:25:36.240 T BlockchainLMDB::block_exists
-
john_alan_
2023-05-04 09:25:36.240 T BlockchainLMDB::block_rtxn_start
-
john_alan_
2023-05-04 09:25:36.240 T Block with hash c28336da72d1abc42b5c4adb785d8dc0debc779a614a86ef8d43305000b5eea0 not found in db
-
john_alan_
2023-05-04 09:25:36.240 T mdb_txn_safe: destructor
-
john_alan_
2023-05-04 09:25:36.240 T BlockchainLMDB:: get_alt_block
-
john_alan_
2023-05-04 09:25:36.240 T BlockchainLMDB::block_rtxn_start
-
john_alan_
2023-05-04 09:25:36.240 T mdb_txn_safe: destructor```
-
john_alan_
when I say I've tried on 'multiple occasions' I mean, I've resyncd 3 times.
-
moneromooo
Get a stack trace with gdb.
-
moneromooo
ie, gdb /path/to/monerod path/to/core ; bt
-
moneromooo
Or coredumpctl debug if you have systemd
-
selsta
john_alan_: self compiled?
-
selsta
or how did you install it?
-
selsta
I assume this issue will be relevant
monero-project/monero #8657
-
john_alan_
hey both
-
john_alan_
installed via home-brew
-
john_alan_
(on macOS), happy to help debug, checking out 8657 now...
-
selsta
you have to use the release binaries from getmonero.org
-
selsta
or you have to set `MONERO_RANDOMX_UMASK=8` env var, both work
-
john_alan_
ahhhh
-
john_alan_
so home-brew default is broken?
-
selsta
it's not homebrew's fault and it's unclear if this is a macos bug or not
-
john_alan_
this is a bottled version I'm using form homebrew i.e. not compiled locally, we could add a fix to their build script
-
selsta
moneromooo: does this look like a serialization issue on 32bit?
monero-project/monero #8837#issuecomment-1536588024
-
john_alan_
happy to file with homebrew if not already done, either way, thanks both.
-
selsta
john_alan_: I'm didn't file any issue yet for it, I feel like they will say we should fix it on our side
-
john_alan_
ya I get you, arm64 bin from getmonero is working
-
john_alan_
how weird
-
john_alan_
I wonder what the root cause is
-
john_alan_
I guess some weird JIT security thing
-
selsta
RandomX cache invalidation somehow isn't working
-
john_alan_
I remember macOS treats JIT differently to BSD
-
selsta
but this whole thing only started happening on macOS 13 so we assumed it's a macOS bug
-
john_alan_
macOS security issue?
-
john_alan_
related to JITc tho right?
-
selsta
I don't think it's a security issue, just JIT cache invalidation isn't working causing it to calculate wrong hashes
-
selsta
MONERO_RANDOMX_UMASK=8 disables JIT
-
john_alan_
thanks selsta, does that impact performance?
-
selsta
yes
-
john_alan_
when I mean security, I mean macOS is being weird on security causing JIT to behave funny
-
john_alan_
they keep messing with JIT rules
-
selsta
-
john_alan_
Thanks selsta
-
moneromooo
selsta: probably
-
moneromooo
Something reading unaligned words (I assume their arch doesn't like that, which is usually what bus errors means).
-
john_alan_
@selsta: does disable randomX JIT have any other impact outside of performance?