Post
Topic
Board Hardware
Re: Klondike - 16 chip ASIC Open Source Board - Preliminary
by
BkkCoins
on 12/07/2013, 19:40:28 UTC
I am on Ubuntu.

Update: I changed the delay to 1 usec only (that is one micro sec), and its still working. Removing the delay again breaks it, and cgminer starts hanging for 1-2 minutes. I am quiet positive there is an issue with threading/locking.

Code:
#define DEVLOCK(cgpu, _pth_state) do { \
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &_pth_state); \
nusleep(1); \
wr_lock(cgpu->usbinfo.devlock); \
} while (0)

Very odd. I'm on Ubuntu 12.04 and I don't have this problem.
Or did you pull updates from cgminer github? I used 3.3.1 for mine but have not pulled down any updates since.

I cloned cgminer from github on July 11, 11:52 EDT(yesterday) on Debian 7 in a Thinkpad T500 laptop.
I repeated this issue today on Debian 7 in VMWare player running on Windows.

You might pull 3.3.1 release from github and build with that, or just run with the fix if it works. Maybe it will have to be pulled in anyway if I update and the newer cgminer versions all have the problem. Kano probably knows what's up with this as it's his area.

Presumably the time doesn't matter and it's just that control is released to another thread at that point.