cbuchner1 / ccminer

Christian Buchner's & Christian H.'s CUDA miner project
Other
273 stars 1.7k forks source link

SIGFPE when mining Quark on Linux #23

Open png85 opened 10 years ago

png85 commented 10 years ago

Hi there, I compiled ccminer from git on Gentoo Linux/x86_64 and tried to mine Quark with it but got a floating point exception error:

GNU gdb (Gentoo 7.6.2 p1) 7.6.2
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /home/png/devel/src/ccminer/ccminer...done.
[New LWP 4270]
[New LWP 4271]
[New LWP 4268]
[New LWP 4259]
[New LWP 4269]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./ccminer -a quark -o stratum+tcp://p2pool.org:8372/ -u <removed>'.
Program terminated with signal 8, Arithmetic exception.
#0  0x0000000000482b64 in quark_compactTest_cpu_singleCompaction (thr_id=<optimized out>, threads=<optimized out>, nrm=0x200d00200, d_nonces1=0x505cc0000, function=0x0, 
    startNounce=0, inpHashes=0x500ec0000, d_validNonceTable=0x5064c0000) at quark/cuda_quark_compactionTest.cu:253
253             int thr3 = (nSummen + blockSize2-1) / blockSize2;
(gdb) bt
#0  0x0000000000482b64 in quark_compactTest_cpu_singleCompaction (thr_id=<optimized out>, threads=<optimized out>, nrm=0x200d00200, d_nonces1=0x505cc0000, function=0x0, 
    startNounce=0, inpHashes=0x500ec0000, d_validNonceTable=0x5064c0000) at quark/cuda_quark_compactionTest.cu:253
#1  0x0000000000482d89 in quark_compactTest_cpu_dualCompaction (thr_id=0, threads=-1462528201, nrm=0x200d00200, d_nonces1=<optimized out>, d_nonces2=0x5060c0000, startNounce=0, 
    inpHashes=0x500ec0000, d_validNonceTable=0x5064c0000) at quark/cuda_quark_compactionTest.cu:300
#2  0x0000000000482e0c in quark_compactTest_cpu_hash_64 (thr_id=thr_id@entry=0, threads=<optimized out>, startNounce=<optimized out>, inpHashes=<optimized out>, 
    d_validNonceTable=<optimized out>, d_nonces1=<optimized out>, nrm1=nrm1@entry=0x7f178b330b58, d_nonces2=0x5060c0000, nrm2=nrm2@entry=0x7f178b330b60, order=order@entry=6)
    at quark/cuda_quark_compactionTest.cu:343
#3  0x0000000000481596 in scanhash_quark (thr_id=thr_id@entry=0, pdata=pdata@entry=0x7f178b330d10, ptarget=0x7f178b330d90, max_nonce=max_nonce@entry=1048575, 
    hashes_done=hashes_done@entry=0x7f178b330c58) at quark/quarkcoin.cu:220
#4  0x0000000000441718 in miner_thread (userdata=0x16bc940) at cpu-miner.c:903
#5  0x00007f178e9141da in start_thread () from /lib64/libpthread.so.0
#6  0x00007f178dcdebed in clone () from /lib64/libc.so.6
(gdb) p blockSize2 
$1 = 0
(gdb) 

The binary was built using default CFLAGS etc. from the configure script after executing autogen.sh. GPU in the test system is a GTX 550 Ti which is quite old so i'm not sure if it might be caused by that.

NVIDIA driver version is 343.13.

NVCC and GCC versions are:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2013 NVIDIA Corporation
Built on Wed_Jul_17_18:36:13_PDT_2013
Cuda compilation tools, release 5.5, V5.5.0
gcc (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) 4.7.3

If needed i can upload a core file for further investigation of the issue.