Askit2
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 16, 2012, 07:46:19 PM Last edit: November 16, 2012, 11:33:31 PM by Askit2 |
|
Yasm is not needed anymore as CPU mining is no longer supported and the CPU code will be ripped out of Cgminer soon.
Referring to that windows-build.txt file you were talking about, did you modify the package config file for curl as directed?
Edit: It could be what C. Kolivas said, but I would check the package config file first.
Yes, About 5 sucessful builds ago. Then upon trying to build a 2.9.3 from git so that I could try stratum on Eclipse(Still didn't work for me) I had that error. Altering the file mentioned in the link did in fact let me build it. As I had built with this setup and no changes 2.7.5. It is running but eclipse US1, 2 and 3 are all marked dead on stratum. EDIT: Flags used are in windowsbuild.txt. CFLAGS="-O2 -msse2" ./configure --enable-bitforce Then per instructions: make Removing LIBCURL_CFLAGS@ from makefile.am and using ./autogen.sh rather then autoreconf. One or both fixed it. This is win7 64bit. Maybe my XP 32 (initially only XP....) machine would do it easier.
|
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 16, 2012, 09:57:07 PM Last edit: November 16, 2012, 10:11:19 PM by kano |
|
Yasm is not needed anymore as CPU mining is no longer supported and the CPU code will be ripped out of Cgminer soon.
Referring to that windows-build.txt file you were talking about, did you modify the package config file for curl as directed?
Edit: It could be what C. Kolivas said, but I would check the package config file first.
Yes, About 5 sucessful builds ago. Then upon trying to build a 2.9.3 from git so that I could try stratum on Eclipse(Still didn't work for me) I had that error. Altering the file mentioned in the link did in fact let me build it. As I had built with this setup and no changes 2.7.5. It is running but eclipse US1, 2 and 3 are all marked dead on stratum. Well - having written about 1200 lines of new code (still not complete) for direct USB support on the MMQ, latest git+my changes compiled fine first time on mingw for me (after adding libusb) on WinXP32 - no issues. Odd. (Edit: P.S. I used: CFLAGS="-g -W -Wall" ./autogen.sh --enable-modminer --enable-ztex make clean makeLike I do in linux)
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 12:35:26 AM |
|
Incidently, I'm now running a debug version (stock 2.9.3) on my router. Hopefully the core dump will tell us what's going on.
Of course, now I'm running the debug version, it's running perfectly. ![Roll Eyes](https://bitcointalk.org/Smileys/default/rolleyes.gif)
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4214
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 08:27:12 AM |
|
Well, anyone got any bright ideas about windows and stratum? Disabling threading didn't help, debug versions spit out no debug info, and it's not like I can just tell people to fuck windows off and start mining only on linux. Even after ASICs arrive, someone somewhere will still want to mine with windows.
Windows people, any ideas? Was there a version with stratum that was stable for you across multiple disconnections?
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
mdude77
Legendary
Offline
Activity: 1540
Merit: 1001
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 12:00:41 PM Last edit: November 17, 2012, 02:03:07 PM by mdude77 |
|
Well, anyone got any bright ideas about windows and stratum? Disabling threading didn't help, debug versions spit out no debug info, and it's not like I can just tell people to fuck windows off and start mining only on linux. Even after ASICs arrive, someone somewhere will still want to mine with windows.
Windows people, any ideas? Was there a version with stratum that was stable for you across multiple disconnections?
I haven't given up on this yet. Using procdump, I was able to get this: Dump Summary ------------ Dump File: cgminer_121117_062709.dmp : C:\downloads\Programs\cgminer_121117_062709.dmp Last Write Time: 11/17/2012 6:27:09 AM Process Name: cgminer.exe : C:\mining\cgminer\cgminer.exe Process Architecture: x86 Exception Code: 0xC0000005 Exception Information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access. Heap Information: Not Present
I thought 2.8.7 behaved the same, but it doesn't. With 2.9.3, I can fire up cgminer pointing to oz, unplug the NIC, and in about 30 seconds in crashes. On 2.8.7, it recognizes it fails and tries to switch, but fails on the switch, as it suddenly says the same pool is alive (can't be, NIC is still unplugged), but it does recover after I plug the NIC back in: cgminer version 2.8.7 - Started: [2012-11-17 06:38:33] --------------------------------------------------------------------------- (5s):7.000 (avg):173.1Mh/s | Q:14 A:2 R:0 HW:0 E:14% U:0.7/m TQ: 2 ST: 1 SS: 0 DW: 10 NB: 2 LW: 12 GF: 1 RF: 1 WU: 2.5 Connected to stratum.ozco.in with stratum as user xxxxxxxx Block: 04332ddfab79c06078e5c763... Started: [06:41:13] Best share: 50 --------------------------------------------------------------------------- [P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit GPU 0: 41.0C 1126RPM | 668.0M/173.1Mh/s | A:2 R:0 HW:0 U: 0.71/m I: 9 ---------------------------------------------------------------------------
[2012-11-17 06:38:30] Started cgminer 2.8.7 [2012-11-17 06:38:30] Loaded configuration file cgminer.conf [2012-11-17 06:38:31] Probing for an alive pool [2012-11-17 06:38:34] Accepted 05179ea0 Diff 50/1 GPU 0 pool 0 [2012-11-17 06:38:34] Stratum from pool 0 requested work restart [2012-11-17 06:38:34] Accepted 98e184f3 Diff 1/1 GPU 0 pool 0 [2012-11-17 06:38:36] Pool 2 http://us.ozco.in:8332 alive [2012-11-17 06:38:38] API running in local read access mode on port 4028 [2012-11-17 06:38:41] Pool 5 http://us1.eclipsemc.com:8337 alive [2012-11-17 06:38:42] Pool 6 http://us2.eclipsemc.com:8337 alive [2012-11-17 06:38:42] Pool 7 http://us3.eclipsemc.com:8337 alive [2012-11-17 06:38:42] Pool 8 http://pool.50btc.com:8332 alive [2012-11-17 06:38:43] Pool 9 http://localhost:8332 alive [2012-11-17 06:39:07] Pool 0 share submission failure <----- disconnected NIC [2012-11-17 06:39:28] Pool 0 http://stratum.ozco.in:3333 not responding! [2012-11-17 06:39:28] Switching to http://us.ozco.in:8332 [2012-11-17 06:39:28] Long-polling activated for http://us.ozco.in:8332/LP [2012-11-17 06:39:28] Pool 0 http://stratum.ozco.in:3333 alive <---------- ???? [2012-11-17 06:39:28] Switching to http://stratum.ozco.in:3333
Here's something interesting! Using 2.9.3 with --verbose, it doesn't crash!!! I still observe the same oddity as in 2.8.7 where it says pool 0 is no responding, then it says it's alive again. Since the NIC isn't plugged in, it can't do anything, but it does not crash. When I plug the NIC back in, it successfully recovers. Using -T doesn't change anything, it still crashes. Hopefully this helps!! M EDIT: It seems the problem isn't just with stratum. I have two miners pointing to p2pool (which is LP), and both locked up (but didn't crash) when p2pool wasn't providing work fast enough. All on 2.9.3.
|
I mine at Kano's Pool because it pays the best and is completely transparent! Come join me!
|
|
|
CrazyGuy
Legendary
Offline
Activity: 1973
Merit: 1007
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 05:40:23 PM |
|
Thanks for your dedication to this project. I'd like to request a new load balancing option. 1 device per pool. I'm concerned about pool stability once ASICs start rolling out.
From my experience with cgminer, load-balance and balance do not really distribute work evenly across pools. I'd like to define a list of 10 pools, and each device mines solely on one of the pools in that list. If one of the pools fails, the device attached will move on to the next pool in the list.
Thanks!
|
ASICPuppy.net ASIC Mining Hardware and Accessories - Compac F in stock!
|
|
|
TheHarbinger
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 378
Merit: 250
Why is it so damn hot in here?
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 06:35:46 PM |
|
Thanks for your dedication to this project. I'd like to request a new load balancing option. 1 device per pool. I'm concerned about pool stability once ASICs start rolling out.
From my experience with cgminer, load-balance and balance do not really distribute work evenly across pools. I'd like to define a list of 10 pools, and each device mines solely on one of the pools in that list. If one of the pools fails, the device attached will move on to the next pool in the list.
Thanks!
This can already be done just by running multiple instances of CGminer. While it's not the most elegant solution, it is far easier than asking Con to add or rewrite code.
|
12Um6jfDE7q6crm1s6tSksMvda8s1hZ3Vj
|
|
|
CrazyGuy
Legendary
Offline
Activity: 1973
Merit: 1007
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 07:09:43 PM |
|
Thanks for your dedication to this project. I'd like to request a new load balancing option. 1 device per pool. I'm concerned about pool stability once ASICs start rolling out.
From my experience with cgminer, load-balance and balance do not really distribute work evenly across pools. I'd like to define a list of 10 pools, and each device mines solely on one of the pools in that list. If one of the pools fails, the device attached will move on to the next pool in the list.
Thanks!
This can already be done just by running multiple instances of CGminer. While it's not the most elegant solution, it is far easier than asking Con to add or rewrite code. Yes that's already my backup plan, but I'd much rather monitor my miners from one instance vs n instances.
|
ASICPuppy.net ASIC Mining Hardware and Accessories - Compac F in stock!
|
|
|
crazyates
Legendary
Offline
Activity: 952
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 08:40:12 PM |
|
Here's something interesting! Using 2.9.3 with --verbose, it doesn't crash!!! I still observe the same oddity as in 2.8.7 where it says pool 0 is no responding, then it says it's alive again. Since the NIC isn't plugged in, it can't do anything, but it does not crash. When I plug the NIC back in, it successfully recovers.
Using -T doesn't change anything, it still crashes.
Hopefully this helps!!
M
--verbose works! I unplugged my wireless adapter, and it disconnected. Waited about 60 seconds, plugged it back in, and it reconnected. No crashes. At least we have a temporary fix!
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4214
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 10:04:12 PM |
|
Here's something interesting! Using 2.9.3 with --verbose, it doesn't crash!!! I still observe the same oddity as in 2.8.7 where it says pool 0 is no responding, then it says it's alive again. Since the NIC isn't plugged in, it can't do anything, but it does not crash. When I plug the NIC back in, it successfully recovers.
Using -T doesn't change anything, it still crashes.
Hopefully this helps!!
--verbose works! I unplugged my wireless adapter, and it disconnected. Waited about 60 seconds, plugged it back in, and it reconnected. No crashes. At least we have a temporary fix! That is most interesting guys, and at least gives me a lead! I appreciate your testing and input. This is what free software and open development is about.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4214
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 10:58:26 PM |
|
Here's something interesting! Using 2.9.3 with --verbose, it doesn't crash!!! I still observe the same oddity as in 2.8.7 where it says pool 0 is no responding, then it says it's alive again. Since the NIC isn't plugged in, it can't do anything, but it does not crash. When I plug the NIC back in, it successfully recovers.
Using -T doesn't change anything, it still crashes.
Hopefully this helps!!
--verbose works! I unplugged my wireless adapter, and it disconnected. Waited about 60 seconds, plugged it back in, and it reconnected. No crashes. At least we have a temporary fix! That is most interesting guys, and at least gives me a lead! I appreciate your testing and input. This is what free software and open development is about. It's a long shot but try the latest builds here (without verbose): http://ck.kolivas.org/apps/cgminer/temp/
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
mdude77
Legendary
Offline
Activity: 1540
Merit: 1001
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 17, 2012, 11:42:34 PM |
|
Here's something interesting! Using 2.9.3 with --verbose, it doesn't crash!!! I still observe the same oddity as in 2.8.7 where it says pool 0 is no responding, then it says it's alive again. Since the NIC isn't plugged in, it can't do anything, but it does not crash. When I plug the NIC back in, it successfully recovers.
Using -T doesn't change anything, it still crashes.
Hopefully this helps!!
--verbose works! I unplugged my wireless adapter, and it disconnected. Waited about 60 seconds, plugged it back in, and it reconnected. No crashes. At least we have a temporary fix! That is most interesting guys, and at least gives me a lead! I appreciate your testing and input. This is what free software and open development is about. It's a long shot but try the latest builds here (without verbose): http://ck.kolivas.org/apps/cgminer/temp/Nope. ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) Dump Summary ------------ Dump File: cgminer_121117_183817.dmp : C:\downloads\Programs\cgminer_121117_183817.dmp Last Write Time: 11/17/2012 6:38:17 PM Process Name: cgminer.exe : C:\mining\cgminer\cgminer.exe Process Architecture: x86 Exception Code: 0xC0000005 Exception Information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
M
|
I mine at Kano's Pool because it pays the best and is completely transparent! Come join me!
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 12:37:51 AM |
|
Well it looks like in every case where there's enough details, is seems that a null (or corrupt) pointer is being used. (Well one clearly said it was a null pointer, the others could be that or a corrupt pointer) The "--verbose fix" is most likely a memory rearrangement that hides the problem. I tried my memory.h on windows yesterday and made the changes necessary to work on windows also. ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Only problem of course is that a solitary null/corrupt pointer wont be picked up by my memory check code. I guess I'll also have a go at trying to find it ... soon ... if I ever finish this MMQ USB code ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) ... trying to get it to work on windows at the moment ![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
|
|
|
|
Luke-Jr
Legendary
Offline
Activity: 2576
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 12:43:54 AM |
|
I wonder if this crash affects BFGMiner...? (If not, then it's a simple matter of finding out which bugfix Con hasn't merged)
|
|
|
|
mdude77
Legendary
Offline
Activity: 1540
Merit: 1001
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 01:13:00 AM |
|
Well it looks like in every case where there's enough details, is seems that a null (or corrupt) pointer is being used. (Well one clearly said it was a null pointer, the others could be that or a corrupt pointer) The "--verbose fix" is most likely a memory rearrangement that hides the problem. I tried my memory.h on windows yesterday and made the changes necessary to work on windows also. ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Only problem of course is that a solitary null/corrupt pointer wont be picked up by my memory check code. I guess I'll also have a go at trying to find it ... soon ... if I ever finish this MMQ USB code ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) ... trying to get it to work on windows at the moment ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) Think it's related to it trying to use the pool after it's clearly dead? [2012-11-17 06:39:07] Pool 0 share submission failure <----- disconnected NIC [2012-11-17 06:39:28] Pool 0 http://stratum.ozco.in:3333 not responding! [2012-11-17 06:39:28] Switching to http://us.ozco.in:8332 [2012-11-17 06:39:28] Long-polling activated for http://us.ozco.in:8332/LP [2012-11-17 06:39:28] Pool 0 http://stratum.ozco.in:3333 alive <---------- ???? [2012-11-17 06:39:28] Switching to http://stratum.ozco.in:3333
M
|
I mine at Kano's Pool because it pays the best and is completely transparent! Come join me!
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4214
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 04:45:31 AM |
|
Alrighty, I found some time to look at the code and think I've found something hopefully. I'll try to spin something up soon for you try.
Try one of these builds again: http://ck.kolivas.org/apps/cgminer/temp/Interestingly if this is the actual bug, it should be possible to hit it on linux as well, but it seems to be much harder to hit because linux can easily tell when the socket has dropped out.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
Schleicher
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 05:34:53 AM |
|
This version doesn't crash. At least not within two minutes after disconnect.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4214
Merit: 1644
Ruu \o/
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 06:24:03 AM |
|
This version doesn't crash. At least not within two minutes after disconnect.
Thanks ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
crazyates
Legendary
Offline
Activity: 952
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 06:39:20 AM |
|
This version doesn't crash. At least not within two minutes after disconnect.
Thanks ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) I unplugged my adapter, and it kept going. No crash. ![Cheesy](https://bitcointalk.org/Smileys/default/cheesy.gif)
|
|
|
|
mdude77
Legendary
Offline
Activity: 1540
Merit: 1001
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 18, 2012, 11:41:46 AM |
|
Alrighty, I found some time to look at the code and think I've found something hopefully. I'll try to spin something up soon for you try.
Try one of these builds again: http://ck.kolivas.org/apps/cgminer/temp/Interestingly if this is the actual bug, it should be possible to hit it on linux as well, but it seems to be much harder to hit because linux can easily tell when the socket has dropped out. Confirmed, does not crash. It also recovers properly once I plug the NIC back in. I still see the same oddity with it saying the pool that just died is now active, even though the NIC is still disconnected: [2012-11-18 06:38:18] Started cgminer 2.9.3 [2012-11-18 06:38:18] Loaded configuration file cgminer.conf [2012-11-18 06:38:18] Probing for an alive pool [2012-11-18 06:38:25] Accepted cc924ccb Diff 1/1 GPU 0 pool 0 [2012-11-18 06:38:28] Pool 2 http://us.ozco.in:8332 alive [2012-11-18 06:38:29] Pool 3 http://eu2.ozco.in:8332 alive [2012-11-18 06:38:30] Pool 4 http://eu.ozco.in:8332 alive [2012-11-18 06:38:31] Pool 5 http://us1.eclipsemc.com:8337 alive [2012-11-18 06:38:31] Pool 6 http://us2.eclipsemc.com:8337 alive [2012-11-18 06:38:32] Pool 7 http://us3.eclipsemc.com:8337 alive [2012-11-18 06:38:32] Pool 8 http://pool.50btc.com:8332 alive [2012-11-18 06:38:33] Pool 9 http://localhost:8332 alive [2012-11-18 06:38:33] Block change for http://localhost:8332 detection via http //stratum.ozco.in:3333 stratum [2012-11-18 06:38:35] Accepted 7c19995b Diff 2/1 GPU 0 pool 0 [2012-11-18 06:38:42] Accepted 87a4d802 Diff 1/1 GPU 0 pool 0 [2012-11-18 06:39:08] Pool 0 stratum share submission failure <------ NIC disconnected here [2012-11-18 06:39:08] Lost 4 shares due to stratum disconnect on pool 0 [2012-11-18 06:39:29] Pool 0 http://stratum.ozco.in:3333 not responding! [2012-11-18 06:39:29] Switching to http://us.ozco.in:8332 [2012-11-18 06:39:29] Long-polling activated for http://us.ozco.in:8332/LP [2012-11-18 06:39:34] Pool 0 http://stratum.ozco.in:3333 alive [2012-11-18 06:39:34] Switching to http://stratum.ozco.in:3333 <-------- still disconnected
I think you might have it nailed! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) M
|
I mine at Kano's Pool because it pays the best and is completely transparent! Come join me!
|
|
|
|