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.