Repository: ethereum-mining/ethminer

Issue #1937: SIGSEGV when running
Created: 2019-11-02T23:37:40Z
Describe the bug
ethminer shows SIGSEGV when running
To Reproduce
/ethminer --cuda --pool stratum://xxxx.xxx@us2.ethermine.org:4444
ethminer 0.18.0
Build: darwin/release/appleclang

 i 16:17:08          Configured pool us2.ethermine.org:4444
 i 16:17:08          Selected pool us2.ethermine.org:4444
 i 16:17:08          Negotiation of EthereumStratum/2.0.0 failed. Trying another ...
 i 16:17:08          Negotiation of EthereumStratum/1.0.0 (NiceHash) failed. Trying another ...
 i 16:17:09          Stratum mode : Eth-Proxy compatible
 i 16:17:09          Established connection to us2.ethermine.org [172.65.226.101:4444]
 i 16:17:09          Spinning up miners...
cu 16:17:09 cuda-0   Using Pci Id : 01:00.0 TITAN X (Pascal) (Compute 6.1) Memory : 12.00 GB
 i 16:17:09          Epoch : 295 Difficulty : 4.00 Gh
 i 16:17:09          Job: 6e48f7a3… block 8861747 us2.ethermine.org [172.65.226.101:4444]
 i 16:17:10          Job: 26c447b7… block 8861747 us2.ethermine.org [172.65.226.101:4444]
cu 16:17:10 cuda-0   Generating DAG + Light : 3.36 GB
 i 16:17:12          Job: e36c5568… block 8861748 us2.ethermine.org [172.65.226.101:4444]
 i 16:17:12          Job: 6c754605… block 8861748 us2.ethermine.org [172.65.226.101:4444]
 m 16:17:13          0:00 A0 0.00 h - cu0 0.00
 i 16:17:17          Job: 986e20f4… block 8861748 us2.ethermine.org [172.65.226.101:4444]
 m 16:17:18          0:00 A0 0.00 h - cu0 0.00
cu 16:17:19 cuda-0   Generated DAG + Light in 8,427 ms. 8.64 GB left.
SIGSEGV encountered ...
stack trace:
backtrace() returned 8 addresses
0   ethminer                            0x000000010e104087 _ZN8MinerCLI13signalHandlerEi + 167
1   libsystem_platform.dylib            0x00007fff5f26ef5a _sigtramp + 26
2   ???                                 0x0000000119831a77 0x0 + 4722989687
3   ethminer                            0x000000010e389d1a _ZN3dev3eth9CUDAMiner8workLoopEv + 666
4   ethminer                            0x000000010e169948 _ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN3dev6Worker12startWorkingEvE3$_0EEEEEPvSB_ + 168
5   libsystem_pthread.dylib             0x00007fff5f278661 _pthread_body + 340
6   libsystem_pthread.dylib             0x00007fff5f27850d _pthread_body + 0
7   libsystem_pthread.dylib             0x00007fff5f277bf9 thread_start + 13
SIGSEGV encountered ...
stack trace:
backtrace() returned 10 addresses

Environment (please complete the following information):

Operating System: macOS 10.13.6
Hardware Titan X Pascal
Ethminer Version 0.18
Ethminer options used --cuda

Additional context
lldb on ethminer crashed my computer

Duplicate issue #2258: Crash with SIGSEGV Error
Created: 2021-04-11T19:29:04Z
i 07:30:02 ethminer Epoch : 407 Difficulty : 4.29 Gh
i 07:30:02 ethminer Job: 0f58a90b… eu1.ethermine.org [172.65.207.106:4444]
cu 07:30:03 cuda-0   Job: 95e9b901… Sol: 0x2523d3d911d6aa01
cu 07:30:05 cuda-0   Generating DAG + Light : 4.24 GB
SIGSEGV encountered ...
stack trace:
backtrace() returned 19 addresses
./ethminer() [0x422af9]
/lib/x86_64-linux-gnu/libc.so.6(+0x3f040) [0x7f7afcbef040]
/usr/lib/x86_64-linux-gnu/libcuda.so.1(+0x133a90) [0x7f7aebff7a90]
/usr/lib/x86_64-linux-gnu/libcuda.so.1(+0x1f017e) [0x7f7aec0b417e]
/usr/lib/x86_64-linux-gnu/libcuda.so.1(+0x2eeff7) [0x7f7aec1b2ff7]
/usr/lib/x86_64-linux-gnu/libcuda.so.1(+0x1f188e) [0x7f7aec0b588e]
/usr/lib/x86_64-linux-gnu/libcuda.so.1(+0xfe91e) [0x7f7aebfc291e]
/usr/lib/x86_64-linux-gnu/libcuda.so.1(+0x1002d8) [0x7f7aebfc42d8]
/usr/lib/x86_64-linux-gnu/libcuda.so.1(cuMemcpyHtoD_v2+0x65) [0x7f7aec13bf55]
./ethminer() [0x72ff9e]
./ethminer() [0x700726]
./ethminer() [0x735deb]
./ethminer() [0x6e8a48]
./ethminer() [0x46f265]
./ethminer() [0x6eb4ec]
./ethminer() [0x4baff6]
./ethminer() [0x773aaf]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7f7afd55e6db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f7afccd171f]
...
this happens after several days of mining on NVIDIA RTX 20 series. Difficult to reproduce.

Closing comment (2021-05-26T13:30:11Z): This issue appears to be a duplicate of #1937