Bitcoin Forum
April 25, 2024, 05:08:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Antminer U3 - Linux (Ubuntu) issue  (Read 6121 times)
bobdaspikedcherry (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 18, 2014, 06:39:33 AM
 #1

Hello!

I got a Antminer U3 last week and I've been having issues trying to get it up and running on Ubuntu 14.04. It seems that the Bitmain driver for CGMiner has a buffer overflow which causes CGMiner to crash once it has detected the U3.

Per; https://github.com/bitmaintech/cgminer/blob/master/bitmain-readme.txt#L24
Steps to reproduce:

Code:
// install all the CGMiner dependences (even the optional ones)
git clone https://github.com/bitmaintech/cgminer.git
./autogen.sh // since pulling from git?
autoreconf -fvi
CFLAGS="-O2 -msse2" ./configure --enable-bmsc
make

produces a buffer overflow on line #1484 of driver-bmsc.c (https://github.com/bitmaintech/cgminer/blob/master/driver-bmsc.c#L1484):

Code:
In file included from /usr/include/string.h:640:0,
                 from ./lib/string.h:28,
                 from uthash.h:27,
                 from miner.h:25,
                 from driver-bmsc.c:45:
In function ‘memcpy’,
    inlined from ‘bmsc_scanwork’ at driver-bmsc.c:1484:2:
/usr/include/i386-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));

While I'm not a C programmer I can usually sort out issues, but I can't seem to this time. As far as I can tell this is the line that is causing the Bitmain version of CGMiner to crash. From reading the forums I know I'm not the only person with issues trying to get the U3 up and running on Ubuntu.

If it matters I'm using
Code:
 gcc (Ubuntu 4.9.2-0ubuntu1~14.04) 4.9.2

I know this isn't apart of the offical CGMiner code but I'm hoping someone can point me in the right direction to fixing my issue.

Thanks!
1714064897
Hero Member
*
Offline Offline

Posts: 1714064897

View Profile Personal Message (Offline)

Ignore
1714064897
Reply with quote  #2

1714064897
Report to moderator
1714064897
Hero Member
*
Offline Offline

Posts: 1714064897

View Profile Personal Message (Offline)

Ignore
1714064897
Reply with quote  #2

1714064897
Report to moderator
1714064897
Hero Member
*
Offline Offline

Posts: 1714064897

View Profile Personal Message (Offline)

Ignore
1714064897
Reply with quote  #2

1714064897
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
November 18, 2014, 10:17:19 AM
 #2

Try the official bitmain U3 thread:
https://bitcointalk.org/index.php?topic=827356.0

/locked

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!