-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SegFault after accepting first block #696
Comments
So I fixed it... For the record, I was running Debian Jessie on those servers, so I upgraded, then changed sources.list to stretch and upgraded the system. After upgrade the package compiled and ran no problems! Might I suggest fixing this jessie-and-backwards compatability issue for ARM and those older machines that can't run the latest Debian? This ticket will be left open until response, feel free to respond and close. Thanks |
|
I actually found out some of the servers still do this... I did some researching and it turns out these machines are i586 (I think) and there is an issue where some of them have the CMOV instruction set, and some do not. My suspicion is these do not have CMOV so I have to somehow override the CMAKE instructions to force the compiler to use the right instruction set to compile. Apparently it is a known issue with compiling anything on the machines without this instruction set. Unless the author of a program makes a fix/workaround in the CMAKE files, it will never be fixed because of the age of the architecture. Once I figure out the fix I will notify you of the fix :) |
If miner somehow use instruction not supported by host CPU error should looks like: |
I manually set the threads to 1, so that can't be the problem... GDB info:
Not sure if the movq is related to SSE... The PC reports:
So I apparantly do have SSE and I think movq is SSE instruction but I tried disabling it with -mno-sse but that does not work either Any idea now why it crashes? |
Mining code require SSE2, movq with xmm registers also require SSE2. Possible remove any SSE/SSE2 dependecies, but it require to rewrite mining code and other code like |
Hi,
I was able to successfully compile on a i686 with no severe errors. When I run ./xmrig --help it shows the help and exits.
However when I run it and connect to a pool, it seems to connect, accept a share, and then die immediately:
`root@ps0:~/MINERS/xmrig# ./xmrig -a cryptonight -o 192.168.1.2:3333 -O 486hiBt6zu5fJ9RvuHapFnJHPZ4zqtAChYvmVrs4NiLM1fonXAyHcwPhhqaZZwkTfXGNqwbKaLWag8uVBbGAwuMCKEEDDpg:ps0
[2018-06-17 22:41:38] use pool 192.168.1.2:3333 192.168.1.2
[2018-06-17 22:41:38] new job from 192.168.1.2:3333 diff 666 algo cn/1
[2018-06-17 22:41:39] READY (CPU) threads 1(1) huge pages 1/1 100% memory 2.0 MB
Segmentation fault`
There are only two suspicions I have...
Linux ps0 3.16.0-5-586 #1 Debian 3.16.51-3+deb8u1 (2018-01-08) i686 GNU/Linux
xmrig: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=b7636c964f192a10c3fff0fbefca162b90a3a5a6, stripped
Does anyone have any idea why it segfaults after accepting its first block?
Thanks for your help :)
The text was updated successfully, but these errors were encountered: