Closed emerzon closed 4 years ago
Please change the title. Only benchmark is affected.
I'll investigate the crash.
You found where the problem was but reverting another fix is not the solution.
The logic in the CURL flag setting was flawed causing it to take the wrong path when benchmarking. It will be fixed in the next release.
Until then use v3.12.5 for benchmarking.
Here's the fix for curl flags, you can test it if you like.
flags = CURL_GLOBAL_ALL; if ( !opt_benchmark ) if ( strncasecmp( rpc_url, "https:", 6 ) && strncasecmp( rpc_url, "stratum+tcps://", 15 ) ) flags &= ~CURL_GLOBAL_SSL;
Please change the title. Only benchmark is affected.
I'll investigate the crash.
Title changed. Sorry, I haven't tried normal operation before.
flags = CURL_GLOBAL_ALL; if ( !opt_benchmark ) if ( strncasecmp( rpc_url, "https:", 6 ) && strncasecmp( rpc_url, "stratum+tcps://", 15 ) ) flags &= ~CURL_GLOBAL_SSL;
Thanks! Fix works nicely.
cpuminer-opt-3.12.6.1 is released with the fix.
Thanks for reporting.
After building 3.12.6, I have a segfault when trying to run any algo. 3.12.5 builds and runs normally.
GDB output below: