POC segfaults after failed mmap and fread.
Running the POC, I get this on my system (Ryzen 9950X):
Preparing results directory: results
Running Phoenix with args: --csv=results/bit_flips_20250917_094823.csv
CPU model: AMD Ryzen 9 9950X 16-Core Processor
Running with maximum scheduling priority.
cpu_core : 5
sync_row_count : 8
sync_row_start : 512
ref_threshold : 1150
self_sync_cycles : [23000,24000,25000,26000]
reads_per_trefi : [86,88,90,92]
trefi_sync_count : 2048000
aggressor_row_start : 0
aggressor_row_end : 8
aggressor_spacing : 8
column_stride : 512
pattern_trefi_offset_per_bank: 16
hammer_fn : self_sync
pattern_id : skh_mod128
target_subch : [0]
target_ranks : [0]
target_bg : [0,1,2,3]
target_banks : [0]
csv_path : results/bit_flips_20250917_094823.csv
[+] Allocating single superpage with:
DIMM size: 48 GiB
DIMM ranks: 2
mmap: Invalid argument
[+] Initializing config for AMD Zen 4, 2 rank(s).
[+] Finished DRAM configuration.
fread fails. : Invalid argument
[+] Mapped 0x40000000 Bytes at vaddr=0xffffffffffffffff, paddr=0x0
Sync rows:
(0,0,0,0,512,0)
(0,0,1,0,512,0)
(0,0,2,0,512,0)
(0,0,3,0,512,0)
(0,0,0,0,513,0)
(0,0,1,0,513,0)
(0,0,2,0,513,0)
(0,0,3,0,513,0)
[-] Address out of bounds: ffffffffffffffff > 3fffffff
make: *** [Makefile:57: run] Segmentation fault
Notice the "mmap: Invalid argument" and "fread fails. : Invalid argument".
POC segfaults after failed mmap and fread.
Running the POC, I get this on my system (Ryzen 9950X):
Preparing results directory: results Running Phoenix with args: --csv=results/bit_flips_20250917_094823.csv CPU model: AMD Ryzen 9 9950X 16-Core Processor Running with maximum scheduling priority. cpu_core : 5 sync_row_count : 8 sync_row_start : 512 ref_threshold : 1150 self_sync_cycles : [23000,24000,25000,26000] reads_per_trefi : [86,88,90,92] trefi_sync_count : 2048000 aggressor_row_start : 0 aggressor_row_end : 8 aggressor_spacing : 8 column_stride : 512 pattern_trefi_offset_per_bank: 16 hammer_fn : self_sync pattern_id : skh_mod128 target_subch : [0] target_ranks : [0] target_bg : [0,1,2,3] target_banks : [0] csv_path : results/bit_flips_20250917_094823.csv [+] Allocating single superpage with: DIMM size: 48 GiB DIMM ranks: 2 mmap: Invalid argument [+] Initializing config for AMD Zen 4, 2 rank(s). [+] Finished DRAM configuration. fread fails. : Invalid argument [+] Mapped 0x40000000 Bytes at vaddr=0xffffffffffffffff, paddr=0x0 Sync rows: (0,0,0,0,512,0) (0,0,1,0,512,0) (0,0,2,0,512,0) (0,0,3,0,512,0) (0,0,0,0,513,0) (0,0,1,0,513,0) (0,0,2,0,513,0) (0,0,3,0,513,0) [-] Address out of bounds: ffffffffffffffff > 3fffffff make: *** [Makefile:57: run] Segmentation faultNotice the "mmap: Invalid argument" and "fread fails. : Invalid argument".