Overwrite argv 
I'm making static miner that just mine for me when it run without any args required, but when I'm try to overwrite argv and argc program got core dump.
char *argvv[2];
argvv[0] = "./xmrig";
argvv[1] = "--help";
argv = argvv;
argc = 2;

it's what i'm trying to add to xmrig.cpp at int main func 

root@ubuntu:/home/ubuntu/xmrig/build# make -j$(nproc)
[  1%] Built target argon2-xop
[  2%] Built target ethash
[  4%] Built target argon2-sse2
[  4%] Built target argon2-avx512f
[  4%] Built target argon2-ssse3
[  5%] Built target argon2-avx2
[  7%] Built target xmrig-asm
[  9%] Built target argon2
Scanning dependencies of target xmrig
[ 10%] Building CXX object CMakeFiles/xmrig.dir/src/xmrig.cpp.o
/home/ubuntu/xmrig/src/xmrig.cpp: In function ‘int main(int, char**)’:
/home/ubuntu/xmrig/src/xmrig.cpp:38:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
     argvv[0] = "./xmrig";
              ^
/home/ubuntu/xmrig/src/xmrig.cpp:39:14: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
     argvv[1] = "--help";
              ^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’
[ 10%] Linking CXX executable xmrig
[100%] Built target xmrig
root@ubuntu:/home/ubuntu/xmrig/build# ./xmrig
xmrig: src/unix/proctitle.c:53: uv_setup_args: Assertion `process_title.len + 1 == size' failed.
Aborted (core dumped)

and it's the error