-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Part 2 - 0.14.0.dev4 Segmentation fault when reconnecting to pool after connection was lost / disconnected #890
Comments
try commenting out this: and report back, thanks |
this is different. try changing this line: |
OK .. I pulled latest master so that I now have:
.. but with the following changes as suggested:
I put 20 seconds instead of 2 seconds .. not sure if that's good. Also, by increasing to 20 seconds, I maybe preventing the re-connect in the first place which is where the segfault was happening. I am running with the above changes for the next few hours, and if okay, I will dial back the 20 seconds to 4 seconds tomorrow. |
Also forgot to mention that I am running with the above changes AND using TLS ( port 5555 on ethermine.org )) |
After running several hours ... I got this:
The other process of ethminer running WITHOUT using TLS / SSL ( port 4444 on ethermine.org ) is still running, and it seems to have reconnected ... based on the fact that netstat now shows a different TCP source port from when I started it several hours ago. I also forgot to mention that Ctrl-C also was causing a segfault even with the above code changes. |
I believe I just experienced very similar, if not the same under Windows. It got disconnected and kept retrying to connect in a loop with the following error repeating:
Looks like it is not handling an error when trying to read from a socket that has been closed for whatever reason? |
I suspect this may be the same problem as #887 |
Same problem under Windows with stratum2+tcp:
|
This patch changes the socket pointers to shared ptrs which will should not be released if there is a call to async_write during a delete. This is a fix for ethereum-mining#929 ethereum-mining#892 ethereum-mining#890 and ethereum-mining#887
To address this problem please try 0.14.0rc9 or 0.15.0dev7 and report. |
Addressed in #1135 |
This is a continuation of #848, given that:
So pardon me as I copy and paste the last few comments on that original issue after it has been marked as closed into this new issue:
----- START COPY FROM ORIGINAL ISSUE ---
I don't think this is fixed. I just built ethminer from master ( git commit hash de05cc3 )
I got this after about 1 hour running TLS on asia1.ethermine.org
So it seems like ethminer decided to disconnect because it did not receive a response to the submission of a share after 2 seconds ...I thought I recall that previously, some of the accepted response from the pool was longer than 2 seconds.
Also, I get segfault as well when simply hitting Ctrl-C:
After switching back to 0.14.0dev3 release proper and WITHOUT using TLS, the console output shows the response from the pool for submitting a share received after more than 2 seconds ( 2.9 seconds ) without forcing ethminer to reconnect:
I presume the reconnect if no response from the pool when submitting a share is a recent change after 0.14.0dev3 release proper.
The text was updated successfully, but these errors were encountered: