Open karunsiri opened 4 years ago
Do you have access to linux install on the same machine? Can you try to exec with linux on the same machine for understanding if it is a macos specific memory allocation problem?
Ah yes I do. I will try on the linux box and will report back again 👍
I can confirm that it crashes on macOs and Linux.
Core file '/cores/core.9764' (x86_64) was loaded.
(lldb) bt
* thread #1, stop reason = signal SIGSTOP
* frame #0: 0x00000001080331df mfoc-hardnested`next_state + 175
frame #1: 0x00000001080330f8 mfoc-hardnested`bitarray_to_list + 136
frame #2: 0x000000010802f6c0 mfoc-hardnested`add_bitflip_candidates + 256
frame #3: 0x000000010802d5d1 mfoc-hardnested`mfnestedhard + 977
frame #4: 0x00000001080251e0 mfoc-hardnested`main + 8544
frame #5: 0x00007fff673accc9 libdyld.dylib`start + 1
(lldb) f
frame #0: 0x00000001080331df mfoc-hardnested`next_state + 175
mfoc-hardnested`next_state:
-> 0x1080331df <+175>: cmp dword ptr [rcx + 4*rsi], 0x0
0x1080331e3 <+179>: mov byte ptr [rbp - 0x21], al
0x1080331e6 <+182>: jne 0x1080331f9 ; <+201>
0x1080331ec <+188>: cmp dword ptr [rbp - 0x14], 0x1000000
I have the same problem on rapsberry pi
I get a «killed» when using the software on Debian bullseye on a RPi 2:
time | trg | #nonces | Activity | expected to brute force
| | | | #states | time
-------------------------------------------------------------------------------------------------------------
0 | 1A | 0 | Start using 4 threads | |
0 | 1A | 0 | Brute force benchmark: 15 million (2^23.9) keys/s | 140737488355328 | 106d
39 | 1A | 0 | Using 235 precalculated bitflip state tables | 140737488355328 | 106d Killed
A segmentation fault will occur when starting to crack the card with
mfoc-hardnested
. I notice from the README that this repo uses similar techniques from https://github.com/vk496/mfoc. The code from that repo also raises segmentation fault: 11, so I included the excerpt of the run output from the code from that repo at the end of this issue, too. In case it helps. It fails around Apply bit flip properties step.Platform & OS: MacOS Catalina 10.15.5 CPU Intel i7-9750H Ram 16GB
Configure & build using:
./configure
outputmake
output:mfoc run output from https://github.com/vk496/mfoc.