siklon / cpuminer-gc3355

CPUMiner with Gridseed GC3355 Support
Other
32 stars 22 forks source link

Error when attempting per chip frequency settings #10

Closed organofcorti closed 10 years ago

organofcorti commented 10 years ago

Perhaps I have the format wrong, but when I attempt to send instructions to a particular chip (or subgroup of chips) I get the following:

ooc@desktop:~/cpuminer-gc3355$ /home/ooc/cpuminer-gc3355/minerd --gc3355=/dev/ttyACM0 --gc3355-freq=/dev/ttyACM0:875:1 --url=stratum+tcp://stratum.scryptguild.com:3333 -u user -p pass --text [2014-05-12 01:18:39] 0: GC3355 chip mining thread started, in SINGLE mode [2014-05-12 01:18:39] Starting Stratum on stratum+tcp://stratum.scryptguild.com:3333 [2014-05-12 01:18:39] 0: Open device /dev/ttyACM0 [2014-05-12 01:18:39] API: Bind failed [2014-05-12 01:18:40] New Job_id: 1 Diff: 16 Work_id: 94d06840 [2014-05-12 01:18:40] Stratum detected new block [2014-05-12 01:18:40] New Job_id: 2 Diff: 16 Work_id: 94d06d1c [2014-05-12 01:18:41] 0: Firmware version: 0x13011401 [2014-05-12 01:18:41] 0: GC3355 5-chip USB-Mini Miner detected * Error in `/home/ooc/cpuminer-gc3355/minerd': free(): invalid next size (fast): 0x00007faeb40008e0 * ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7faec4d00996] /lib/x86_64-linux-gnu/libc.so.6(+0xb37e9)[0x7faec4d337e9] /lib/x86_64-linux-gnu/libc.so.6(+0xb3b93)[0x7faec4d33b93] /home/ooc/cpuminer-gc3355/minerd[0x40bb3e] /home/ooc/cpuminer-gc3355/minerd[0x406361] /home/ooc/cpuminer-gc3355/minerd[0x407a98] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7f6e)[0x7faec56acf6e] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7faec4d7a9cd] ======= Memory map: ======== 00400000-00452000 r-xp 00000000 fc:00 3937815 /home/ooc/cpuminer-gc3355/minerd 00651000-00652000 r--p 00051000 fc:00 3937815 /home/ooc/cpuminer-gc3355/minerd 00652000-00654000 rw-p 00052000 fc:00 3937815 /home/ooc/cpuminer-gc3355/minerd 00f5c000-00f7d000 rw-p 00000000 00:00 0 [heap] 7faea8000000-7faea8021000 rw-p 00000000 00:00 0 7faea8021000-7faeac000000 ---p 00000000 00:00 0 7faeb0000000-7faeb002a000 rw-p 00000000 00:00 0 7faeb002a000-7faeb4000000 ---p 00000000 00:00 0 7faeb4000000-7faeb4021000 rw-p 00000000 00:00 0 7faeb4021000-7faeb8000000 ---p 00000000 00:00 0 7faeb8000000-7faeb8021000 rw-p 00000000 00:00 0 7faeb8021000-7faebc000000 ---p 00000000 00:00 0 7faebce3f000-7faebce54000 r-xp 00000000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7faebce54000-7faebd053000 ---p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7faebd053000-7faebd054000 r--p 00014000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7faebd054000-7faebd055000 rw-p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7faebd055000-7faebd05b000 r-xp 00000000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7faebd05b000-7faebd25a000 ---p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7faebd25a000-7faebd25b000 r--p 00005000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7faebd25b000-7faebd25c000 rw-p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7faebd25c000-7faebd25e000 r-xp 00000000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7faebd25e000-7faebd45d000 ---p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7faebd45d000-7faebd45e000 r--p 00001000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7faebd45e000-7faebd45f000 rw-p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7faebd45f000-7faebd46b000 r-xp 00000000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7faebd46b000-7faebd66a000 ---p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7faebd66a000-7faebd66b000 r--p 0000b000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7faebd66b000-7faebd66c000 rw-p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7faebd66c000-7faebd66d000 ---p 00000000 00:00 0 7faebd66d000-7faebe16e000 rw-p 00000000 00:00 0 7faebe16e000-7faebe16f000 ---p 00000000 00:00 0 7faebe16f000-7faebe96f000 rw-p 00000000 00:00 0 [stack:26549] 7faebe96f000-7faebe970000 ---p 00000000 00:00 0 7faebe970000-7faebf170000 rw-p 00000000 00:00 0 [stack:26548] 7faebf170000-7faebf171000 ---p 00000000 00:00 0 7faebf171000-7faebf971000 rw-p 00000000 00:00 0 [stack:26547] 7faebf971000-7faebf972000 ---p 00000000 00:00 0 7faebf972000-7faec0172000 rw-p 00000000 00:00 0 [stack:26546] 7faec0172000-7faec017c000 r-xp 00000000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7faec017c000-7faec037b000 ---p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7faec037b000-7faec037c000 r--p 00009000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7faec037c000-7faec037d000 rw-p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7faec037d000-7faec03ab000 rw-p 00000000 00:00 0 7faec03ab000-7faec0459000 r-xp 00000000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7faec0459000-7faec0659000 ---p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7faec0659000-7faec065b000 r--p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7faec065b000-7faec065d000 rw-p 000b0000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7faec065d000-7faec065e000 rw-p 00000000 00:00 0 7faec065e000-7faec06a3000 r-xp 00000000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7faec06a3000-7faec08a2000 ---p 00045000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7faec08a2000-7faec08a4000 r--p 00044000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7faec08a4000-7faec08a6000 rw-p 00046000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7faec08a6000-7faec08b3000 r-xp 00000000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7faec08b3000-7faec0ab2000 ---p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7faec0ab2000-7faec0ab3000 r--p 0000c000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7faec0ab3000-7faec0ab4000 rw-p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7faec0ab4000-7faec0adb000 r-xp 00000000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7faec0adb000-7faec0cdb000 ---p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7faec0cdb000-7faec0cdc000 r--p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7faec0cdc000-7faec0cdd000 rw-p 00028000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7faec0cdd000-7faec0cf0000 r-xp 00000000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7faec0cf0000-7faec0ef0000 ---p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7faec0ef0000-7faec0ef1000 r--p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7faec0ef1000-7faec0ef2000 rw-p 00014000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7faec0ef2000-7faec0f23000 r-xp 00000000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 7faec0f23000-7faec1123000 ---p 00031000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0Aborted (core dumped)

siklon commented 10 years ago

Formatting is good. I don't know what that is. I'm running off the latest commit, no problems here.

organofcorti commented 10 years ago

I too am using the latest.

highwalker commented 10 years ago

Are you using CFLAGS="-O3"? Try to build with the standard O2, O3 attempts a few more optimizations which sometimes result in heap memory issues such as this.

siklon commented 10 years ago

Maybe you could try "-g" option in CFLAGS, and find out with gdb which line is causing that. This is strange, tried a freshly compiled build with your command line.

organofcorti commented 10 years ago

Are you using CFLAGS="-O3"? Try to build with the standard O2, O3 attempts a few more optimizations which sometimes result in heap memory issues such as this.

I cloned a fresh copy and compiled again, this time with CFLAGS="-O2", but no change.

Maybe you could try "-g" option in CFLAGS, and find out with gdb which line is causing that.

I'm sorry, I don't know what that means.

This is strange, tried a freshly compiled build with your command line.

I've never used the binaries, just compiled from source each time.

highwalker commented 10 years ago

I'm sorry, I don't know what that means.

Use ./configure CFLAGS="-g -O2" and then make.

-g will add debugging info to track to the offending line causing the core dump.

siklon commented 10 years ago

I have made some changes to the way work is generated, using stack instead of heap now. Maybe this will fix it for you, let me know.

organofcorti commented 10 years ago

I just cloned the new version, still fails. I used both ./configure CFLAGS="-g -O2" and ./configure CFLAGS="-g -O3". I hope the -g has provided more info for you:

ooc@desktop:~/cpuminer-gc3355$ /home/ooc/cpuminer-gc3355/minerd --gc3355=/dev/ttyACM0 --gc3355-freq=/dev/ttyACM0:600:0 --url=stratum+tcp://stratum.scryptguild.com:3333 -u organofcorti_0 -p pass --text [2014-05-12 21:58:35] Starting Stratum on stratum+tcp://stratum.scryptguild.com:3333 [2014-05-12 21:58:35] 0: GC3355 chip mining thread started, in SINGLE mode [2014-05-12 21:58:35] 0: Open device /dev/ttyACM0 [2014-05-12 21:58:35] API: Bind failed [2014-05-12 21:58:35] New Job_id: 1 Diff: 16 Work_id: b76bf3d8 [2014-05-12 21:58:35] Stratum detected new block [2014-05-12 21:58:35] New Job_id: 2 Diff: 16 Work_id: b76bf84d [2014-05-12 21:58:36] 0: Firmware version: 0x13011401 [2014-05-12 21:58:36] 0: GC3355 5-chip USB-Mini Miner detected * Error in `/home/ooc/cpuminer-gc3355/minerd': free(): invalid next size (fast): 0x00007f0b90300910 * ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7f0ba1f93996] /lib/x86_64-linux-gnu/libc.so.6(+0xb37e9)[0x7f0ba1fc67e9] /lib/x86_64-linux-gnu/libc.so.6(+0xb3b93)[0x7f0ba1fc6b93] /home/ooc/cpuminer-gc3355/minerd[0x40b6ee] /home/ooc/cpuminer-gc3355/minerd[0x4060f1] /home/ooc/cpuminer-gc3355/minerd[0x407831] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7f6e)[0x7f0ba293ff6e] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f0ba200d9cd] ======= Memory map: ======== 00400000-00452000 r-xp 00000000 fc:00 4200681 /home/ooc/cpuminer-gc3355/minerd 00651000-00652000 r--p 00051000 fc:00 4200681 /home/ooc/cpuminer-gc3355/minerd 00652000-00654000 rw-p 00052000 fc:00 4200681 /home/ooc/cpuminer-gc3355/minerd 014df000-01500000 rw-p 00000000 00:00 0 [heap] 7f0b84000000-7f0b84021000 rw-p 00000000 00:00 0 7f0b84021000-7f0b88000000 ---p 00000000 00:00 0 7f0b8c000000-7f0b8c021000 rw-p 00000000 00:00 0 7f0b8c021000-7f0b90000000 ---p 00000000 00:00 0 7f0b90000000-7f0b90321000 rw-p 00000000 00:00 0 7f0b90321000-7f0b94000000 ---p 00000000 00:00 0 7f0b94000000-7f0b9402a000 rw-p 00000000 00:00 0 7f0b9402a000-7f0b98000000 ---p 00000000 00:00 0 7f0b9a3d3000-7f0b9a3e8000 r-xp 00000000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f0b9a3e8000-7f0b9a5e7000 ---p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f0b9a5e7000-7f0b9a5e8000 r--p 00014000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f0b9a5e8000-7f0b9a5e9000 rw-p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f0b9a5e9000-7f0b9a5ef000 r-xp 00000000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f0b9a5ef000-7f0b9a7ee000 ---p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f0b9a7ee000-7f0b9a7ef000 r--p 00005000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f0b9a7ef000-7f0b9a7f0000 rw-p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f0b9a7f0000-7f0b9a7f2000 r-xp 00000000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f0b9a7f2000-7f0b9a9f1000 ---p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f0b9a9f1000-7f0b9a9f2000 r--p 00001000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f0b9a9f2000-7f0b9a9f3000 rw-p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f0b9a9f3000-7f0b9a9ff000 r-xp 00000000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f0b9a9ff000-7f0b9abfe000 ---p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f0b9abfe000-7f0b9abff000 r--p 0000b000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f0b9abff000-7f0b9ac00000 rw-p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f0b9ac00000-7f0b9ac01000 ---p 00000000 00:00 0 7f0b9ac01000-7f0b9b401000 rw-p 00000000 00:00 0 7f0b9b401000-7f0b9b402000 ---p 00000000 00:00 0 7f0b9b402000-7f0b9bc02000 rw-p 00000000 00:00 0 [stack:4408] 7f0b9bc02000-7f0b9bc03000 ---p 00000000 00:00 0 7f0b9bc03000-7f0b9c403000 rw-p 00000000 00:00 0 [stack:4407] 7f0b9c403000-7f0b9c404000 ---p 00000000 00:00 0 7f0b9c404000-7f0b9cc04000 rw-p 00000000 00:00 0 [stack:4406] 7f0b9cc04000-7f0b9cc05000 ---p 00000000 00:00 0 7f0b9cc05000-7f0b9d405000 rw-p 00000000 00:00 0 [stack:4405] 7f0b9d405000-7f0b9d40f000 r-xp 00000000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f0b9d40f000-7f0b9d60e000 ---p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f0b9d60e000-7f0b9d60f000 r--p 00009000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f0b9d60f000-7f0b9d610000 rw-p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f0b9d610000-7f0b9d63e000 rw-p 00000000 00:00 0 7f0b9d63e000-7f0b9d6ec000 r-xp 00000000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f0b9d6ec000-7f0b9d8ec000 ---p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f0b9d8ec000-7f0b9d8ee000 r--p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f0b9d8ee000-7f0b9d8f0000 rw-p 000b0000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f0b9d8f0000-7f0b9d8f1000 rw-p 00000000 00:00 0 7f0b9d8f1000-7f0b9d936000 r-xp 00000000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f0b9d936000-7f0b9db35000 ---p 00045000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f0b9db35000-7f0b9db37000 r--p 00044000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f0b9db37000-7f0b9db39000 rw-p 00046000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f0b9db39000-7f0b9db46000 r-xp 00000000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f0b9db46000-7f0b9dd45000 ---p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f0b9dd45000-7f0b9dd46000 r--p 0000c000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f0b9dd46000-7f0b9dd47000 rw-p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f0b9dd47000-7f0b9dd6e000 r-xp 00000000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f0b9dd6e000-7f0b9df6e000 ---p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f0b9df6e000-7f0b9df6f000 r--p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f0b9df6f000-7f0b9df70000 rw-p 00028000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f0b9df70000-7f0b9df83000 r-xp 00000000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f0b9df83000-7f0b9e183000 ---p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f0b9e183000-7f0b9e184000 r--p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f0b9e184000-7f0b9e185000 rw-p 00014000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f0b9e185000-7f0b9e1b6000 r-xp 00000000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 7f0b9e1b6000-7f0b9e3b6000 ---p 00031000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0Aborted (core dumped)

siklon commented 10 years ago

Try this to start the debugger and display the relevant debugging output:

sudo apt-get update && apt-get install gdb
gdb /home/ooc/cpuminer-gc3355/minerd
run --gc3355=/dev/ttyACM0 --gc3355-freq=/dev/ttyACM0:600:0 --url=stratum+tcp://stratum.scryptguild.com:3333 -u organofcorti_0 -p pass --text
organofcorti commented 10 years ago

Thanks for being so patient.

ooc@desktop:~$ gdb /home/ooc/cpuminer-gc3355/minerd GNU gdb (GDB) 7.6.1-ubuntu 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-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /home/ooc/cpuminer-gc3355/minerd...(no debugging symbols found)...done. (gdb) run --gc3355=/dev/ttyACM0 --gc3355-freq=/dev/ttyACM0:600:0 --url=stratum+tcp://stratum.scryptguild.com:3333 -u organofcorti_0 -p pass --text Starting program: /home/ooc/cpuminer-gc3355/minerd --gc3355=/dev/ttyACM0 --gc3355-freq=/dev/ttyACM0:600:0 --url=stratum+tcp://stratum.scryptguild.com:3333 -u organofcorti_0 -p pass --text [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff221a700 (LWP 3029)] [New Thread 0x7ffff1a19700 (LWP 3030)] [New Thread 0x7ffff1218700 (LWP 3031)] [2014-05-13 00:21:05] Starting Stratum on stratum+tcp://stratum.scryptguild.com:3333 [New Thread 0x7ffff0a17700 (LWP 3032)] [2014-05-13 00:21:05] 0: GC3355 chip mining thread started, in SINGLE mode [2014-05-13 00:21:05] 0: Open device /dev/ttyACM0 [New Thread 0x7fffe3fff700 (LWP 3033)] [Thread 0x7fffe3fff700 (LWP 3033) exited] [New Thread 0x7fffe3fff700 (LWP 3034)] [2014-05-13 00:21:06] New Job_id: 1 Diff: 16 Work_id: d8d28fa7 [2014-05-13 00:21:06] Stratum detected new block [2014-05-13 00:21:06] New Job_id: 2 Diff: 16 Work_id: d8d294d5 [2014-05-13 00:21:06] 0: Firmware version: 0x13011401 [2014-05-13 00:21:06] 0: GC3355 5-chip USB-Mini Miner detected * Error in `/home/ooc/cpuminer-gc3355/minerd': free(): invalid next size (fast): 0x00007fffe8300910 * ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7ffff6da9996] /lib/x86_64-linux-gnu/libc.so.6(+0xb37e9)[0x7ffff6ddc7e9] /lib/x86_64-linux-gnu/libc.so.6(+0xb3b93)[0x7ffff6ddcb93] /home/ooc/cpuminer-gc3355/minerd[0x40b6ee] /home/ooc/cpuminer-gc3355/minerd[0x4060f1] /home/ooc/cpuminer-gc3355/minerd[0x407831] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7f6e)[0x7ffff7755f6e] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ffff6e239cd] ======= Memory map: ======== 00400000-00452000 r-xp 00000000 fc:00 4200681 /home/ooc/cpuminer-gc3355/minerd 00651000-00652000 r--p 00051000 fc:00 4200681 /home/ooc/cpuminer-gc3355/minerd 00652000-00654000 rw-p 00052000 fc:00 4200681 /home/ooc/cpuminer-gc3355/minerd 00654000-00675000 rw-p 00000000 00:00 0 [heap] 7fffdc000000-7fffdc021000 rw-p 00000000 00:00 0 7fffdc021000-7fffe0000000 ---p 00000000 00:00 0 7fffe31df000-7fffe31f4000 r-xp 00000000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fffe31f4000-7fffe33f3000 ---p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fffe33f3000-7fffe33f4000 r--p 00014000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fffe33f4000-7fffe33f5000 rw-p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fffe33f5000-7fffe33fb000 r-xp 00000000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7fffe33fb000-7fffe35fa000 ---p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7fffe35fa000-7fffe35fb000 r--p 00005000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7fffe35fb000-7fffe35fc000 rw-p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7fffe35fc000-7fffe35fe000 r-xp 00000000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7fffe35fe000-7fffe37fd000 ---p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7fffe37fd000-7fffe37fe000 r--p 00001000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7fffe37fe000-7fffe37ff000 rw-p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7fffe37ff000-7fffe3800000 ---p 00000000 00:00 0 7fffe3800000-7fffe4000000 rw-p 00000000 00:00 0 [stack:3034] 7fffe4000000-7fffe4021000 rw-p 00000000 00:00 0 7fffe4021000-7fffe8000000 ---p 00000000 00:00 0 7fffe8000000-7fffe8321000 rw-p 00000000 00:00 0 7fffe8321000-7fffec000000 ---p 00000000 00:00 0 7fffec000000-7fffec02a000 rw-p 00000000 00:00 0 7fffec02a000-7ffff0000000 ---p 00000000 00:00 0 7ffff000a000-7ffff0016000 r-xp 00000000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7ffff0016000-7ffff0215000 ---p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7ffff0215000-7ffff0216000 r--p 0000b000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7ffff0216000-7ffff0217000 rw-p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7ffff0217000-7ffff0218000 ---p 00000000 00:00 0 7ffff0218000-7ffff0a18000 rw-p 00000000 00:00 0 [stack:3032] 7ffff0a18000-7ffff0a19000 ---p 00000000 00:00 0 7ffff0a19000-7ffff1219000 rw-p 00000000 00:00 0 [stack:3031] 7ffff1219000-7ffff121a000 ---p 00000000 00:00 0 7ffff121a000-7ffff1a1a000 rw-p 00000000 00:00 0 [stack:3030] 7ffff1a1a000-7ffff1a1b000 ---p 00000000 00:00 0 7ffff1a1b000-7ffff221b000 rw-p 00000000 00:00 0 [stack:3029] 7ffff221b000-7ffff2225000 r-xp 00000000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7ffff2225000-7ffff2424000 ---p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7ffff2424000-7ffff2425000 r--p 00009000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7ffff2425000-7ffff2426000 rw-p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7ffff2426000-7ffff2454000 rw-p 00000000 00:00 0 7ffff2454000-7ffff2502000 r-xp 00000000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7ffff2502000-7ffff2702000 ---p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7ffff2702000-7ffff2704000 r--p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7ffff2704000-7ffff2706000 rw-p 000b0000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7ffff2706000-7ffff2707000 rw-p 00000000 00:00 0 7ffff2707000-7ffff274c000 r-xp 00000000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7ffff274c000-7ffff294b000 ---p 00045000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7ffff294b000-7ffff294d000 r--p 00044000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7ffff294d000-7ffff294f000 rw-p 00046000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7ffff294f000-7ffff295c000 r-xp 00000000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7ffff295c000-7ffff2b5b000 ---p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7ffff2b5b000-7ffff2b5c000 r--p 0000c000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7ffff2b5c000-7ffff2b5d000 rw-p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7ffff2b5d000-7ffff2b84000 r-xp 00000000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7ffff2b84000-7ffff2d84000 ---p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7ffff2d84000-7ffff2d85000 r--p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7ffff2d85000-7ffff2d86000 rw-p 00028000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7ffff2d86000-7ffff2d99000 r-xp 00000000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7ffff2d99000-7ffff2f99000 ---p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7ffff2f99000-7ffff2f9a000 r--p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7ffff2f9a000-7ffff2f9b000 rw-p 00014000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7ffff2f9b000-7ffff2fcc000 r-xp 00000000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 7ffff2fcc000-7ffff31cc000 ---p 00031000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 7ffff31cc000-7ffff31cd000 r--p 00031000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 7ffff31cd000-7ffff31ce000 rw-p 00032000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 7ffff31ce000-7ffff31cf000 rw-p 00000000 00:00 0 7ffff31cf000-7ffff3266000 r-xp 00000000 fc:00 12328136 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0 7ffff3266000-7ffff3465000 ---p 00097000 fc:00 12328136 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0 7ffff3465000-7ffff3467000 r--p 00096000 fc:00 12328136 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0 7ffff3467000-7ffff3469000 rw-p 00098000 fc:00 12328136 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0 7ffff3469000-7ffff34e6000 r-xp 00000000 fc:00 12329149 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0 7ffff34e6000-7ffff36e6000 ---p 0007d000 fc:00 12329149 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0 7ffff36e6000-7ffff36e8000 r--p 0007d000 fc:00 12329149 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0 7ffff36e8000-7ffff36eb000 rw-p 0007f000 fc:00 12329149 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0 7ffff36eb000-7ffff36ec000 rw-p 00000000 00:00 0 7ffff36ec000-7ffff36f2000 r-xp 00000000 fc:00 12329152 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0 7ffff36f2000-7ffff38f1000 ---p 00006000 fc:00 12329152 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0 7ffff38f1000-7ffff38f2000 r--p 00005000 fc:00 12329152 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0 7ffff38f2000-7ffff38f3000 rw-p 00006000 fc:00 12329152 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0 7ffff38f3000-7ffff38f5000 r-xp 00000000 fc:00 6554138 /lib/x86_64-linux-gnu/libkeyutils.so.1.4 7ffff38f5000-7ffff3af5000 ---p 00002000 fc:00 6554138 /lib/x86_64-linux-gnu/libkeyutils.so.1.4 7ffff3af5000-7ffff3af6000 r--p 00002000 fc:00 6554138 /lib/x86_64-linux-gnu/libkeyutils.so.1.4 7ffff3af6000-7ffff3af7000 rw-p 00003000 fc:00 6554138 /lib/x86_64-linux-gnu/libkeyutils.so.1.4 7ffff3af7000-7ffff3afb000 r-xp 00000000 fc:00 6553848 /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0 7ffff3afb000-7ffff3cfa000 ---p 00004000 fc:00 6553848 /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0 7ffff3cfa000-7ffff3cfb000 r--p 00003000 fc:00 6553848 /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0 7ffff3cfb000-7ffff3cfc000 rw-p 00004000 fc:00 6553848 /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0 7ffff3cfc000-7ffff3d1a000 r-xp 00000000 fc:00 12322215 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0 7ffff3d1a000-7ffff3f19000 ---p 0001e000 fc:00 12322215 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0 7ffff3f19000-7ffff3f1b000 r--p 0001d000 fc:00 12322215 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0 7ffff3f1b000-7ffff3f1c000 rw-p 0001f000 fc:00 12322215 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0 7ffff3f1c000-7ffff3f2c000 r-xp 00000000 fc:00 12325555 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0 7ffff3f2c000-7ffff412b000 ---p 00010000 fc:00 12325555 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0 7ffff412b000-7ffff412c000 r--p 0000f000 fc:00 12325555 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0 7ffff412c000-7ffff412d000 rw-p 00010000 fc:00 12325555 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0 7ffff412d000-7ffff4167000 r-xp 00000000 fc:00 12329155 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0 7ffff4167000-7ffff4367000 ---p 0003a000 fc:00 12329155 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0 7ffff4367000-7ffff4368000 r--p 0003a000 fc:00 12329155 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0 7ffff4368000-7ffff436a000 rw-p 0003b000 fc:00 12329155 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0 7ffff436a000-7ffff436b000 rw-p 00000000 00:00 0 7ffff436b000-7ffff4384000 r-xp 00000000 fc:00 12329160 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25 7ffff4384000-7ffff4584000 ---p 00019000 fc:00 12329160 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25 7ffff4584000-7ffff4585000 r--p 00019000 fc:00 12329160 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25 7ffff4585000-7ffff4586000 rw-p 0001a000 fc:00 12329160 /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25 7ffff4586000-7ffff459c000 r-xp 00000000 fc:00 6553632 /lib/x86_64-linux-gnu/libresolv-2.17.so 7ffff459c000-7ffff479c000 ---p 00016000 fc:00 6553632 /lib/x86_64-linux-gnu/libresolv-2.17.so 7ffff479c000-7ffff479d000 r--p 00016000 fc:00 6553632 /lib/x86_64-linux-gnu/libresolv-2.17.so 7ffff479d000-7ffff479e000 rw-p 00017000 fc:00 6553632 /lib/x86_64-linux-gnu/libresolv-2.17.so 7ffff479e000-7ffff47a0000 rw-p 00000000 00:00 0 7ffff47a0000-7ffff47a7000 r-xp 00000000 fc:00 12323614 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ffff47a7000-7ffff49a6000 ---p 00007000 fc:00 12323614 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ffff49a6000-7ffff49a7000 r--p 00006000 fc:00 12323614 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ffff49a7000-7ffff49a8000 rw-p 00007000 fc:00 12323614 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ffff49a8000-7ffff49ab000 r-xp 00000000 fc:00 6553711 /lib/x86_64-linux-gnu/libcom_err.so.2.1 7ffff49ab000-7ffff4baa000 ---p 00003000 fc:00 6553711 /lib/x86_64-linux-gnu/libcom_err.so.2.1 7ffff4baa000-7ffff4bab000 r--p 00002000 fc:00 6553711 /lib/x86_64-linux-gnu/libcom_err.so.2.1 7ffff4bab000-7ffff4bac000 rw-p 00003000 fc:00 6553711 /lib/x86_64-linux-gnu/libcom_err.so.2.1 7ffff4bac000-7ffff4bd2000 r-xp 00000000 fc:00 12323607 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ffff4bd2000-7ffff4dd1000 ---p 00026000 fc:00 12323607 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ffff4dd1000-7ffff4dd2000 r--p 00025000 fc:00 12323607 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ffff4dd2000-7ffff4dd3000 rw-p 00026000 fc:00 12323607 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ffff4dd3000-7ffff4dd4000 rw-p 00000000 00:00 0 7ffff4dd4000-7ffff4e99000 r-xp 00000000 fc:00 12323612 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 7ffff4e99000-7ffff5098000 ---p 000c5000 fc:00 12323612 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 7ffff5098000-7ffff50a2000 r--p 000c4000 fc:00 12323612 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 7ffff50a2000-7ffff50a3000 rw-p 000ce000 fc:00 12323612 /usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 7ffff50a3000-7ffff511d000 r-xp 00000000 fc:00 6553781 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7ffff511d000-7ffff531d000 ---p 0007a000 fc:00 6553781 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7ffff531d000-7ffff531e000 r--p 0007a000 fc:00 6553781 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7ffff531e000-7ffff5321000 rw-p 0007b000 fc:00 6553781 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7ffff5321000-7ffff53d7000 r-xp 00000000 fc:00 12321001 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.22.6 7ffff53d7000-7ffff55d7000 ---p 000b6000 fc:00 12321001 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.22.6 7ffff55d7000-7ffff55dd000 r--p 000b6000 fc:00 12321001 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.22.6 7ffff55dd000-7ffff55de000 rw-p 000bc000 fc:00 12321001 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.22.6 7ffff55de000-7ffff55df000 rw-p 00000000 00:00 0 7ffff55df000-7ffff55e2000 r-xp 00000000 fc:00 6553709 /lib/x86_64-linux-gnu/libdl-2.17.so 7ffff55e2000-7ffff57e1000 ---p 00003000 fc:00 6553709 /lib/x86_64-linux-gnu/libdl-2.17.so 7ffff57e1000-7ffff57e2000 r--p 00002000 fc:00 6553709 /lib/x86_64-linux-gnu/libdl-2.17.so 7ffff57e2000-7ffff57e3000 rw-p 00003000 fc:00 6553709 /lib/x86_64-linux-gnu/libdl-2.17.so 7ffff57e3000-7ffff57ea000 r-xp 00000000 fc:00 6553675 /lib/x86_64-linux-gnu/librt-2.17.so 7ffff57ea000-7ffff59e9000 ---p 00007000 fc:00 6553675 /lib/x86_64-linux-gnu/librt-2.17.so Program received signal SIGABRT, Aborted. [Switching to Thread 0x7ffff0a17700 (LWP 3032)] 0x00007ffff6d5ff77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb)

siklon commented 10 years ago

After the "run", what is the output of bt in the gdb?

highwalker commented 10 years ago

Reading symbols from /home/ooc/cpuminer-gc3355/minerd...(no debugging symbols found)...done.

I think you should compile with plain "-g", the "-O2" is still removing some debug symbols. ./configure CFLAGS="-g"

From the current stack trace I guess the issue might be at allocation (not a free) since there's no free until the core freq's have been set... unless I missed it somewhere in the code.

organofcorti commented 10 years ago

After the "run", what is the output of bt in the gdb?

I didn't see any "bt" anywhere. Where should it be?

siklon commented 10 years ago

I mean the output after entering bt

organofcorti commented 10 years ago

I mean the output after entering bt

(gdb) bt

0 0x00007ffff6d5ff77 in __GI_raise (sig=sig@entry=6)

at ../nptl/sysdeps/unix/sysv/linux/raise.c:56

1 0x00007ffff6d635e8 in __GI_abort () at abort.c:90

2 0x00007ffff6d9d4fb in __libc_message (do_abort=do_abort@entry=2,

fmt=fmt@entry=0x7ffff6eb1240 "**\* Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:199

3 0x00007ffff6da9996 in malloc_printerr (ptr=0x7fffe8300910,

str=0x7ffff6eb13e0 "free(): invalid next size (fast)", action=3)
at malloc.c:4923

4 _int_free (av=, p=0x7fffe8300900, have_lock=0)

at malloc.c:3779

5 0x00007ffff6ddc7e9 in tzset_internal (always=,

explicit=explicit@entry=1) at tzset.c:440

6 0x00007ffff6ddcb93 in __tz_convert (timer=0x7ffff0a169a8, use_localtime=1,

tp=0x7ffff70efe80 <_tmbuf>) at tzset.c:629

7 0x000000000040b6ee in applog ()

8 0x00000000004060f1 in gc3355_set_core_freq ()

9 0x0000000000407831 in gc3355_thread ()

10 0x00007ffff7755f6e in start_thread (arg=0x7ffff0a17700)

at pthread_create.c:311

11 0x00007ffff6e239cd in clone ()

at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
siklon commented 10 years ago

Let me know if the latest commit fixes it for you.

organofcorti commented 10 years ago

After latest commit: (gdb) bt

0 0x00007ffff6d5ff77 in __GI_raise (sig=sig@entry=6)

at ../nptl/sysdeps/unix/sysv/linux/raise.c:56

1 0x00007ffff6d635e8 in __GI_abort () at abort.c:90

2 0x00007ffff6d9d4fb in __libc_message (do_abort=do_abort@entry=2,

fmt=fmt@entry=0x7ffff6eb1240 "**\* Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:199

3 0x00007ffff6da9996 in malloc_printerr (ptr=0x7fffe8300910,

str=0x7ffff6eb13e0 "free(): invalid next size (fast)", action=3)
at malloc.c:4923

4 _int_free (av=, p=0x7fffe8300900, have_lock=0)

at malloc.c:3779

5 0x00007ffff6ddc7e9 in tzset_internal (always=,

explicit=explicit@entry=1) at tzset.c:440

6 0x00007ffff6ddcb93 in __tz_convert (timer=timer@entry=0x7ffff0a169c8,

use_localtime=use_localtime@entry=1, tp=tp@entry=0x7ffff70efe80 <_tmbuf>)
at tzset.c:629

7 0x00007ffff6ddac71 in __GI_localtime (t=t@entry=0x7ffff0a169c8)

at localtime.c:42

8 0x000000000040b70e in applog (prio=prio@entry=6,

fmt=fmt@entry=0x44ec18 "%d@%d: Set GC3355 core frequency to %dMhz")
at util.c:120

9 0x0000000000406105 in gc3355_set_core_freq (

gc3355=gc3355@entry=0x7fffffffdce0, chip_id=chip_id@entry=0, freq=600)
kkadatoka commented 10 years ago

Could you please print the output of 'locale' command from your terminal where you run the cpuminer?

Then use 'LC_ALL=C' and try the cpuminer using the usual parameters.

EDIT(elaborating): Please use it like this: $LC_ALL=C ./minerd -gc3355....

kkadatoka commented 10 years ago

Any update on this issue? I mentioned the above since the crash seems to be happening with localtime function, and this usually happens not because of the code, most likely with environment settings. This is one of the possibility to explain this crash (which is pretty much consistent as well).

organofcorti commented 10 years ago

locale: LANG=en_AU.UTF-8 LANGUAGE=en_AU:en the rest are all "en_AU.UTF-8" except for a blank line: LC_ALL=

Result of $ LC_ALL=C ./minerd --gc3355=/dev/ttyACM0 --gc3355-freq=/dev/ttyACM0:600:0 --url=stratum+tcp://stratum.scryptguild.com:3333 -u organofcorti -p pass --text [2014-05-17 22:44:20] Starting Stratum on stratum+tcp://stratum.scryptguild.com:3333 [2014-05-17 22:44:20] 0: GC3355 chip mining thread started, in SINGLE mode [2014-05-17 22:44:20] 0: Open device /dev/ttyACM0 [2014-05-17 22:44:20] API: Bind failed [2014-05-17 22:44:21] New Job_id: 1 Diff: 16 Work_id: 59a5a83f [2014-05-17 22:44:21] Stratum detected new block [2014-05-17 22:44:21] New Job_id: 2 Diff: 16 Work_id: 59a5ac97 [2014-05-17 22:44:22] 0: Firmware version: 0x13011401 [2014-05-17 22:44:22] 0: GC3355 5-chip USB-Mini Miner detected * Error in `./minerd': free(): invalid next size (fast): 0x00007f0490300910 * ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7f04a701e996] /lib/x86_64-linux-gnu/libc.so.6(+0xb37e9)[0x7f04a70517e9] /lib/x86_64-linux-gnu/libc.so.6(+0xb3b93)[0x7f04a7051b93] ./minerd[0x40b70e] ./minerd[0x406105] ./minerd[0x407851] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7f6e)[0x7f04a79caf6e] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f04a70989cd] ======= Memory map: ======== 00400000-00452000 r-xp 00000000 fc:00 3937878 /home/ooc/cpuminer-gc3355/minerd 00651000-00652000 r--p 00051000 fc:00 3937878 /home/ooc/cpuminer-gc3355/minerd 00652000-00654000 rw-p 00052000 fc:00 3937878 /home/ooc/cpuminer-gc3355/minerd 01843000-01864000 rw-p 00000000 00:00 0 [heap] 7f0488000000-7f0488021000 rw-p 00000000 00:00 0 7f0488021000-7f048c000000 ---p 00000000 00:00 0 7f0490000000-7f0490321000 rw-p 00000000 00:00 0 7f0490321000-7f0494000000 ---p 00000000 00:00 0 7f0494000000-7f0494021000 rw-p 00000000 00:00 0 7f0494021000-7f0498000000 ---p 00000000 00:00 0 7f049b3e2000-7f049b3f7000 r-xp 00000000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f049b3f7000-7f049b5f6000 ---p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f049b5f6000-7f049b5f7000 r--p 00014000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f049b5f7000-7f049b5f8000 rw-p 00015000 fc:00 6553681 /lib/x86_64-linux-gnu/libgcc_s.so.1 7f049b5f8000-7f049b5fe000 r-xp 00000000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f049b5fe000-7f049b7fd000 ---p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f049b7fd000-7f049b7fe000 r--p 00005000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f049b7fe000-7f049b7ff000 rw-p 00006000 fc:00 6553644 /lib/x86_64-linux-gnu/libnss_dns-2.17.so 7f049b7ff000-7f049b800000 ---p 00000000 00:00 0 7f049b800000-7f049c000000 rw-p 00000000 00:00 0 7f049c000000-7f049c02a000 rw-p 00000000 00:00 0 7f049c02a000-7f04a0000000 ---p 00000000 00:00 0 7f04a007c000-7f04a007e000 r-xp 00000000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f04a007e000-7f04a027d000 ---p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f04a027d000-7f04a027e000 r--p 00001000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f04a027e000-7f04a027f000 rw-p 00002000 fc:00 6554790 /lib/libnss_mdns4_minimal.so.2 7f04a027f000-7f04a028b000 r-xp 00000000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f04a028b000-7f04a048a000 ---p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f04a048a000-7f04a048b000 r--p 0000b000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f04a048b000-7f04a048c000 rw-p 0000c000 fc:00 6553668 /lib/x86_64-linux-gnu/libnss_files-2.17.so 7f04a048c000-7f04a048d000 ---p 00000000 00:00 0 7f04a048d000-7f04a0c8d000 rw-p 00000000 00:00 0 [stack:1782] 7f04a0c8d000-7f04a0c8e000 ---p 00000000 00:00 0 7f04a0c8e000-7f04a148e000 rw-p 00000000 00:00 0 [stack:1781] 7f04a148e000-7f04a148f000 ---p 00000000 00:00 0 7f04a148f000-7f04a1c8f000 rw-p 00000000 00:00 0 [stack:1780] 7f04a1c8f000-7f04a1c90000 ---p 00000000 00:00 0 7f04a1c90000-7f04a2490000 rw-p 00000000 00:00 0 [stack:1779] 7f04a2490000-7f04a249a000 r-xp 00000000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f04a249a000-7f04a2699000 ---p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f04a2699000-7f04a269a000 r--p 00009000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f04a269a000-7f04a269b000 rw-p 0000a000 fc:00 6553697 /lib/x86_64-linux-gnu/libcrypt-2.17.so 7f04a269b000-7f04a26c9000 rw-p 00000000 00:00 0 7f04a26c9000-7f04a2777000 r-xp 00000000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f04a2777000-7f04a2977000 ---p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f04a2977000-7f04a2979000 r--p 000ae000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f04a2979000-7f04a297b000 rw-p 000b0000 fc:00 12325899 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 7f04a297b000-7f04a297c000 rw-p 00000000 00:00 0 7f04a297c000-7f04a29c1000 r-xp 00000000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f04a29c1000-7f04a2bc0000 ---p 00045000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f04a2bc0000-7f04a2bc2000 r--p 00044000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f04a2bc2000-7f04a2bc4000 rw-p 00046000 fc:00 12329146 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 7f04a2bc4000-7f04a2bd1000 r-xp 00000000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f04a2bd1000-7f04a2dd0000 ---p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f04a2dd0000-7f04a2dd1000 r--p 0000c000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f04a2dd1000-7f04a2dd2000 rw-p 0000d000 fc:00 12329117 /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 7f04a2dd2000-7f04a2df9000 r-xp 00000000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f04a2df9000-7f04a2ff9000 ---p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f04a2ff9000-7f04a2ffa000 r--p 00027000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f04a2ffa000-7f04a2ffb000 rw-p 00028000 fc:00 12329143 /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 7f04a2ffb000-7f04a300e000 r-xp 00000000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f04a300e000-7f04a320e000 ---p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f04a320e000-7f04a320f000 r--p 00013000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f04a320f000-7f04a3210000 rw-p 00014000 fc:00 12325755 /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 7f04a3210000-7f04a3241000 r-xp 00000000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 7f04a3241000-7f04a3441000 ---p 00031000 fc:00 12328142 /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0Aborted (core dumped)