sowson / ethminer

Ethereum miner with OpenCL and Stratum support for macOS 15.x only!
GNU General Public License v3.0
13 stars 0 forks source link

OpenCL crash — Abort trap: 6 #2

Open eliezedeck opened 3 years ago

eliezedeck commented 3 years ago

Describe the bug Abort trap: 6 is raised.

To Reproduce Steps to reproduce the behavior:

  1. Run with the following command (or any othercurrent Ethash mining command)
  2. This is for NiceHash
./ethminer --cl-nobin -G -P stratum2+tcp://3PAPuc8JYXYNZxX9so2qbCw55TRx5gkSLv.macOS@daggerhashimoto.eu-west.nicehash.com:3353 --report-hr
  1. Result is:
./ethminer --cl-nobin -G -P stratum2+tcp://3PAPuc8JYXYNZxX9so2qbCw55TRx5gkSLv.macOS@daggerhashimoto.eu-west.nicehash.com:3353 --report-hr

ethminer 0.19.0-20+commit.14e71528.dirty
Build: darwin/release/appleclang

 i 14:39:14          Configured pool daggerhashimoto.eu-west.nicehash.com:3353
 i 14:39:14          Selected pool daggerhashimoto.eu-west.nicehash.com:3353
 i 14:39:15          Stratum mode : EthereumStratum/1.0.0 (NiceHash)
 i 14:39:15          Established connection to daggerhashimoto.eu-west.nicehash.com [172.65.226.105:3353]
 i 14:39:15          Spinning up miners...
cl 14:39:15 cl-0     Using Device : GPU:00 AMD Radeon RX 6900 XT Compute Engine OpenCL 1.2  Memory : 15.98 GB (17163091968 B)
 i 14:39:15 cl-0     Adjusting CL work multiplier for 80 CUs. Adjusted work multiplier: 145636
 i 14:39:15          Extranonce set to f7e14b
 i 14:39:15          Authorized worker 3PAPuc8JYXYNZxX9so2qbCw55TRx5gkSLv.macOS
 i 14:39:15          Epoch : 435 Difficulty : 1.00 Gh
 i 14:39:15          Job: 0c3260e2… daggerhashimoto.eu-west.nicehash.com [172.65.226.105:3353]
cl 14:39:18 cl-0     Generating split DAG + Light (total): 4.40 GB
 i 14:39:18          Job: c3b19b0c… daggerhashimoto.eu-west.nicehash.com [172.65.226.105:3353]
cl 14:39:18 cl-0     OpenCL kernel
cl 14:39:18 cl-0     Creating DAG buffer, size: 4.40 GB, free: 11.59 GB
cl 14:39:18 cl-0     Creating light cache buffer, size: 70.37 MB
cl 14:39:18 cl-0     Loading kernels
cl 14:39:18 cl-0     Creating buffer for header.
cl 14:39:18 cl-0     Creating mining buffer
Abort trap: 6

Expected behavior No crash, mining starts.

Environment (please complete the following information):

sowson commented 3 years ago

Same to me, Root Cause not known ;-/.

eliezedeck commented 3 years ago

I've tried many repos based on https://github.com/ethereum-mining/ethminer and all of them crashed this way apparently.

bruno-berchielli commented 3 years ago

Hi @eliezedeck

This happens only with Nicehash? Or is this the same for every provider?

I'm about to upgrade my hackintosh GPU and would like if I will be able to mine with it.

Thansk

eliezedeck commented 3 years ago

@bruno-berchielli well, I don't clearly remember but I think I tried another one and it did the same thing. It's the OpenCL part which is crashing, so it will crash regardless of the pool.

sowson commented 3 years ago

here is the route cause that I do not want to solve

It is Screen Shot 2021-09-24 at 00 58 20

works but only partially when is Screen Shot 2021-09-24 at 01 01 10

The issue is " / 2" on buffers sizes... but it cannot be changed just like that... it affects computation, and I gave up. I prefer to use Ubuntu, where the PC is both quiet and fast (OpenCL v2.x), not where it is blocked at macOS (OpenCL v1.2). I will not solve this because I tried hard, and it is too complicated for me... and on Ubuntu, in dual boot, it has just works! ;-).