Bitcoin Forum
April 25, 2024, 08:14:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CGMiner 3.1.0 built under linux, then segfault on execution  (Read 3035 times)
ChristianRiesen (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
May 11, 2013, 06:48:52 AM
 #1

Hello everyone. I've decided to jump head first into the boiling pot and got stuck at a rather inconvenient location.

I've tried building the miner now about a dozen different ways, no dice. The endresult is always this, if I get it to configure and compile at all that is:
Code:
# ./cgminer --benchmark
 [2013-05-11 08:37:38] Started cgminer 3.1.0Segmentation fault (core dumped)
#

I read in the official thread about adding a stacktrace with gdb cgminer core and here it is:

Code:
# gdb cgminer core
GNU gdb (GDB) 7.5.91.20130417-cvs-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 /usr/local/cgminer/cgminer...(no debugging symbols found)...done.
[New LWP 5966]
[New LWP 5967]
[New LWP 5968]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff7cb05000
Core was generated by `./cgminer --benchmark'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7127cd4fe6 in ?? () from /usr/lib/fglrx/libatiadlxx.so

(gdb) bt
#0  0x00007f7127cd4fe6 in ?? () from /usr/lib/fglrx/libatiadlxx.so
#1  0x00007f7127ca6a1c in ?? () from /usr/lib/fglrx/libatiadlxx.so
#2  0x00007f7127ca8e23 in ADL_Main_Control_Refresh ()
   from /usr/lib/fglrx/libatiadlxx.so
#3  0x000000000042ca38 in init_adl ()
#4  0x0000000000405578 in main ()


(gdb) bt full
#0  0x00007f7127cd4fe6 in ?? () from /usr/lib/fglrx/libatiadlxx.so
No symbol table info available.
#1  0x00007f7127ca6a1c in ?? () from /usr/lib/fglrx/libatiadlxx.so
No symbol table info available.
#2  0x00007f7127ca8e23 in ADL_Main_Control_Refresh ()
   from /usr/lib/fglrx/libatiadlxx.so
No symbol table info available.
#3  0x000000000042ca38 in init_adl ()
No symbol table info available.
#4  0x0000000000405578 in main ()
No symbol table info available.

Any idea anyone how to fix this? I have a few GPU's laying around just idleing Smiley
1714032894
Hero Member
*
Offline Offline

Posts: 1714032894

View Profile Personal Message (Offline)

Ignore
1714032894
Reply with quote  #2

1714032894
Report to moderator
1714032894
Hero Member
*
Offline Offline

Posts: 1714032894

View Profile Personal Message (Offline)

Ignore
1714032894
Reply with quote  #2

1714032894
Report to moderator
1714032894
Hero Member
*
Offline Offline

Posts: 1714032894

View Profile Personal Message (Offline)

Ignore
1714032894
Reply with quote  #2

1714032894
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714032894
Hero Member
*
Offline Offline

Posts: 1714032894

View Profile Personal Message (Offline)

Ignore
1714032894
Reply with quote  #2

1714032894
Report to moderator
ChristianRiesen (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
May 11, 2013, 08:51:15 AM
 #2

I went a bit further and tried installing the latest drivers.

Removed the drivers I had in before with this:
aptitude purge fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev

Got the drivers here:
http://www2.ati.com/drivers/linux/amd-catalyst-13.4-linux-x86.x86_64.zip

It complained about not having X so I installed it with this:
aptitude install x11-common xserver-xorg-core

Installed it, and then rebooted.

Configure fails with this:
OpenCL...............: NOT FOUND. GPU mining support DISABLED

aticonfig fails with this:
# aticonfig -lsa
aticonfig: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

Fixed it with aptitude install libxrandr2. Output now is:

# aticonfig --lsa
* 0. 01:00.0 AMD Radeon HD 7900 Series

* - Default adapter

configure still fails...
ChristianRiesen (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
May 11, 2013, 09:04:01 AM
 #3

So it works, sort of, still needs a bit of testing, but here is how I got it to do as it should in the end:

  • Installed the ati driver again.
  • Killed the cgminer dir and redid that from scratch.
  • Copied ADL files to cgminer.
  • Copied the files from the APP sdk to the /usr/include and /usr/lib as the GPU-README of cgminer says, and of course run ldconfig
  • rebooted
  • ran configure on the cgminer, then make, both went through without a hitch
  • Now it works...

I will retry at a later stage to see if I can reproduce the success.
Schland
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
May 30, 2013, 08:23:14 PM
 #4

Hi Christian,

Could you eventually reproduce this error and do you have a resolution for this? I experience the same message with OpenSuSE 12.2 and CGminer 3.1.0.

aticonfig --lsa recognizes my two graphi9cs cards OK, configure and make install do also work flawlessly.

Thanks

Schland
ChristianRiesen (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
May 31, 2013, 07:16:00 AM
 #5

Hi Christian,

Could you eventually reproduce this error and do you have a resolution for this? I experience the same message with OpenSuSE 12.2 and CGminer 3.1.0.

aticonfig --lsa recognizes my two graphi9cs cards OK, configure and make install do also work flawlessly.

Thanks

Schland

Hi

I made mistakes that far back that resulted in a rather ugly binary. I have since refined the process and can reproduce a stable version with working ADL in it on 3 different machines. I'm working on a tutorial for that as of now Smiley
rafi365
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 17, 2013, 09:15:41 PM
 #6

I've had the same problem. Hope you will make tutorial asap.
Thanks in advance.
 Wink
CryptoBadger
Newbie
*
Offline Offline

Activity: 14
Merit: 0



View Profile WWW
June 17, 2013, 09:28:59 PM
 #7

Any reason that you're trying to build your own binary vs just downloading the precompiled linux build from the author?

I have a pretty thorough linux guide here (part 2), if it helps:

http://www.cryptobadger.com/build-your-own-litecoin-mining-rig/

Although I don't compile cgminer from source in my guide; I just use ckolivas's build.
TR4L
Member
**
Offline Offline

Activity: 78
Merit: 10



View Profile
October 15, 2013, 07:06:51 PM
 #8

Any reason that you're trying to build your own binary vs just downloading the precompiled linux build from the author?

I have a pretty thorough linux guide here (part 2), if it helps:

http://www.cryptobadger.com/build-your-own-litecoin-mining-rig/

Although I don't compile cgminer from source in my guide; I just use ckolivas's build.

I've used this but I get Segmentation fault when I try to run cgminer.  This has been a problem with absolutely every guide I've used.
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!