PoC-Consortium / engraver

PoCC Burstcoin Reference Plotter
MIT License
63 stars 39 forks source link

Segmentation fault with big nonce number #58

Closed renheren closed 3 years ago

renheren commented 5 years ago

I built engraver with Ubuntu 18.04 and tried to plot with engraver. It works with small nonce number but no success with large nonce numbers.

time ./engraver -i 16325745247376581323 -s 0 -n 40000 
Engraver 2.4.0 - PoC2 Plotter

CPU: Intel(R) Celeron(R) CPU J3455 @ 1.50GHz [using 4 of 4 cores + SSE2]
RAM: Total=11.39 GiB, Free=5.71 GiB, Usage=5.56 GiB
     HDDcache=5.56 GiB, GPUcache=0.00 GiB,

Numeric ID:  16325745247376581323
Start Nonce: 0
Nonces:      40000
Output File: /home/miner/mining/docker/engraver/package/18.04-2.4.0/16325745247376581323_0_40000

Fast file pre-allocation...OK
Starting plotting...

Hashing: │███████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ 28.48 % 8.31 MB/s 14m 
Writing: │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│ 0.00 % 0 B/s  
Segmentation fault

real    5m43.056s
user    10m34.547s
sys     0m3.020s
Zoh63392187 commented 4 years ago

I just tested this with 3.000.000 nonces and it works fine here.

renheren commented 3 years ago

Thanks for your test! Just a few weeks ago, I fixed my chromium "aw snap" problem, it's due to small "ulimit -v" in my bashrc file. I suspect this "Segmentation fault" is also due to my specific environment. I will try to find it out.

renheren commented 3 years ago

It's related to "ulimit -v" and numeric_id dependent. A combination can reproduce "segmentation fault" is "ulimit -v 1048576" and "./engraver -i 16325745247376581323 -s 0 -n 40000".