Illegal Instruction (core dumped) - Ubuntu

Hi - I’m on ubuntu and attempting to get it running. I have tried building the release (following the instructions left here, and grin compiles, I can init and listen to the wallet, but when both building the grin-miner through the instructions and trying to use the prebuilt miner found here, the program crashes with the illegal instruction (core dumped) message. That happens on the built version regardless of if I tried to build the cuda plugins for video card mining, or if I just build with the default cargo.toml file for cpu mining.

the log doesn’t even seem to point to an error:

Jan 25 23:26:17.665 INFO This is Grin-Miner version 1.0.2 (git v1.0.2), built for x86_64-unknown-linux-gnu by rustc 1.31.1 (b6c32da9b 2018-12-18).
Jan 25 23:26:17.666 DEBG Built with profile “release”, features “CURSIVE, DEFAULT, OCL_CUCKAROO, OCL_CUCKATOO, OPENCL, TUI” on Thu, 17 Jan 2019 09:43:20 GMT.
Jan 25 23:26:17.666 DEBG Starting solvers
Jan 25 23:26:17.666 DEBG No mining plugin dir provided by config. Using default plugin dir: “/home/miner2/Downloads/grin-miner-v1.0.2/plugins”
Jan 25 23:26:17.666 DEBG Loading miner plugin: /home/miner2/Downloads/grin-miner-v1.0.2/plugins/cuckaroo_cpu_avx2_29.cuckooplugin
Jan 25 23:26:17.669 DEBG Loading miner plugin: /home/miner2/Downloads/grin-miner-v1.0.2/plugins/cuckaroo_cpu_avx2_29.cuckooplugin
Jan 25 23:26:18.671 WARN Connection Status: Connected to Grin server at 127.0.0.1:3416.
Jan 25 23:26:18.681 DEBG sending request: {“id”:“0”,“jsonrpc”:“2.0”,“method”:“getjobtemplate”,“params”:null}
Jan 25 23:26:20.072 DEBG Mining: Plugin 0 - Device 0 () at Cuck(at)oo0 - Status: OK : Last Graph time: 0s; Graphs per second: inf - Total Attempts: 0
Jan 25 23:26:20.073 INFO Mining: Cuck(at)oo at 0 gps (graphs per second)
Jan 25 23:26:21.009 DEBG Received message: {“id”:“Stratum”,“jsonrpc”:“2.0”,“method”:“job”,“params”:{“difficulty”:1,“height”:15085,“job_id”:1,“pre_pow”:“00010000000000003aed000000005c4c0b9a0000809dd09f1f4f3dda6c2960887c051340cb2f44bd1eaea135218e1846932999573fd908132f73c5e344d363e4fee40b68aeb58e288c6d23f56522b1aea805e0d4517cde7f9952aeae6592561332b4c4f31be461be0e64f16c5558ded4be3e67a87f04a99b9ea58f4bad7835beb47e1539adc20dff15e070c00bb7c61832d84f08abd07245e7aaba61dc2bd4388c4de55757e65caf8e9a3625957478fde5430033ca48c30a51c288da020555dbb4ac16056d5576a60021006c7bc0b8be0ccf0000000000026bb900000000000128e2000007280c94bdca000001bf”}}

Jan 25 23:26:21.009 DEBG Received request type: job
Jan 25 23:26:21.010 INFO Got a new job: JobTemplate { height: 15085, job_id: 1, difficulty: 1, pre_pow: “00010000000000003aed000000005c4c0b9a0000809dd09f1f4f3dda6c2960887c051340cb2f44bd1eaea135218e1846932999573fd908132f73c5e344d363e4fee40b68aeb58e288c6d23f56522b1aea805e0d4517cde7f9952aeae6592561332b4c4f31be461be0e64f16c5558ded4be3e67a87f04a99b9ea58f4bad7835beb47e1539adc20dff15e070c00bb7c61832d84f08abd07245e7aaba61dc2bd4388c4de55757e65caf8e9a3625957478fde5430033ca48c30a51c288da020555dbb4ac16056d5576a60021006c7bc0b8be0ccf0000000000026bb900000000000128e2000007280c94bdca000001bf” }
Jan 25 23:26:21.010 DEBG Received message: {“id”:“0”,“jsonrpc”:“2.0”,“method”:“getjobtemplate”,“result”:{“difficulty”:1,“height”:15085,“job_id”:1,“pre_pow”:“00010000000000003aed000000005c4c0b9a0000809dd09f1f4f3dda6c2960887c051340cb2f44bd1eaea135218e1846932999573fd908132f73c5e344d363e4fee40b68aeb58e288c6d23f56522b1aea805e0d4517cde7f9952aeae6592561332b4c4f31be461be0e64f16c5558ded4be3e67a87f04a99b9ea58f4bad7835beb47e1539adc20dff15e070c00bb7c61832d84f08abd07245e7aaba61dc2bd4388c4de55757e65caf8e9a3625957478fde5430033ca48c30a51c288da020555dbb4ac16056d5576a60021006c7bc0b8be0ccf0000000000026bb900000000000128e2000007280c94bdca000001bf”},“error”:null}

Jan 25 23:26:21.010 DEBG Received response with id: 0
Jan 25 23:26:21.010 INFO Got a job at height 15085 and difficulty 1
Jan 25 23:26:21.073 DEBG Miner received message: ReceivedJob(15085, 1, 1, “00010000000000003aed000000005c4c0b9a0000809dd09f1f4f3dda6c2960887c051340cb2f44bd1eaea135218e1846932999573fd908132f73c5e344d363e4fee40b68aeb58e288c6d23f56522b1aea805e0d4517cde7f9952aeae6592561332b4c4f31be461be0e64f16c5558ded4be3e67a87f04a99b9ea58f4bad7835beb47e1539adc20dff15e070c00bb7c61832d84f08abd07245e7aaba61dc2bd4388c4de55757e65caf8e9a3625957478fde5430033ca48c30a51c288da020555dbb4ac16056d5576a60021006c7bc0b8be0ccf0000000000026bb900000000000128e2000007280c94bdca000001bf”)
Jan 25 23:26:21.073 DEBG Pause message sent
Jan 25 23:26:21.074 DEBG Resume message sent
Jan 25 23:26:21.074 DEBG Miner received message: ReceivedJob(15085, 1, 1, “00010000000000003aed000000005c4c0b9a0000809dd09f1f4f3dda6c2960887c051340cb2f44bd1eaea135218e1846932999573fd908132f73c5e344d363e4fee40b68aeb58e288c6d23f56522b1aea805e0d4517cde7f9952aeae6592561332b4c4f31be461be0e64f16c5558ded4be3e67a87f04a99b9ea58f4bad7835beb47e1539adc20dff15e070c00bb7c61832d84f08abd07245e7aaba61dc2bd4388c4de55757e65caf8e9a3625957478fde5430033ca48c30a51c288da020555dbb4ac16056d5576a60021006c7bc0b8be0ccf0000000000026bb900000000000128e2000007280c94bdca000001bf”)
Jan 25 23:26:21.074 DEBG solver_thread - solver_loop_rx got msg: Pause
Jan 25 23:26:21.074 DEBG solver_thread - solver_loop_rx got msg: Resume
Jan 25 23:28:44.589 INFO This is Grin-Miner version 1.0.2 (git v1.0.2), built for x86_64-unknown-linux-gnu by rustc 1.31.1 (b6c32da9b 2018-12-18).
Jan 25 23:28:44.589 DEBG Built with profile “release”, features “CURSIVE, DEFAULT, OCL_CUCKAROO, OCL_CUCKATOO, OPENCL, TUI” on Thu, 17 Jan 2019 09:43:20 GMT.
Jan 25 23:28:44.589 DEBG Starting solvers
Jan 25 23:28:44.589 DEBG No mining plugin dir provided by config. Using default plugin dir: “/home/miner2/Downloads/grin-miner-v1.0.2/plugins”
Jan 25 23:28:44.589 DEBG Loading miner plugin: /home/miner2/Downloads/grin-miner-v1.0.2/plugins/cuckaroo_cpu_avx2_29.cuckooplugin
Jan 25 23:28:44.590 DEBG Loading miner plugin: /home/miner2/Downloads/grin-miner-v1.0.2/plugins/cuckaroo_cpu_avx2_29.cuckooplugin
Jan 25 23:28:45.595 WARN Connection Status: Connected to Grin server at 127.0.0.1:3416.
Jan 25 23:28:45.605 DEBG sending request: {“id”:“0”,“jsonrpc”:“2.0”,“method”:“getjobtemplate”,“params”:null}
Jan 25 23:28:46.002 DEBG Received message: {“id”:“Stratum”,“jsonrpc”:“2.0”,“method”:“job”,“params”:{“difficulty”:1,“height”:15092,“job_id”:0,“pre_pow”:“00010000000000003af4000000005c4c0c2d00000a9af38acd7b85adef4664fb0274a46bdadeb170dc4d3967963d4a4898b406651712b27d4a00c1e12a9991821d46e81ff2c8173f5f18513ebd6deb227f1338a53d8347a068330872edb03201522d002e05cb4db7f4434f70d8eca90ae74378e6b85e5eab83fe27c6c4e79cf72147efb69c95b6db7a9fbbae2737dd6aa9f9eedb6b4840f7903890c6d74175ac32b5b697fff500da24e5efa1aee9718c650b4fae1fb806e1103cf293c04373e0e9eea118f240899c8845d3f048c87e6424fa0000000000026ca3000000000001292a000007297c4f3328000001c0”}}

Jan 25 23:28:46.002 DEBG Received request type: job
Jan 25 23:28:46.002 INFO Got a new job: JobTemplate { height: 15092, job_id: 0, difficulty: 1, pre_pow: “00010000000000003af4000000005c4c0c2d00000a9af38acd7b85adef4664fb0274a46bdadeb170dc4d3967963d4a4898b406651712b27d4a00c1e12a9991821d46e81ff2c8173f5f18513ebd6deb227f1338a53d8347a068330872edb03201522d002e05cb4db7f4434f70d8eca90ae74378e6b85e5eab83fe27c6c4e79cf72147efb69c95b6db7a9fbbae2737dd6aa9f9eedb6b4840f7903890c6d74175ac32b5b697fff500da24e5efa1aee9718c650b4fae1fb806e1103cf293c04373e0e9eea118f240899c8845d3f048c87e6424fa0000000000026ca3000000000001292a000007297c4f3328000001c0” }
Jan 25 23:28:46.002 DEBG Received message: {“id”:“0”,“jsonrpc”:“2.0”,“method”:“getjobtemplate”,“result”:{“difficulty”:1,“height”:15092,“job_id”:0,“pre_pow”:“00010000000000003af4000000005c4c0c2d00000a9af38acd7b85adef4664fb0274a46bdadeb170dc4d3967963d4a4898b406651712b27d4a00c1e12a9991821d46e81ff2c8173f5f18513ebd6deb227f1338a53d8347a068330872edb03201522d002e05cb4db7f4434f70d8eca90ae74378e6b85e5eab83fe27c6c4e79cf72147efb69c95b6db7a9fbbae2737dd6aa9f9eedb6b4840f7903890c6d74175ac32b5b697fff500da24e5efa1aee9718c650b4fae1fb806e1103cf293c04373e0e9eea118f240899c8845d3f048c87e6424fa0000000000026ca3000000000001292a000007297c4f3328000001c0”},“error”:null}

Jan 25 23:28:46.002 DEBG Received response with id: 0
Jan 25 23:28:46.002 INFO Got a job at height 15092 and difficulty 1
Jan 25 23:28:46.095 DEBG Miner received message: ReceivedJob(15092, 0, 1, “00010000000000003af4000000005c4c0c2d00000a9af38acd7b85adef4664fb0274a46bdadeb170dc4d3967963d4a4898b406651712b27d4a00c1e12a9991821d46e81ff2c8173f5f18513ebd6deb227f1338a53d8347a068330872edb03201522d002e05cb4db7f4434f70d8eca90ae74378e6b85e5eab83fe27c6c4e79cf72147efb69c95b6db7a9fbbae2737dd6aa9f9eedb6b4840f7903890c6d74175ac32b5b697fff500da24e5efa1aee9718c650b4fae1fb806e1103cf293c04373e0e9eea118f240899c8845d3f048c87e6424fa0000000000026ca3000000000001292a000007297c4f3328000001c0”)
Jan 25 23:28:46.096 DEBG

Does anyone have any hints, tips suggestions on how I can get this thing working on ubuntu or what I’m doing wrong? I’m running rustc 1.31.1 when building the client with cargo.

what gpu are you running?

Thank you for your reply!. I am running 8x nvidia GTX 1070. The output of nvidia-smi on my system:

Sat Jan 26 14:54:37 2019
±----------------------------------------------------------------------------+
| NVIDIA-SMI 410.78 Driver Version: 410.78 CUDA Version: 10.0 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 Off | 00000000:02:00.0 Off | N/A |
| 27% 29C P0 37W / 151W | 380MiB / 8119MiB | 50% Default |
±------------------------------±---------------------±---------------------+
| 1 GeForce GTX 1070 Off | 00000000:03:00.0 Off | N/A |
| 28% 20C P8 5W / 151W | 9MiB / 8119MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 2 GeForce GTX 1070 Off | 00000000:06:00.0 Off | N/A |
| 27% 22C P8 5W / 151W | 9MiB / 8119MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 3 GeForce GTX 1070 Off | 00000000:07:00.0 Off | N/A |
| 27% 23C P8 5W / 151W | 2MiB / 8119MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 4 GeForce GTX 1070 Off | 00000000:09:00.0 Off | N/A |
| 27% 23C P8 5W / 151W | 9MiB / 8119MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 5 GeForce GTX 1070 Off | 00000000:0A:00.0 Off | N/A |
| 27% 25C P8 5W / 151W | 9MiB / 8119MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 6 GeForce GTX 1070 Off | 00000000:0B:00.0 Off | N/A |
| 28% 23C P8 5W / 151W | 9MiB / 8119MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 7 GeForce GTX 1070 Off | 00000000:0C:00.0 Off | N/A |
| 27% 20C P8 5W / 151W | 9MiB / 8119MiB | 0% Default |
±------------------------------±---------------------±---------------------+

Note - the core dump happens whether I try mining just cpu or trying to loop in gpu’s.

Output of sudo lshw | grep -i cpu:

 *-cpu
      description: CPU
      product: Intel(R) Celeron(R) CPU G3930 @ 2.90GHz
      bus info: cpu@0
      version: Intel(R) Celeron(R) CPU G3930 @ 2.90GHz
      slot: CPUSocket

output of free -m:

          total        used        free      shared  buff/cache   available

Mem: 7659 2692 3418 300 1548 4317
Swap: 7868 28 7840