Hit SIGSEGV because of the increased Difficulty.#1
Open
Kangmo wants to merge 1 commit intoetclabscore:masterfrom
Open
Hit SIGSEGV because of the increased Difficulty.#1Kangmo wants to merge 1 commit intoetclabscore:masterfrom
Kangmo wants to merge 1 commit intoetclabscore:masterfrom
Conversation
The issue is reproed in Linux environment only for now. How to repro: Run ethminer --cuda --pool http://localhost:8080 On Windows, it does not crash, but prints random string for the unit of hash while it prints difficulty. On CentOS with gcc-9, it crashes with SIGSEGV. Root cause: dev::getFormattedHashes has only up to Gh, not Th. Fix: Add Th, Ph to dev::getFormattedHashes. Also add TB, PB to dev::getFormattedMemory to eliminate future problems.
obykk
pushed a commit
to obykk/etcminer
that referenced
this pull request
Sep 1, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the bug
Hit SIGSEGV because of the increased Difficulty. The issue is reproed in Linux environment only for now.
To Reproduce
Steps to reproduce the behavior:
Run ethminer --cuda --pool http://localhost:8080
On Windows, it does not crash, but prints the following string.
i 15:12:31 Epoch : 422 Difficulty : 386.91 �
On CentOS with gcc-9, it crashes with SIGSEGV. Attached the stdout messages.
1.txt
Expected behavior
The SIGSEGV should not happen, but show Th unit when printing out the difficulty.
Environment (please complete the following information):
Additional context
The fix is as follows. Reproed in gdb env and it was tested that the code fixes the issue.