Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

ethminer failes to generate DAG file for any block larger than 3870000 (serious bug) #4021

Closed
kenshirothefist opened this issue Mar 28, 2017 · 7 comments
Assignees

Comments

@kenshirothefist
Copy link

When trying to generate DAG file for any block larger than 3870000, it will only produce a 0-size file.

Try this:

ethminer.exe -D 3870000

It will run just of a few seconds, generate 0-bytes file "full-R23-3868abc5dcee2334" and exit (or even crash in some cases).

If you try to generate DAG for any previous block, for example:

ethminer.exe -D 3840000

it will work just fine.

@nicehashdev
Copy link

Hint: I suspect this may something to do with "int" overflow? Since DAG file is now nearly 2^32 / 2 in size, standard int would overflow at that number.

@gumb0
Copy link
Member

gumb0 commented Mar 28, 2017

Thank you for reporting this!

@nicehashdev is right, good old int overflow happens for me on Windows here:
https://github.com/ethereum/cpp-ethereum/blob/develop/libethash/io.c#L94

@kenshirothefist Which OS do you use?

@kenshirothefist
Copy link
Author

@gumb0 I was testing under Windows 7 / 10.

@gumb0
Copy link
Member

gumb0 commented Mar 28, 2017

Thanks, I'll look into this

@gumb0
Copy link
Member

gumb0 commented Mar 29, 2017

@kenshirothefist Could you please check if this branch works for you https://github.com/ethereum/cpp-ethereum/tree/fix-mining-fseek ?

@kenshirothefist
Copy link
Author

kenshirothefist commented Mar 29, 2017

@gumb0 I just tested fix-mining-fseek branch under Ubuntu 16 and it works ... DAG file was correctly generated for "-D 3870000". So this looks good. I'll also test under Windows, but I have to prepare build env...

@gumb0
Copy link
Member

gumb0 commented Mar 30, 2017

@kenshirothefist Thanks for your help, it works for me on Windows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants