Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

ethminer aborting after creating the mining buffer on MacOS #2408

Open
outlandr opened this issue Jan 29, 2022 · 1 comment
Open

ethminer aborting after creating the mining buffer on MacOS #2408

outlandr opened this issue Jan 29, 2022 · 1 comment

Comments

@outlandr
Copy link

outlandr commented Jan 29, 2022

Issue
I managed to compile ethminer on MacOS using https://github.com/danieleftodi/ethminer/archive/refs/heads/macOS_compile.zip (had to turn off the CUDA build option for it to work but outside of that made no changes to the CMake files) and tried to test it but it aborts each time right after creating the mining buffer - see the output below:

ethminer -G -Z 14007187

ethminer 0.19.2
Build: darwin/release/appleclang

i 22:38:36 Selected pool localhost:0
i 22:38:36 Established connection to localhost:0
i 22:38:36 Spinning up miners...
cl 22:38:36 cl-0 Using Device : Intel GPU 0.0 AMD Radeon Pro W5700X Compute Engine OpenCL 1.2 Memory : 15.98 GB (xxxxxx B)
cl 22:38:36 cl-1 Using Device : Intel GPU 0.1 AMD Radeon PRO W6800X Duo Compute Engine OpenCL 1.2 Memory : 31.98 GB (xxxxxxx B)
cl 22:38:36 cl-2 Using Device : Intel GPU 0.2 AMD Radeon PRO W6800X Duo Compute Engine OpenCL 1.2 Memory : 31.98 GB (xxxxxxxx B)
i 22:38:36 sim Epoch : 466 Difficulty : 4.29 Gh
i 22:38:36 sim Job: c9f2cea6… block 14007187 localhost:0
cl 22:38:39 cl-0 Generating split DAG + Light (total): 4.64 GB
cl 22:38:39 cl-1 Generating split DAG + Light (total): 4.64 GB
cl 22:38:39 cl-2 Generating split DAG + Light (total): 4.64 GB
cl 22:38:39 cl-0 OpenCL kernel
cl 22:38:39 cl-1 OpenCL kernel
cl 22:38:39 cl-2 OpenCL kernel
cl 22:38:39 cl-1 Creating DAG buffer, size: 4.64 GB, free: 27.34 GB
cl 22:38:39 cl-2 Creating DAG buffer, size: 4.64 GB, free: 27.34 GB
cl 22:38:39 cl-0 Creating DAG buffer, size: 4.64 GB, free: 11.34 GB
cl 22:38:39 cl-1 Creating light cache buffer, size: 74.25 MB
cl 22:38:39 cl-0 Creating light cache buffer, size: 74.25 MB
cl 22:38:39 cl-1 Loading kernels
cl 22:38:39 cl-0 Loading kernels
cl 22:38:39 cl-2 Creating light cache buffer, size: 74.25 MB
cl 22:38:39 cl-2 Loading kernels
cl 22:38:39 cl-0 Creating buffer for header.
cl 22:38:39 cl-0 Creating mining buffer
zsh: abort ethminer -G -Z 14007187

Doing this on a Mac Pro 2019 with a W6800X Duo and W5700X GPU - have tried the same thing with cruxpool - exact same abort error.

Update
The console output for the crash is as follows:


Translated Report

Process: ethminer [39113]
Path: /usr/local/Cellar/ethminer-macOS_compile/build/ethminer/ethminer
Identifier: ethminer
Version: ???
Code Type: X86-64 (Native)
Parent Process: zsh [32056]
Responsible: Terminal [20211]
User ID: 501

Date/Time: 2022-01-30 09:55:29.0730 +0900
OS Version: macOS 12.1 (21C52)
Report Version: 12
Bridge OS Version: 6.1 (19P647)
Anonymous UUID: xxx

Sleep/Wake UUID: xxx

Time Awake Since Boot: 480000 seconds
Time Since Wake: 98329 seconds

System Integrity Protection: enabled

Crashed Thread: 6 cl-2 Dispatch queue: opencl_runtime

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Application Specific Signatures:
Graphics kernel error: 0xfffffff9

Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff80c93b506 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff80c975a69 _pthread_cond_wait + 1224
2 libc++.1.dylib 0x7ff80c8d4ec2 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 18
3 ethminer 0x10a5dcfeb MinerCLI::doMiner() + 1243
4 ethminer 0x10a58a353 MinerCLI::execute() + 3347
5 ethminer 0x10a581792 main + 1266
6 dyld 0x115fb34fe start + 462

Thread 1:
0 libsystem_kernel.dylib 0x7ff80c93d45e kevent + 10
1 ethminer 0x10a595822 boost::asio::detail::kqueue_reactor::run(long, boost::asio::detail::op_queueboost::asio::detail::scheduler_operation&) + 322
2 ethminer 0x10a5951ae boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 478
3 ethminer 0x10a594d51 boost::asio::detail::scheduler::run(boost::system::error_code&) + 257
4 ethminer 0x10a596ad7 boost::asio::io_context::run() + 55
5 ethminer 0x10a5a64ff void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::valueboost::asio::io_context* > > > >(void*) + 63
6 libsystem_pthread.dylib 0x7ff80c9754f4 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff80c97100f thread_start + 15

Thread 2:
0 libsystem_pthread.dylib 0x7ff80c970fec start_wqthread + 0

Thread 3:: Dispatch queue: opencl_runtime
0 libsystem_kernel.dylib 0x7ff80c938aba mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff80c938e2b mach_msg + 59
2 IOKit 0x7ff80f319c11 io_connect_method + 387
3 IOKit 0x7ff80f319a60 IOConnectCallMethod + 244
4 IOAccelerator 0x7ff8152a021f IOAccelResourceCreate + 138
5 libGPUSupportMercury.dylib 0x7ff91c048fe0 gpusGetKernelBufferResource + 201
6 AMDRadeonX6000GLDriver 0x10af7ae5c glrUpdateBuffer + 1059
7 libGPUSupportMercury.dylib 0x7ff91c048ce7 gldLoadBuffer + 76
8 OpenCL 0x7ffa25c8f0bc 0x7ffa25c57000 + 229564
9 OpenCL 0x7ffa25c9d15d 0x7ffa25c57000 + 287069
10 OpenCL 0x7ffa25c81de6 0x7ffa25c57000 + 175590
11 OpenCL 0x7ffa25c83dc4 0x7ffa25c57000 + 183748
12 libdispatch.dylib 0x7ff80c7becc9 _dispatch_client_callout + 8
13 libdispatch.dylib 0x7ff80c7c4cee _dispatch_lane_serial_drain + 696
14 libdispatch.dylib 0x7ff80c7c57c8 _dispatch_lane_invoke + 366
15 libdispatch.dylib 0x7ff80c7cf7e1 _dispatch_workloop_worker_thread + 758
16 libsystem_pthread.dylib 0x7ff80c972074 _pthread_wqthread + 326
17 libsystem_pthread.dylib 0x7ff80c970ffb start_wqthread + 15

Thread 4:: cl-0
0 libsystem_kernel.dylib 0x7ff80c93a1c2 kevent_id + 10
1 libdispatch.dylib 0x7ff80c7dd6ce _dispatch_kq_poll + 164
2 libdispatch.dylib 0x7ff80c7de180 _dispatch_event_loop_wait_for_ownership + 521
3 libdispatch.dylib 0x7ff80c7cc38c DISPATCH_WAIT_FOR_QUEUE + 279
4 libdispatch.dylib 0x7ff80c7cbfe5 _dispatch_sync_f_slow + 170
5 OpenCL 0x7ffa25c5c9e5 clFinish + 80
6 ethminer 0x10a86d44c dev::eth::CLMiner::initEpoch_internal() + 9644
7 ethminer 0x10a5edeb4 dev::eth::Miner::initEpoch() + 372
8 ethminer 0x10a866a36 dev::eth::CLMiner::workLoop() + 1222
9 ethminer 0x10a647e6d void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, dev::Worker::startWorking()::$_0> >(void*) + 141
10 libsystem_pthread.dylib 0x7ff80c9754f4 _pthread_start + 125
11 libsystem_pthread.dylib 0x7ff80c97100f thread_start + 15

Thread 5:: cl-1
0 libsystem_kernel.dylib 0x7ff80c93a1c2 kevent_id + 10
1 libdispatch.dylib 0x7ff80c7dd6ce _dispatch_kq_poll + 164
2 libdispatch.dylib 0x7ff80c7de180 _dispatch_event_loop_wait_for_ownership + 521
3 libdispatch.dylib 0x7ff80c7cc38c DISPATCH_WAIT_FOR_QUEUE + 279
4 libdispatch.dylib 0x7ff80c7cbfe5 _dispatch_sync_f_slow + 170
5 OpenCL 0x7ffa25c5c9e5 clFinish + 80
6 ethminer 0x10a86d44c dev::eth::CLMiner::initEpoch_internal() + 9644
7 ethminer 0x10a5edeb4 dev::eth::Miner::initEpoch() + 372
8 ethminer 0x10a866a36 dev::eth::CLMiner::workLoop() + 1222
9 ethminer 0x10a647e6d void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, dev::Worker::startWorking()::$_0> >(void*) + 141
10 libsystem_pthread.dylib 0x7ff80c9754f4 _pthread_start + 125
11 libsystem_pthread.dylib 0x7ff80c97100f thread_start + 15

Thread 6 Crashed:: cl-2 Dispatch queue: opencl_runtime
0 libsystem_kernel.dylib 0x7ff80c93f112 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff80c975214 pthread_kill + 263
2 libsystem_c.dylib 0x7ff80c8c1d10 abort + 123
3 libGPUSupportMercury.dylib 0x7ff91c04957f gpusGenerateCrashLog + 157
4 AMDRadeonX6000GLDriver 0x10afa97c2 gpusKillClientExt + 9
5 libGPUSupportMercury.dylib 0x7ff91c049f33 gpusQueueSubmitDataBuffers + 162
6 AMDRadeonX6000GLDriver 0x10af7898d glrAMDCompSubmitPackets + 111
7 AMDRadeonX6000GLDriver 0x10af788ea glrAMDFlush + 30
8 AMDRadeonX6000GLDriver 0x10af78ca9 gldFlushQueue + 37
9 AMDRadeonX6000GLDriver 0x10af78cc8 gldFinishQueue + 19
10 OpenCL 0x7ffa25c6d248 0x7ffa25c57000 + 90696
11 OpenCL 0x7ffa25c83b63 0x7ffa25c57000 + 183139
12 libdispatch.dylib 0x7ff80c7becc9 _dispatch_client_callout + 8
13 libdispatch.dylib 0x7ff80c7cc4a1 _dispatch_sync_invoke_and_complete_recurse + 65
14 libdispatch.dylib 0x7ff80c7cbffd _dispatch_sync_f_slow + 194
15 OpenCL 0x7ffa25c5c9e5 clFinish + 80
16 ethminer 0x10a86d44c dev::eth::CLMiner::initEpoch_internal() + 9644
17 ethminer 0x10a5edeb4 dev::eth::Miner::initEpoch() + 372
18 ethminer 0x10a866a36 dev::eth::CLMiner::workLoop() + 1222
19 ethminer 0x10a647e6d void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, dev::Worker::startWorking()::$_0> >(void*) + 141
20 libsystem_pthread.dylib 0x7ff80c9754f4 _pthread_start + 125
21 libsystem_pthread.dylib 0x7ff80c97100f thread_start + 15

Thread 7:: sim
0 libsystem_kernel.dylib 0x7ff80c93b3da __semwait_signal + 10
1 libsystem_c.dylib 0x7ff80c8508a9 nanosleep + 196
2 libc++.1.dylib 0x7ff80c8dec11 std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&) + 73
3 ethminer 0x10a6058b1 SimulateClient::workLoop() + 673
4 ethminer 0x10a647e6d void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, dev::Worker::startWorking()::$_0> >(void*) + 141
5 libsystem_pthread.dylib 0x7ff80c9754f4 _pthread_start + 125
6 libsystem_pthread.dylib 0x7ff80c97100f thread_start + 15

Thread 8:: Dispatch queue: opencl_runtime
0 libsystem_kernel.dylib 0x7ff80c93acf2 __psynch_mutexwait + 10
1 libsystem_pthread.dylib 0x7ff80c972e8f _pthread_mutex_firstfit_lock_wait + 76
2 libsystem_pthread.dylib 0x7ff80c970d58 _pthread_mutex_firstfit_lock_slow + 204
3 libGPUSupportMercury.dylib 0x7ff91c048cc7 gldLoadBuffer + 44
4 OpenCL 0x7ffa25c8f0bc 0x7ffa25c57000 + 229564
5 OpenCL 0x7ffa25c9d15d 0x7ffa25c57000 + 287069
6 OpenCL 0x7ffa25c81de6 0x7ffa25c57000 + 175590
7 OpenCL 0x7ffa25c83dc4 0x7ffa25c57000 + 183748
8 libdispatch.dylib 0x7ff80c7becc9 _dispatch_client_callout + 8
9 libdispatch.dylib 0x7ff80c7c4cee _dispatch_lane_serial_drain + 696
10 libdispatch.dylib 0x7ff80c7c57c8 _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x7ff80c7cf7e1 _dispatch_workloop_worker_thread + 758
12 libsystem_pthread.dylib 0x7ff80c972074 _pthread_wqthread + 326
13 libsystem_pthread.dylib 0x7ff80c970ffb start_wqthread + 15

Thread 9:: Dispatch queue: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x7ff80c938aba mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff80c938e2b mach_msg + 59
2 IOKit 0x7ff80f319c11 io_connect_method + 387
3 IOKit 0x7ff80f319a26 IOConnectCallMethod + 186
4 IOAccelerator 0x7ff8152a0943 ioAccelResourceFinalize + 165
5 CoreFoundation 0x7ff80cb09936 _CFRelease + 244
6 libGPUSupportMercury.dylib 0x7ff91c048d9d gldDestroyMemoryPlugin + 61
7 libGPUSupportMercury.dylib 0x7ff91c048d51 gldDestroyBuffer + 40
8 OpenCL 0x7ffa25c8e61c 0x7ffa25c57000 + 226844
9 libdispatch.dylib 0x7ff80c7bdad8 _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x7ff80c7becc9 _dispatch_client_callout + 8
11 libdispatch.dylib 0x7ff80c7ce50b _dispatch_root_queue_drain + 680
12 libdispatch.dylib 0x7ff80c7ceb5a _dispatch_worker_thread2 + 160
13 libsystem_pthread.dylib 0x7ff80c97202e _pthread_wqthread + 256
14 libsystem_pthread.dylib 0x7ff80c970ffb start_wqthread + 15

Thread 10:
0 libsystem_pthread.dylib 0x7ff80c970fec start_wqthread + 0

Thread 11:
0 libsystem_pthread.dylib 0x7ff80c970fec start_wqthread + 0

Thread 6 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000700003218000 rcx: 0x0000700003216e28 rdx: 0x0000000000000000
rdi: 0x0000000000003503 rsi: 0x0000000000000006 rbp: 0x0000700003216e50 rsp: 0x0000700003216e28
r8: 0x0000700003216c30 r9: 0x00007ff91c0526cb r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000003503 r13: 0x0000600001029900 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007ff80c93f112 rfl: 0x0000000000000246 cr2: 0x00007ff94fd42060

Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133

Binary Images:
0x7ff80c938000 - 0x7ff80c96efff libsystem_kernel.dylib () <5aa1e5be-b5b8-3a02-9885-a8c99e0ca378> /usr/lib/system/libsystem_kernel.dylib
0x7ff80c96f000 - 0x7ff80c97afff libsystem_pthread.dylib (
) <6c7561b4-4b92-3f45-921e-abe669299844> /usr/lib/system/libsystem_pthread.dylib
0x7ff80c8c9000 - 0x7ff80c921fff libc++.1.dylib () /usr/lib/libc++.1.dylib
0x10a57b000 - 0x10a902fff ethminer (
) <603f67f9-285e-3342-8df3-88d36078190c> /usr/local/Cellar/ethminer-macOS_compile/build/ethminer/ethminer
0x115fae000 - 0x116019fff dyld () /usr/lib/dyld
0x7ff80f317000 - 0x7ff80f3ccfff com.apple.framework.IOKit (2.0.2) <87a33021-c798-3ab6-b9c9-e191c58c495d> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7ff81529e000 - 0x7ff8152a6fff com.apple.IOAccelerator (462.4.1) /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x7ff91c048000 - 0x7ff91c052fff libGPUSupportMercury.dylib (
) /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib
0x10af74000 - 0x10b0dbfff com.apple.AMDRadeonX6000GLDriver (4.7.101) <0e54d2ac-628f-30a4-8a9f-06bb30a2d6c5> /System/Library/Extensions/AMDRadeonX6000GLDriver.bundle/Contents/MacOS/AMDRadeonX6000GLDriver
0x7ffa25c57000 - 0x7ffa25caefff com.apple.opencl (4.7) <4d4e69fe-beec-3a8a-8cb1-575d209053bb> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7ff80c7bc000 - 0x7ff80c802fff libdispatch.dylib () /usr/lib/system/libdispatch.dylib
0x7ff80c840000 - 0x7ff80c8c8fff libsystem_c.dylib (
) /usr/lib/system/libsystem_c.dylib
0x7ff80c9bc000 - 0x7ff80cebefff com.apple.CoreFoundation (6.9) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=801.3M resident=0K(0%) swapped_out_or_unallocated=801.3M(100%)
Writable regions: Total=15.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=15.5G(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 1
Kernel Alloc Once 8K 1
MALLOC 323.6M 34
MALLOC guard page 24K 5
MALLOC_MEDIUM (reserved) 720.0M 6 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
OpenCL 9.5G 79
OpenCL (reserved) 4.6G 3 reserved VM address space (unallocated)
STACK GUARD 56.0M 12
Stack 13.6M 14
VM_ALLOCATE 228K 8
__DATA 23.5M 202
__DATA_CONST 8363K 135
__DATA_DIRTY 312K 78
__FONT_DATA 4K 1
__GLSLBUILTINS 5176K 1
__LINKEDIT 642.8M 9
__OBJC_RO 81.8M 1
__OBJC_RW 3136K 2
__TEXT 158.5M 215
__UNICODE 588K 1
dyld private memory 1024K 1
mapped file 168K 3
shared memory 1272K 14
=========== ======= =======
TOTAL 16.5G 827
TOTAL, minus reserved VM space 10.8G 827

Any thoughts on what might be going wrong would be greatly appreciated.

@bettimms
Copy link

Have you managed to solve this? I'm having the same issue.

Screen Shot 2022-04-14 at 1 41 58 PM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants