Нужно отлаить код в UBUNTU что-бы небыло ошибки -"Segmentation fault"

500 руб. за проект
17 июля 2020, 17:08 • 3 отклика • 64 просмотра
нужно исправить ошибку в этой программе:

https://github.com/Telariust/VanitySearch-bitcrack

Версия ОС - nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04

В windows все работает без ошибок, а в Linux беда !!!

После компиляции и запуска выдает следующее:

-----------------------------

ot@C.606697:/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/fullVanitySearch

-bash: VanitySearch: command not found

root@C.606697:
/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512g

root@C.606697:/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$ ./VanitySearch -l

GPU #0 GeForce GTX 1070 Ti (19x128 cores) (Cap 6.1) (8119.6 MB) (Multiple host threads)

GPU #1 GeForce GTX 1070 Ti (19x128 cores) (Cap 6.1) (8119.2 MB) (Multiple host threads)

root@C.606697:
/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$
./VanitySearch -t 0 -gpu -gpuId 0,1 -o result2.txt --keyspace
B504F333F9DE6484:FFFFFFFFFFFFFFFF 1LqJ9cHPKxPXDRia4tteTJdLXnisnfHsof

Segmentation fault (core dumped)

root@C.606697:/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$
./VanitySearch -t 0 -gpu -gpuId 0,1 -o result2.txt --keyspace
B504F333F9DE6484 1LqJ9cHPKxPXDRia4tteTJdLXnisnfHsof

Segmentation fault (core dumped)

root@C.606697:
/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$


root@C.606697:/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$ make gpu=1 ccap=74 all

mkdir -p obj

cd obj && mkdir -p GPU

cd obj && mkdir -p hash

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Base58.o -c Base58.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/IntGroup.o -c IntGroup.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/main.o -c main.cpp

main.cpp: In function 'void getKeySpace(const string&, BITCRACK_PARAM*, Int&)':

main.cpp:156:40: warning: format '%X' expects argument of type 'unsigned
int*', but argument 3 has type 'unsigned char*' [-Wformat=]

sscanf(&item[2 * i], "%02X", &my1ch);

~~~~~~^

main.cpp:171:40: warning: format '%X' expects argument of type 'unsigned
int*', but argument 3 has type 'unsigned char*' [-Wformat=]

sscanf(&item[2 * i], "%02X", &my1ch);

~~~~~~^

main.cpp:185:40: warning: format '%X' expects argument of type 'unsigned
int*', but argument 3 has type 'unsigned char*' [-Wformat=]

sscanf(&item[2 * i], "%02X", &my1ch);

~~~~~~^

main.cpp: In function 'void checkKeySpace(BITCRACK_PARAM*, Int&)':

main.cpp:208:76: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

printf("[ERROR] START/END IsGreater %064s \n", maxKey.GetBase16().c_str());

^

main.cpp: In function 'void loadProgress(std::__cxx11::string, BITCRACK_PARAM*)':

main.cpp:292:67: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

printf("[load] start=%064s \n", bc->ksStart.GetBase16().c_str());

^

main.cpp:293:66: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

printf("[load] next=%064s \n", bc->ksNext.GetBase16().c_str());

^

main.cpp:294:68: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

printf("[load] end=%064s \n", bc->ksFinish.GetBase16().c_str());

^

main.cpp: In function 'void outputAdd(std::__cxx11::string, int,
std::__cxx11::string, std::__cxx11::string, std::__cxx11::string)':

main.cpp:411:55: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

fprintf(f, "Priv (HEX): 0x%064s\n", pAddrHex.c_str());

^

main.cpp: In function 'int main(int, char**)':

main.cpp:799:69: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

printf("[keyspace] start=%064s\n", bc->ksStart.GetBase16().c_str());

^

main.cpp:800:70: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

printf("[keyspace] end=%064s\n", bc->ksFinish.GetBase16().c_str());

^

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Random.o -c Random.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Timer.o -c Timer.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Int.o -c Int.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/IntMod.o -c IntMod.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Point.o -c Point.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/SECP256K1.o -c SECP256K1.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Vanity.o -c Vanity.cpp

Vanity.cpp: In constructor 'VanitySearch::VanitySearch(Secp256K1*,
std::vector<std::__cxx11::basic_string >&,
std::__cxx11::string, int, bool, bool, std::__cxx11::string, bool,
uint32_t, uint64_t, bool, Point&, bool, std::__cxx11::string,
BITCRACK_PARAM*)':

Vanity.cpp:322:40: warning: format '%X' expects argument of type
'unsigned int*', but argument 3 has type 'unsigned char*' [-Wformat=]

sscanf(&seed[2 * i], "%02X", &my1ch);

~~~~~~^

Vanity.cpp: In member function 'void VanitySearch::output(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string)':

Vanity.cpp:846:57: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

fprintf(f, "Priv (HEX): 0x%064s\n", pAddrHex.c_str());

^

Vanity.cpp: In member function 'void VanitySearch::saveProgress(TH_PARAM*, Int&, BITCRACK_PARAM*)':

Vanity.cpp:1863:61: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

printf("\n[save] 0x%064s \n", lowerKey.GetBase16().c_str());

^

Vanity.cpp:1871:64: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

fprintf(fh, "start=%064s\n", bc->ksStart.GetBase16().c_str());

^

Vanity.cpp:1872:60: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

fprintf(fh, "next=%064s\n", lowerKey.GetBase16().c_str());

^

Vanity.cpp:1873:63: warning: '0' flag used with '%s' gnu_printf format [-Wformat=]

fprintf(fh, "end=%064s\n", bc->ksFinish.GetBase16().c_str());

^

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I.
-I/usr/local/cuda-10.0/include -o obj/GPU/GPUGenerate.o -c
GPU/GPUGenerate.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I.
-I/usr/local/cuda-10.0/include -o obj/hash/ripemd160.o -c
hash/ripemd160.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/hash/sha256.o -c hash/sha256.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/hash/sha512.o -c hash/sha512.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I.
-I/usr/local/cuda-10.0/include -o obj/hash/ripemd160_sse.o -c
hash/ripemd160_sse.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I.
-I/usr/local/cuda-10.0/include -o obj/hash/sha256_sse.o -c
hash/sha256_sse.cpp

/usr/local/cuda-10.0/bin/nvcc -maxrregcount=0 --ptxas-options=-v
--compile --compiler-options -fPIC -ccbin /usr/bin/g++-7 -m64 -O2
-I/usr/local/cuda-10.0/include -gencode=arch=compute_74,code=sm_74 -o
obj/GPU/GPUEngine.o -c GPU/GPUEngine.cu

nvcc fatal : Unsupported gpu architecture 'compute_74'

Makefile:63: recipe for target 'obj/GPU/GPUEngine.o' failed

make: *** [obj/GPU/GPUEngine.o] Error 1

root@C.606697:
/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$ make gpu=1 ccap=72 all

/usr/local/cuda-10.0/bin/nvcc -maxrregcount=0 --ptxas-options=-v
--compile --compiler-options -fPIC -ccbin /usr/bin/g++-7 -m64 -O2
-I/usr/local/cuda-10.0/include -gencode=arch=compute_72,code=sm_72 -o
obj/GPU/GPUEngine.o -c GPU/GPUEngine.cu

ptxas info : 59 bytes gmem, 33456 bytes cmem[3]

ptxas info : Compiling entry function '_Z22comp_keys_p2sh_patternjPtPmjPj' for 'sm_72'

ptxas info : Function properties for _Z22comp_keys_p2sh_patternjPtPmjPj

32992 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Used 126 registers, 392 bytes cmem[0]

ptxas info : Function properties for _Z10CheckPointPjiiiPtS_jS_i

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetAddressiPjPc

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetHash160PmS_Ph

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z13CheckP2SHHashjPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z14_ModInvGroupedPA4_m

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z15_GetHash160CompPmhPh

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z17CheckHashP2SHCompPtPmhiPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z19CheckHashP2SHUncompPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z19_GetHash160P2SHCompPmhPh

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z21_GetHash160P2SHUncompPmS_Ph

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z6_MatchPKcS0

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z7_ModInvPm

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Compiling entry function '_Z17comp_keys_patternjPtPmjPj' for 'sm_72'

ptxas info : Function properties for _Z17comp_keys_patternjPtPmjPj

32992 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Used 126 registers, 392 bytes cmem[0]

ptxas info : Function properties for _Z10CheckPointPjiiiPtS_jS_i

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetAddressiPjPc

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetHash160PmS_Ph

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z13CheckHashCompPtPmhiPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z14_ModInvGroupedPA4_m

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z15CheckHashUncompPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z15_GetHash160CompPmhPh

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z6_MatchPKcS0

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z7_ModInvPm

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z9CheckHashjPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Compiling entry function 'Z14comp_keys_compPtPjPmjS0' for 'sm_72'

ptxas info : Function properties for Z14comp_keys_compPtPjPmjS0

32912 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Used 128 registers, 392 bytes cmem[0]

ptxas info : Function properties for _Z10CheckPointPjiiiPtS_jS_i

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetAddressiPjPc

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z13CheckHashCompPtPmhiPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z14_ModInvGroupedPA4_m

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z15_GetHash160CompPmhPh

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z6_MatchPKcS0

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z7_ModInvPm

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Compiling entry function 'Z14comp_keys_p2shjPtPjPmjS0' for 'sm_72'

ptxas info : Function properties for Z14comp_keys_p2shjPtPjPmjS0

32992 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Used 128 registers, 400 bytes cmem[0]

ptxas info : Function properties for _Z10CheckPointPjiiiPtS_jS_i

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetAddressiPjPc

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetHash160PmS_Ph

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z13CheckP2SHHashjPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z14_ModInvGroupedPA4_m

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z15_GetHash160CompPmhPh

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z17CheckHashP2SHCompPtPmhiPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z19CheckHashP2SHUncompPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z19_GetHash160P2SHCompPmhPh

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z21_GetHash160P2SHUncompPmS_Ph

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z6_MatchPKcS0

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z7_ModInvPm

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Compiling entry function 'Z9comp_keysjPtPjPmjS0' for 'sm_72'

ptxas info : Function properties for Z9comp_keysjPtPjPmjS0

32992 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Used 128 registers, 400 bytes cmem[0]

ptxas info : Function properties for _Z10CheckPointPjiiiPtS_jS_i

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetAddressiPjPc

ptxas info : Used 128 registers, 400 bytes cmem[0]

ptxas info : Function properties for _Z10CheckPointPjiiiPtS_jS_i

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetAddressiPjPc

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z11_GetHash160PmS_Ph

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z13CheckHashCompPtPmhiPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z14_ModInvGroupedPA4_m

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z15CheckHashUncompPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z15_GetHash160CompPmhPh

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z6_MatchPKcS0

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for _Z7_ModInvPm

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

ptxas info : Function properties for Z9CheckHashjPtPmS0_iPjjS1

0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Bech32.o -c Bech32.cpp

g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-10.0/include -o obj/Wildcard.o -c Wildcard.cpp

Making VanitySearch...

g++ obj/Base58.o obj/IntGroup.o obj/main.o obj/Random.o obj/Timer.o
obj/Int.o obj/IntMod.o obj/Point.o obj/SECP256K1.o obj/Vanity.o
obj/GPU/GPUGenerate.o obj/hash/ripemd160.o obj/hash/sha256.o
obj/hash/sha512.o obj/hash/ripemd160_sse.o obj/hash/sha256_sse.o
obj/GPU/GPUEngine.o obj/Bech32.o obj/Wildcard.o -lpthread
-L/usr/local/cuda-10.0/lib64 -lcudart -o VanitySearch

root@C.606697:/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$ root@C.606697:/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$
./VanitySearch -t 0 -gpu -gpuId 0,1 -o result2.txt --keyspace
B504F333F9DE6484 1LqJ9cHPKxPXDRia4tteTJdLXnisnfHsof

-bash: root@C.606697:/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$: No such file or directory

root@C.606697:
/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$
./VanitySearch -t 0 -gpu -gpuId 0,1 -o result2.txt --ke

yspace B504F333F9DE6484 1LqJ9cHPKxPXDRia4tteTJdLXnisnfHsof

Segmentation fault (core dumped)

root@C.606697:~/VanitySearch-1.15.4_bitcrack/src_VanitySearch-1.15.4_bitcrack_th512gr/full$

такие дела. нужно срочно, прошу отзываться тех кто располагает временем и знаниями для решения проекта - оплата на банковскую карту с карты сбербанка 500 руб !!!