tum-i4 / sip-oblivious-hashing

7 stars 4 forks source link

OH fails to protect ispell, also there seems to be a severe memory leak! #132

Open mr-ma opened 6 years ago

mr-ma commented 6 years ago
Processing function:onstop
Short range hashing enabled.
Processing path: entry  
After path modifications process path
entry  
/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2a)[0x7fd06f69064a]
/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x3e)[0x7fd06f68e80e]
/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1(+0x89a95c)[0x7fd06f68e95c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fd072939390]
/usr/local/lib//libInputDependency.so(_ZNK4llvm11GlobalValue12getValueTypeEv+0xc)[0x7fd06cf365a0]
/usr/local/lib//libInputDependency.so(_ZNK4llvm8Function15getFunctionTypeEv+0x18)[0x7fd06cf36622]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN4llvm9IRBuilderINS_14ConstantFolderENS_24IRBuilderDefaultInserterEE10CreateCallEPNS_8FunctionENS_8ArrayRefIPNS_5ValueEEERKNS_5TwineEPNS_6MDNodeE+0x2c)[0x7fd06bfd2134]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(+0x1af842)[0x7fd06bfba842]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass10insertHashERN4llvm11InstructionEPNS1_5ValueES5_b+0x17e)[0x7fd06bfbdaee]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass14instrumentInstERN4llvm11InstructionEPNS1_5ValueEb+0x2b3)[0x7fd06bfbe0ef]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass18process_path_blockEPN4llvm8FunctionEPNS1_10BasicBlockEPNS1_5ValueEbRKSt8functionIFbPNS1_11InstructionEEERbiRSt13unordered_setISA_St4hashISA_ESt8equal_toISA_ESaISA_EEb+0x164)[0x7fd06bfc3bd6]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass12process_pathEPN4llvm8FunctionERNS0_19short_range_path_ohEj+0x819)[0x7fd06bfc2947]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass12process_pathEPN4llvm8FunctionERSt6vectorIPNS1_10BasicBlockESaIS6_EEj+0x13f)[0x7fd06bfc1a09]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass44process_function_with_short_range_oh_enabledEPN4llvm8FunctionE+0x11c)[0x7fd06bfbfd96]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass16process_functionEPN4llvm8FunctionE+0xdd)[0x7fd06bfbfc59]
/home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so(_ZN2oh26ObliviousHashInsertionPass11runOnModuleERN4llvm6ModuleE+0x2fe)[0x7fd06bfc6676]
/usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x30f)[0x7fd06f75e44f]
opt-6.0(main+0x1fb7)[0x4a2e07]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fd06df78830]
opt-6.0(_start+0x29)[0x4b2a19]
Stack dump:
0.  Program arguments: opt-6.0 -load /usr/local/lib//libInputDependency.so -load /usr/local/lib//libLLVMdg.so -load /home/sip/self-checksumming/build/lib/libUtils.so -load /home/sip/self-checksumming/build/lib/libSCPass.so -load /home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so -load /usr/local/lib//libTransforms.so /home/sip/eval/coverage/ispell.x.bc -strip-debug -unreachableblockelim -globaldce -use-cache -sc -extracted-only -use-other-functions -connectivity=1 -dump-checkers-network=/home/sip/eval/binaries/ispell.x.bc/10/1/1/network_file -dump-sc-stat=/home/sip/eval/binaries/ispell.x.bc/10/1/1/sc.stats -filter-file=/home/sip/eval/combination/ispell.x.bc/10/1 -oh-insert -short-range-oh -protect-data-dep-loops -num-hash 1 -dump-oh-stat=/home/sip/eval/binaries/ispell.x.bc/10/1/1/oh.stats -o /home/sip/eval/binaries/ispell.x.bc/10/1/1/out.bc 
1.  Running pass 'Instruments bitcode with hashing and logging functions' on module '/home/sip/eval/coverage/ispell.x.bc'.
generator.sh: line 87: 17327 Segmentation fault      (core dumped) opt-6.0 -load $INPUT_DEP_PATH/libInputDependency.so -load $DG_PATH/libLLVMdg.so -load $UTILS_LIB -load $SC_PATH/libSCPass.so -load $OH_LIB/liboblivious-hashing.so -load $INPUT_DEP_PATH/libTransforms.so $bitcode -strip-debug -unreachableblockelim -globaldce -use-cache -sc -extracted-only -use-other-functions -connectivity=1 -dump-checkers-network=$output_dir/"network_file" -dump-sc-stat=$output_dir/"sc.stats" -filter-file=$coverage -oh-insert -short-range-oh -protect-data-dep-loops -num-hash 1 -dump-oh-stat=$output_dir/"oh.stats" -o $output_dir/out.bc >> $output_dir/transform.console
/home/sip/eval/binaries/ispell.x.bc/10/1/1
OK Transform
opt-6.0 -load /usr/local/lib//libInputDependency.so -load /usr/local/lib//libLLVMdg.so -load /home/sip/self-checksumming/build/lib/libUtils.so -load /home/sip/self-checksumming/build/lib/libSCPass.so -load /home/sip/sip-oblivious-hashing/build/lib/liboblivious-hashing.so -load /usr/local/lib//libTransforms.so /home/sip/eval/coverage/ispell.x.bc -strip-debug -unreachableblockelim -globaldce -use-cache -sc -extracted-only -use-other-functions -connectivity=1 -dump-checkers-network=/home/sip/eval/binaries/ispell.x.bc/10/1/1/network_file -dump-sc-stat=/home/sip/eval/binaries/ispell.x.bc/10/1/1/sc.stats -filter-file=/home/sip/eval/combination/ispell.x.bc/10/1 -oh-insert -short-range-oh -num-hash 1 -dump-oh-stat=/home/sip/eval/binaries/ispell.x.bc/10/1/1/oh.stats -o /home/sip/eval/binaries/ispell.x.bc/10/1/1/out.bc >> /home/sip/eval/binaries/ispell.x.bc/10/1/1/transform.console
llvm-link-6.0: /home/sip/eval/binaries/ispell.x.bc/10/1/1/out.bc: error: Could not open input file: No such file or directory
llvm-link-6.0: error loading file '/home/sip/eval/binaries/ispell.x.bc/10/1/1/out.bc'
FAIL Link RTLi