Author

Topic: cgminer crash: ** glibc detected ** cgminer: double free or corruption [solved] (Read 825 times)

newbie
Activity: 6
Merit: 0
Hello,

I am using gentoo linux and I have difficulties with running cgminer. The program was configured (ADL_SDK enabled, --enable-scrypt, --without-curses, --without-libudev (fails regardless of these options)) and compiled correctly, but after it is run desktop becomes terribly slow and with tens of seconds cgminer crashes with:

*** glibc detected *** ./cgminer: double free or corruption (!prev): 0x0000000001dce210 ***

See:
Code:
cgminer-2.11.3 $ ./cgminer -o stratum+tcp://stratum.bitcoin.cz:3333 -u USER -p PASS -d 0 --verbose -D
 [2013-04-05 01:31:06] Started cgminer 2.11.3                    
 [2013-04-05 01:31:17] CL Platform 0 vendor: Advanced Micro Devices, Inc.                    
 [2013-04-05 01:31:17] CL Platform 0 name: ATI Stream                    
 [2013-04-05 01:31:17] CL Platform 0 version: OpenCL 1.1 ATI-Stream-v2.3 (451)                    
 [2013-04-05 01:31:17] Platform 0 devices: 1                    
 [2013-04-05 01:31:17]  0       Cypress                    
 [2013-04-05 01:31:17] CL Platform 1 vendor: Intel(R) Corporation                    
 [2013-04-05 01:31:17] CL Platform 1 name: Intel(R) OpenCL                    
 [2013-04-05 01:31:17] CL Platform 1 version: OpenCL 1.1 LINUX                    
 [2013-04-05 01:31:17] Error -1: Getting Device IDs (num)                    
 [2013-04-05 01:31:17] CL Platform 2 vendor: Advanced Micro Devices, Inc.                    
 [2013-04-05 01:31:17] CL Platform 2 name: AMD Accelerated Parallel Processing                    
 [2013-04-05 01:31:17] CL Platform 2 version: OpenCL 1.2 AMD-APP (938.2)                    
 [2013-04-05 01:31:17] Platform 2 devices: 1                    
 [2013-04-05 01:31:17]  0       Cypress                    
 [2013-04-05 01:31:17] GPU 0 iAdapterIndex 0 strUDID 256:26777:4098:57670:5963 iBusNumber 1 iDeviceNumber 0 iFunctionNumber 0 iVendorID 4098 strAdapterName  ATI Radeon HD 5800 Series                      
 [2013-04-05 01:31:17] GPU 0 ATI Radeon HD 5800 Series  hardware monitoring enabled                    
 [2013-04-05 01:31:17] Probing for an alive pool                    
 [2013-04-05 01:31:17] Popping work to stage thread                    
 [2013-04-05 01:31:17] Testing pool stratum+tcp://stratum.bitcoin.cz:3333                    
 [2013-04-05 01:31:23] Pool 0 stratum session id: ae6812eb4cd7735a302a8a9dd95cf71f                    
 [2013-04-05 01:31:23] Stratum authorisation success for pool 0                    
 [2013-04-05 01:31:23] Pool 0 stratum+tcp://stratum.bitcoin.cz:3333 alive                    
 [2013-04-05 01:31:24] Pushing ping to thread 0                    
 [2013-04-05 01:31:24] Init GPU thread 0 GPU 0 virtual GPU 0                    
 [2013-04-05 01:31:24] CL Platform vendor: Advanced Micro Devices, Inc.                    
 [2013-04-05 01:31:24] CL Platform name: ATI Stream                    
 [2013-04-05 01:31:24] CL Platform version: OpenCL 1.1 ATI-Stream-v2.3 (451)                    
 [2013-04-05 01:31:24] List of devices:                    
 [2013-04-05 01:31:24]  0       Cypress                    
 [2013-04-05 01:31:24] Selected 0: Cypress                    
 [2013-04-05 01:31:26] Preferred vector width reported 4                    
 [2013-04-05 01:31:26] Max work group size reported 256                    
 [2013-04-05 01:31:26] Max mem alloc size is 268435456                    
 [2013-04-05 01:31:26] Selecting phatk kernel                    
 [2013-04-05 01:31:26] Loaded binary image phatk121016Cypressv2w128l8.bin                    
 [2013-04-05 01:31:26] Initialising kernel phatk121016.cl with bitalign, 2 vectors and worksize 128                    
 [2013-04-05 01:31:26] initCl() finished. Found Cypress                    
 [2013-04-05 01:31:26] Pushing ping to thread 1                    
 [2013-04-05 01:31:26] Init GPU thread 1 GPU 0 virtual GPU 0                    
 [2013-04-05 01:31:26] CL Platform vendor: Advanced Micro Devices, Inc.                    
 [2013-04-05 01:31:26] CL Platform name: ATI Stream                    
 [2013-04-05 01:31:26] CL Platform version: OpenCL 1.1 ATI-Stream-v2.3 (451)                    
 [2013-04-05 01:31:26] List of devices:                    
 [2013-04-05 01:31:26]  0       Cypress                    
 [2013-04-05 01:31:26] Selected 0: Cypress                    
 [2013-04-05 01:31:26] Popping ping in miner thread                    
 [2013-04-05 01:31:26] Popping work from get queue to get work                    
 [2013-04-05 01:31:26] Preferred vector width reported 4                    
 [2013-04-05 01:31:26] Max work group size reported 256                    
 [2013-04-05 01:31:26] Max mem alloc size is 268435456                    
 [2013-04-05 01:31:26] Loaded binary image phatk121016Cypressv2w128l8.bin                    
 [2013-04-05 01:31:26] Initialising kernel phatk121016.cl with bitalign, 2 vectors and worksize 128                    
 [2013-04-05 01:31:26] initCl() finished. Found Cypress                    
 [2013-04-05 01:31:26] 2 gpu miner threads started                    
 [2013-04-05 01:31:26] Disabling extra threads due to dynamic mode.                    
 [2013-04-05 01:31:26] Tune dynamic intensity with --gpu-dyninterval                    
 [2013-04-05 01:31:26] Generated stratum merkle a2fc3d14be2b8d334ae6512adc4122665087ece3839c79aa585e27ba40cd6e67                    
 [2013-04-05 01:31:26] Generated stratum header 000000026b1a1419a0ab1ca4c2a69de72f7e078fbe3bc4468bfe0cea000000bf00000000a2fc3d14be2b8d334ae6512adc4122665087ece3839c79aa585e27ba40cd6e67515e0d4d1a02816e00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-05 01:31:26] Work job_id 3e8b nonce2 00000000 ntime 515e0d4d                    
 [2013-04-05 01:31:26] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000                    
 [2013-04-05 01:31:26] Generated stratum work                    
 [2013-04-05 01:31:26] Pushing work from pool 0 to hash queue                    
 [2013-04-05 01:31:26] New block: 00bf8bfe0ceabe3b... diff 6.7M                    
 [2013-04-05 01:31:26] Got work from get queue to get work for thread 0                    
 [2013-04-05 01:31:26] API not running - API will not be available                    
 [2013-04-05 01:31:26] Generated stratum merkle 6682af123100c2567eb33480c502567430345c0585c29d4f2048cbaba689393d                    
 [2013-04-05 01:31:26] Generated stratum header 000000026b1a1419a0ab1ca4c2a69de72f7e078fbe3bc4468bfe0cea000000bf000000006682af123100c2567eb33480c502567430345c0585c29d4f2048cbaba689393d515e0d4d1a02816e00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-05 01:31:26] Work job_id 3e8b nonce2 01000000 ntime 515e0d4d                    
 [2013-04-05 01:31:26] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000                    
 [2013-04-05 01:31:26] Generated stratum work                    
 [2013-04-05 01:31:26] Pushing work from pool 0 to hash queue                    
 [2013-04-05 01:31:26] Popping ping in miner thread                    
 [2013-04-05 01:31:26] Popping work from get queue to get work                    
 [2013-04-05 01:31:26] Got work from get queue to get work for thread 1                    
 [2013-04-05 01:31:26] Generated stratum merkle d45b4eb9933a0d293ad941509510307c113b5489b4a81f3bead529df3aad6e38                    
 [2013-04-05 01:31:26] Generated stratum header 000000026b1a1419a0ab1ca4c2a69de72f7e078fbe3bc4468bfe0cea000000bf00000000d45b4eb9933a0d293ad941509510307c113b5489b4a81f3bead529df3aad6e38515e0d4d1a02816e00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-05 01:31:26] Work job_id 3e8b nonce2 02000000 ntime 515e0d4d                    
 [2013-04-05 01:31:26] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000                    
 [2013-04-05 01:31:26] Generated stratum work                    
 [2013-04-05 01:31:26] Pushing work from pool 0 to hash queue                    
 [2013-04-05 01:31:26] Generated stratum merkle 643a75a923b06c983903005c45952b2965dc3b34f87edab3234e5173342b81d6                    
 [2013-04-05 01:31:26] Generated stratum header 000000026b1a1419a0ab1ca4c2a69de72f7e078fbe3bc4468bfe0cea000000bf00000000643a75a923b06c983903005c45952b2965dc3b34f87edab3234e5173342b81d6515e0d4d1a02816e00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000                    
 [2013-04-05 01:31:26] Work job_id 3e8b nonce2 03000000 ntime 515e0d4d                    
 [2013-04-05 01:31:26] Generated target 0000000000000000000000000000000000000000000000000000ffff00000000                    
 [2013-04-05 01:31:26] Generated stratum work                    
 [2013-04-05 01:31:26] Pushing work from pool 0 to hash queue                    
 [2013-04-05 01:31:27] [thread 0: 170459136 hashes, 119611.1 khash/sec]                    
 [2013-04-05 01:31:27] [thread 1: 171671552 hashes, 170267.0 khash/sec]                    
 [2013-04-05 01:31:27] Thread 1 being disabled                    
 [2013-04-05 01:31:27] Popping wakeup ping in miner thread                    
 [2013-04-05 01:31:28] 56.0 C  F: 34%(1365RPM)  E: 850MHz  M: 300Mhz  V: 1.088V  A: 0%  P: 0%                    
 [2013-04-05 01:31:28] [thread 0: 310378496 hashes, 307643.4 khash/sec]                    
 [2013-04-05 01:31:29] [thread 0: 260046848 hashes, 259173.1 khash/sec]                    
*** glibc detected *** ./cgminer: double free or corruption (!prev): 0x0000000001dce210 ***
 [2013-04-05 01:31:33] 54.0 C  F: 35%(1405RPM)  E: 850MHz  M: 300Mhz  V: 1.088V  A: 45%  P: 0%                    
======= Backtrace: =========
/lib64/libc.so.6(+0x789c5)[0x7fb3208b19c5]
/usr/lib64/libatiocl64.so(+0x1486cb)[0x7fb31ecb26cb]
/usr/lib64/libatiocl64.so(+0x14ba20)[0x7fb31ecb5a20]
/usr/lib64/libatiocl64.so(+0x12b82c)[0x7fb31ec9582c]
/usr/lib64/libatiocl64.so(+0x15428e)[0x7fb31ecbe28e]
/usr/lib64/libatiocl64.so(+0x155c50)[0x7fb31ecbfc50]
/usr/lib64/libatiocl64.so(+0x15bc2c)[0x7fb31ecc5c2c]
/usr/lib64/libatiocl64.so(+0x159edd)[0x7fb31ecc3edd]
/lib64/libpthread.so.0(+0x7c14)[0x7fb3216fec14]
/lib64/libc.so.6(clone+0x6d)[0x7fb320920dbd]
======= Memory map: ========
00400000-00440000 r-xp 00000000 08:06 692654                             /home/honza-bitcoin/CGMiner/cgminer-2.11.3/cgminer
0063f000-00640000 r--p 0003f000 08:06 692654                             /home/honza-bitcoin/CGMiner/cgminer-2.11.3/cgminer
00640000-00643000 rw-p 00040000 08:06 692654                             /home/honza-bitcoin/CGMiner/cgminer-2.11.3/cgminer
00643000-00648000 rw-p 00000000 00:00 0
01a3d000-02bc6000 rw-p 00000000 00:00 0                                  [heap]
7fb2f4000000-7fb2f4021000 rw-p 00000000 00:00 0
7fb2f4021000-7fb2f8000000 ---p 00000000 00:00 0
7fb2fc000000-7fb2fc021000 rw-p 00000000 00:00 0
7fb2fc021000-7fb300000000 ---p 00000000 00:00 0
7fb300000000-7fb300d2d000 rw-p 00000000 00:00 0
7fb300d2d000-7fb304000000 ---p 00000000 00:00 0
7fb304ff7000-7fb304ff8000 ---p 00000000 00:00 0
7fb304ff8000-7fb3057f8000 rwxp 00000000 00:00 0
7fb3057f8000-7fb3057f9000 ---p 00000000 00:00 0
7fb3057f9000-7fb305ff9000 rwxp 00000000 00:00 0                          [stack:25892]
7fb305ff9000-7fb305ffa000 ---p 00000000 00:00 0
7fb305ffa000-7fb3067fa000 rwxp 00000000 00:00 0                          [stack:25891]
7fb3067fa000-7fb3067fb000 ---p 00000000 00:00 0
7fb3067fb000-7fb306ffb000 rwxp 00000000 00:00 0                          [stack:25890]
7fb306ffb000-7fb306ffc000 ---p 00000000 00:00 0
7fb306ffc000-7fb3077fc000 rwxp 00000000 00:00 0                          [stack:25889]
7fb3077fc000-7fb308000000 rw-p 00000000 00:00 0
7fb308000000-7fb308d57000 rw-p 00000000 00:00 0
7fb308d57000-7fb30c000000 ---p 00000000 00:00 0
7fb30c000000-7fb30c021000 rw-p 00000000 00:00 0
7fb30c021000-7fb310000000 ---p 00000000 00:00 0
7fb310000000-7fb310021000 rw-p 00000000 00:00 0
7fb310021000-7fb314000000 ---p 00000000 00:00 0
7fb31405c000-7fb31425d000 rw-p 00000000 00:00 0
7fb31425d000-7fb31425e000 ---p 00000000 00:00 0
7fb31425e000-7fb314a5e000 rwxp 00000000 00:00 0                          [stack:25887]
7fb314a5e000-7fb314c02000 rw-p 00000000 00:00 0
7fb314ce5000-7fb314ce6000 rw-s 00dac000 00:05 2760                       /dev/ati/card0
7fb314ce6000-7fb314d06000 rw-s 00dab000 00:05 2760                       /dev/ati/card0
7fb314d06000-7fb314d66000 rw-s 00da9000 00:05 2760                       /dev/ati/card0
7fb314d66000-7fb314d67000 ---p 00000000 00:00 0
7fb314d67000-7fb314da7000 rwxp 00000000 00:00 0                          [stack:25888]
7fb314da7000-7fb314fb4000 r--p 00000000 08:03 77604                      /opt/ati-stream-sdk/lib/gpu/builtins-gpucommon.bc
7fb314fb4000-7fb315014000 rw-s 00d9d000 00:05 2760                       /dev/ati/card0
7fb315014000-7fb315a19000 rw-p 00000000 00:00 0
7fb315a19000-7fb315a1a000 ---p 00000000 00:00 0
7fb315a1a000-7fb31621a000 rwxp 00000000 00:00 0                          [stack:25885]
7fb31621a000-7fb31622d000 r-xp 00000000 08:03 565429                     /lib64/libresolv-2.15.so
7fb31622d000-7fb31642c000 ---p 00013000 08:03 565429                     /lib64/libresolv-2.15.so
7fb31642c000-7fb31642d000 r--p 00012000 08:03 565429                     /lib64/libresolv-2.15.so
7fb31642d000-7fb31642e000 rw-p 00013000 08:03 565429                     /lib64/libresolv-2.15.so
7fb31642e000-7fb316430000 rw-p 00000000 00:00 0
7fb316430000-7fb316435000 r-xp 00000000 08:03 565430                     /lib64/libnss_dns-2.15.so
7fb316435000-7fb316634000 ---p 00005000 08:03 565430                     /lib64/libnss_dns-2.15.so
7fb316634000-7fb316635000 r--p 00004000 08:03 565430                     /lib64/libnss_dns-2.15.so
7fb316635000-7fb316636000 rw-p 00005000 08:03 565430                     /lib64/libnss_dns-2.15.so
7fb316636000-7fb316642000 r-xp 00000000 08:03 565432                     /lib64/libnss_files-2.15.so
7fb316642000-7fb316841000 ---p 0000c000 08:03 565432                     /lib64/libnss_files-2.15.so
7fb316841000-7fb316842000 r--p 0000b000 08:03 565432                     /lib64/libnss_files-2.15.so
7fb316842000-7fb316843000 rw-p 0000c000 08:03 565432                     /lib64/libnss_files-2.15.so
7fb316843000-7fb316844000 ---p 00000000 00:00 0
7fb316844000-7fb317044000 rwxp 00000000 00:00 0
7fb317044000-7fb317045000 ---p 00000000 00:00 0
7fb317045000-7fb317845000 rwxp 00000000 00:00 0                          [stack:25881]
7fb317845000-7fb318c5c000 r-xp 00000000 08:03 1172745                    /usr/lib64/OpenCL/vendors/amd/libamdocl64.so
7fb318c5c000-7fb318e5c000 ---p 01417000 08:03 1172745                    /usr/lib64/OpenCL/vendors/amd/libamdocl64.so
7fb318e5c000-7fb318f5b000 rw-p 01417000 08:03 1172745                    /usr/lib64/OpenCL/vendors/amd/libamdocl64.so
7fb318f5b000-7fb318fb3000 rw-p 00000000 00:00 0
7fb318fb3000-7fb318fe3000 r-xp 00000000 08:03 857344                     /usr/lib64/OpenCL/vendors/intel/libcpu_device.so
7fb318fe3000-7fb3191e2000 ---p 00030000 08:03 857344                     /usr/lib64/OpenCL/vendors/intel/libcpu_device.so
7fb3191e2000-7fb3191e4000 r--p 0002f000 08:03 857344                     /usr/lib64/OpenCL/vendors/intel/libcpu_device.so
7fb3191e4000-7fb3191e5000 rw-p 00031000 08:03 857344                     /usr/lib64/OpenCL/vendors/intel/libcpu_device.so
7fb3191e5000-7fb3191e6000 rw-p 00000000 00:00 0
7fb3191e6000-7fb31a4ff000 r-xp 00000000 08:03 857339                     /usr/lib64/OpenCL/vendors/intel/libclang_compiler.so
7fb31a4ff000-7fb31a6ff000 ---p 01319000 08:03 857339                     /usr/lib64/OpenCL/vendors/intel/libclang_compiler.so
7fb31a6ff000-7fb31a79a000 r--p 01319000 08:03 857339                     /usr/lib64/OpenCL/vendors/intel/libclang_compiler.so
7fb31a79a000-7fb31a7b4000 rw-p 013b4000 08:03 857339                   /usr/lib64/OpenCL/vendors/intel/libclang_compiler.so
7fb31a7b4000-7fb31a9be000 rw-p 00000000 00:00 0
7fb31a9be000-7fb31a9cd000 r-xp 00000000 08:03 1123878                    /usr/lib64/libtbbmalloc.so.2
7fb31a9cd000-7fb31abcd000 ---p 0000f000 08:03 1123878                    /usr/lib64/libtbbmalloc.so.2
7fb31abcd000-7fb31abce000 r--p 0000f000 08:03 1123878                    /usr/lib64/libtbbmalloc.so.2Aborted

Some system info:
- ati-drivers-12.8
- cgminer - 2.11.3
- at-stream-sdk-2.3
- card - radeon HD 5850
- sys-libs/glibc-2.15-r3:2.2

Bitcoin mining works well with phoenix miner and slush's stratum proxy.

I have a problem with litecoin mining as well:
https://bitcointalksearch.org/topic/m.1736071

Any ideas?

EDIT: Solved by updating amd-app-sdk and ati-drivers to the latest version. Apparently, old ati-stream-sdk was the problem.
Jump to: