Skip to content

Instantly share code, notes, and snippets.

@jackpoz
Created June 13, 2019 10:11
Show Gist options
  • Save jackpoz/d8fc88c895274cc7c4c28728ea54feb8 to your computer and use it in GitHub Desktop.
Save jackpoz/d8fc88c895274cc7c4c28728ea54feb8 to your computer and use it in GitHub Desktop.
TC test server upgrade
ASAN_OPTIONS=halt_on_error=0:verbosity=1:log_path=authasan/authasan:detect_stack_use_after_return=1 LSAN_OPTIONS=verbosity=1:log_threads=1 ./authserver
git pull trinity 3.3.5
mkdir -p asan
cd asan
cmake .. -DCMAKE_INSTALL_PREFIX=/home/trinity/trinity -DWITH_COREDEBUG=FALSE -DWITH_WARNINGS=TRUE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DNOJEM=TRUE -DSCRIPTS=static -DTOOLS=FALSE -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer -fsanitize=address -fsanitize-recover=address -fsanitize-address-use-after-scope" -DCMAKE_C_FLAGS="-fno-omit-frame-pointer -fsanitize=address -fsanitize-recover=address -fsanitize-address-use-after-scope"
make -j 2
#make install
cd asan
make install
screen -A -d -m -S tri_auth ./authasan.sh
screen -A -d -m -S tri_world ./worldasan.sh
cd trinity/sources
sh buildasan.sh
screen -S tri_auth -X stuff $'\003'
screen -S tri_world -X stuff $'\003'
sh installasan.sh
cd ../bin
sh scauthasan.sh
sh scworldasan.sh
screen -ls
ASAN_OPTIONS=halt_on_error=0:verbosity=1:log_path=worldasan/worldasan:detect_stack_use_after_return=1 LSAN_OPTIONS=verbosity=1:log_threads=1 ./worldserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment