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

Segmentation fault on 2.3.1 OS X #27

Closed deutrino closed 11 years ago

deutrino commented 11 years ago

2.3.1 ran for about 2 hours on OS X 10.7, then segfaulted overnight. Now it segfaults 100% of the time right after startup:

$ nice -n 18 ./minerd -c mycfg.json 
[2013-06-21 08:50:49] 4 miner threads started, using 'scrypt' algorithm.
[2013-06-21 08:50:49] Starting Stratum on stratum+tcp://redacted
Segmentation fault: 11

Edit: This was using the downloaded binary. I will be able to report performance on other flavors of OS X in a little while.

pooler commented 11 years ago

Could you please mail me (pooler at litecoinpool dot org) your exact configuration file and the output of minerd when you add "-D -P" to the command line options?

deutrino commented 11 years ago

Okay. Note, I've just built the miner from source and so far (like 30 sec) it hasn't segfaulted. I will mail you shortly.

deutrino commented 11 years ago

Running my locally compiled version seems to have 'cleared' the issue, I'll go back to the downloaded binary, tee the output and wait for it to segfault again and mail you that.

deutrino commented 11 years ago

Another segfault on 10.7.5 on a different machine overnight using the downloaded binary. Restarted with -D -P and it took a little while but segfaulted again. Emailing you the dump.

Edit: 'screen' ate most of the dump. :/ Going to re-run in a terminal.

deutrino commented 11 years ago

Two more segfaults overnight on 10.6.8. Can't get them to segfault again right out of the gate like with the first machine, so I'm running them all with -D -P and waiting, will send dumps when I get any.

deutrino commented 11 years ago

Caught 3 on 10.6.8 and 10.7.5, Core 2 Duo and i5 CPUs. So far no problem on Linux. Emailing you hopefully-useful dumps.

deutrino commented 11 years ago

So far on at least one machine, a locally-compiled version of 2.3.1 has run for a number of hours with no segfault. This is on the 10.7 machine. The binary is also 147180 bytes compared to the downloadable's 466492.

pooler commented 11 years ago

In case you are wondering, the size of the downloadable binary is due to it being statically linked to libcurl.

deutrino commented 11 years ago

I figured static linking. I'm building it with an older xcode and homebrew - happy to do whatever I can to help debug. Just let me know.

Sent from my device

On Sat, 22 Jun 2013 10:16:56 -0700, pooler notifications@github.com wrote:

In case you are wondering, the size of the downloadable binary is due to it being statically linked to libcurl.


Reply to this email directly or view it on GitHub: https://github.com/pooler/cpuminer/issues/27#issuecomment-19861195

deutrino commented 11 years ago

A lot of my emails to you bounced after a couple days (litecoinpool.com???) - do you have what you need from me?

pooler commented 11 years ago

I only received two emails from you, one on June 21 at 18:12 UTC and one on June 22 at 20:28 UTC. Mind that the host part of my email address is litecoinpool.org, not litecoinpool.com as you wrote in your message above. Anyway, I have just pushed a commit fixing a bug that can cause a segmentation fault on certain Stratum data, could you please try it out?

deutrino commented 11 years ago

Would you like me to download the precompiled OS X binary? My local builds of 2.3.1 were all running fine.

pooler commented 11 years ago

Yes, please re-download the OS X binary here.

deutrino commented 11 years ago

Done. Running, waiting for segfaults.

deutrino commented 11 years ago

So far so good on the 10.7 box. Prior version would likely have segfaulted by now. Have not yet installed on the 10.6 boxes.

deutrino commented 11 years ago

I think you nailed it. All of them are running fine now. Thanks for the amazing turnaround time on this bug! Really appreciated!