pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.77k stars 1.21k forks source link

do not works at centos 6 x64 #28

Closed hsn10 closed 11 years ago

hsn10 commented 11 years ago

If you try to compile git source code on Centos 6 64 bit, it compiles right but do not works. All computed results are rejected by server. I guess that they are computed wrong.

It would be nice to add some kind of selftest to --benchmark option

hsn10 commented 11 years ago

Official windows 32bit build has same problem - nothing is accepted, but official 64bit linux version works fine.

[2013-06-22 20:28:59] Starting Stratum on stratum+tcp://stratum2.wemineltc.com:3 333 [2013-06-22 20:28:59] 2 miner threads started, using 'scrypt' algorithm. [2013-06-22 20:29:00] Stratum detected new block [2013-06-22 20:57:53] accepted: 0/2 (0.00%), 6.83 khash/s (booooo) [2013-06-22 20:58:40] thread 1: 200884 hashes, 3.40 khash/s [2013-06-22 20:58:40] accepted: 0/3 (0.00%), 6.83 khash/s (booooo) [2013-06-22 20:58:52] thread 0: 205404 hashes, 3.42 khash/s [2013-06-22 20:59:07] Stratum detected new block [2013-06-22 21:00:31] Stratum detected new block [2013-06-22 21:00:37] accepted: 0/4 (0.00%), 6.82 khash/s (booooo) [2013-06-22 21:00:39] Stratum detected new block [2013-06-22 21:00:39] thread 1: 26328 hashes, 3.40 khash/s [2013-06-22 21:00:39] thread 0: 6804 hashes, 3.43 khash/s [2013-06-22 21:00:56] thread 1: 57192 hashes, 3.40 khash/s [2013-06-22 21:00:56] accepted: 0/5 (0.00%), 6.83 khash/s (booooo) [2013-06-22 21:01:40] thread 0: 205728 hashes, 3.36 khash/s [2013-06-22 21:01:59] thread 1: 204108 hashes, 3.22 khash/s [2013-06-22 21:02:38] Stratum detected new block

pooler commented 11 years ago

Could you please provide the exact command line parameters you use (feel free to hide your username and password with asterisks), and the full output of a few minutes mining with --debug?

hsn10 commented 11 years ago

from official windows build?

pooler commented 11 years ago

From whatever build that is not working for you. I was unable to reproduce the issue you reported.

hsn10 commented 11 years ago

in freebsd it didnt worked until i did nomacros.pl before compiling. In centos i tried both methods and none worked. Debug output from working freebsd version vs non working windows 2.3.1 is same.

hsn10 commented 11 years ago

Windows XP/i386 C:\tmp\cpuminer>minerd --debug --threads 1 --algo scrypt -o stratum+tcp://stratu m2.wemineltc.com:3333 -u xxxxxxx -p yyyyyyy -s 6 [2013-06-23 16:05:18] Starting Stratum on stratum+tcp://stratum2.wemineltc.com:3 333 [2013-06-23 16:05:18] 1 miner threads started, using 'scrypt' algorithm. [2013-06-23 16:05:19] Failed to get Stratum session id [2013-06-23 16:05:19] Stratum difficulty set to 95 [2013-06-23 16:05:19] DEBUG: job_id='742a' extranonce2=00000000 ntime=51c70085 [2013-06-23 16:05:19] Stratum detected new block [2013-06-23 16:05:27] thread 0: 4096 hashes, 0.51 khash/s [2013-06-23 16:05:37] DEBUG: job_id='742b' extranonce2=00000000 ntime=51c700c1 [2013-06-23 16:05:38] thread 0: 30784 hashes, 2.94 khash/s [2013-06-23 16:06:31] DEBUG: job_id='742c' extranonce2=00000000 ntime=51c700f7 [2013-06-23 16:06:31] Stratum detected new block [2013-06-23 16:06:31] thread 0: 160640 hashes, 3.03 khash/s [2013-06-23 16:07:12] DEBUG: job_id='742d' extranonce2=00000000 ntime=51c70120 [2013-06-23 16:07:12] Stratum detected new block [2013-06-23 16:07:12] thread 0: 124072 hashes, 3.04 khash/s [2013-06-23 16:08:07] DEBUG: job_id='742e' extranonce2=00000000 ntime=51c70157 [2013-06-23 16:08:07] Stratum detected new block [2013-06-23 16:08:07] thread 0: 167536 hashes, 3.03 khash/s [2013-06-23 16:09:07] thread 0: 181736 hashes, 3.03 khash/s [2013-06-23 16:09:07] DEBUG: job_id='742f' extranonce2=00000000 ntime=51c70193 [2013-06-23 16:09:50] DEBUG: job_id='7430' extranonce2=00000000 ntime=51c701be [2013-06-23 16:09:50] Stratum detected new block [2013-06-23 16:09:50] thread 0: 130464 hashes, 3.03 khash/s [2013-06-23 16:10:50] thread 0: 181780 hashes, 3.03 khash/s [2013-06-23 16:10:50] DEBUG: job_id='7431' extranonce2=00000000 ntime=51c701fa [2013-06-23 16:11:50] DEBUG: job_id='7432' extranonce2=00000000 ntime=51c70236 [2013-06-23 16:11:54] thread 0: 182068 hashes, 2.86 khash/s [2013-06-23 16:12:50] DEBUG: job_id='7433' extranonce2=00000000 ntime=51c70272 [2013-06-23 16:12:51] thread 0: 171444 hashes, 2.96 khash/s [2013-06-23 16:13:50] DEBUG: job_id='7434' extranonce2=00000000 ntime=51c702ae [2013-06-23 16:14:15] thread 0: 177884 hashes, 2.12 khash/s [2013-06-23 16:14:50] DEBUG: job_id='7435' extranonce2=00000000 ntime=51c702ea [2013-06-23 16:14:57] thread 0: 127324 hashes, 3.02 khash/s [2013-06-23 16:15:50] DEBUG: job_id='7436' extranonce2=00000000 ntime=51c70326 [2013-06-23 16:15:51] DEBUG: job_id='7437' extranonce2=00000000 ntime=51c70328 [2013-06-23 16:15:51] Stratum detected new block [2013-06-23 16:15:51] thread 0: 155988 hashes, 2.91 khash/s [2013-06-23 16:16:39] DEBUG: job_id='7438' extranonce2=00000000 ntime=51c70357 [2013-06-23 16:16:39] Stratum detected new block [2013-06-23 16:16:39] thread 0: 132164 hashes, 2.76 khash/s [2013-06-23 16:17:35] DEBUG: job_id='7439' extranonce2=00000000 ntime=51c7038f [2013-06-23 16:17:35] Stratum detected new block [2013-06-23 16:17:35] thread 0: 155360 hashes, 2.76 khash/s [2013-06-23 16:18:20] DEBUG: job_id='743a' extranonce2=00000000 ntime=51c703bd [2013-06-23 16:18:20] Stratum detected new block [2013-06-23 16:18:20] thread 0: 134928 hashes, 3.00 khash/s [2013-06-23 16:19:19] DEBUG: hash <= target Hash: 0000011e69af6955f9ebb344bfcb56a9ab2b77a343affd1dced5222e95271639 Target: 000002b1d79435e5000000000000000000000000000000000000000000000000 [2013-06-23 16:19:19] thread 0: 178136 hashes, 3.03 khash/s [2013-06-23 16:19:19] Stratum difficulty set to 49 [2013-06-23 16:19:19] accepted: 0/1 (0.00%), 3.03 khash/s (booooo) [2013-06-23 16:19:19] DEBUG: reject reason: Share is above target [2013-06-23 16:19:20] DEBUG: job_id='743b' extranonce2=00000000 ntime=51c703f9 [2013-06-23 16:19:26] DEBUG: job_id='743c' extranonce2=00000000 ntime=51c703fe [2013-06-23 16:19:26] Stratum detected new block [2013-06-23 16:19:26] thread 0: 20792 hashes, 3.03 khash/s

hsn10 commented 11 years ago

All reject reasons are same:

[2013-06-23 16:22:37] DEBUG: job_id='7440' extranonce2=00000000 ntime=51c704bd [2013-06-23 16:22:38] thread 0: 181852 hashes, 2.98 khash/s [2013-06-23 16:23:20] DEBUG: hash <= target Hash: 0000009340075cae6b0cb026a6dcb0ffcc81eab2136ee5d9687d996c1486a02c Target: 0000053972f05397000000000000000000000000000000000000000000000000 [2013-06-23 16:23:20] thread 0: 120804 hashes, 2.87 khash/s [2013-06-23 16:23:20] accepted: 0/2 (0.00%), 2.87 khash/s (booooo) [2013-06-23 16:23:20] DEBUG: reject reason: Share is above target

hsn10 commented 11 years ago

Your calculated hash is different from server calculated hash. Its most likely compiler problem. Adding selftest would help.

pooler commented 11 years ago

Did you perform all these test runs on the same machine?

You said "in freebsd it didnt worked until i did nomacros.pl before compiling". Does that mean that without running the script you couldn't get the miner to compile, or that it compiled but the server rejected its solutions?

Also, what do you mean by "debug output from working freebsd version vs non working windows 2.3.1 is same"? If one version is working and the other is not, how can the output be the same?

By the way, the -s option is completely useless in Stratum mode.

hsn10 commented 11 years ago

on freebsd i can get it compiled even without running nomacros.pl but all results are rejected.

hsn10 commented 11 years ago

i have several machines. On all freebsd types i have (9 and 8, 32 and 64 bit) i have to run ./nomacros.pl to get working version. I have only 64bit centos 6.4 and if i compile from source with macros or without macros it compiles fine but all results are rejected. If i download official 64build to centos, it works fine.

hsn10 commented 11 years ago

debug outputs are same except server always rejects results from nonworking version.

pooler commented 11 years ago

That's odd, as nomacro.pl should not change the semantics of the code. What compiler (and what version of it) did you use? Have you tried mining at a different pool, just to make sure it's not a server-side issue?

hsn10 commented 11 years ago

gcc (GCC) 4.2.1 20070831 patched [FreeBSD]

no

pooler commented 11 years ago

Could you please test again using the latest code from the git repo? I have just pushed a fix for a bug that can result in undefined behavior if the mining server gives out Stratum jobs with certain characteristics.

hsn10 commented 11 years ago

it works now. Tested on 64 bit centos.