galaris / avalanche

Automatically exported from code.google.com/p/avalanche
4 stars 0 forks source link

Error opening file basic_blocks.log before iteration 0 start #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build and install Avalanche.
2. Run the sample:
cd /usr/src/avalanche-0.4/samples/simple
avalanche --filename=`pwd`/seed `pwd`/sample2 `pwd`/seed --verbose 

What is the expected output? What do you see instead?
The exploit does not succeed:
root@clean:/usr/src/avalanche-0.4/samples/simple# avalanche 
--filename=`pwd`/seed `pwd`/sample2 `pwd`/seed --verbose
INFO: Avalanche, a dynamic analysis tool.
INFO: Start time: Mon Oct 31 20:43:17 2011
DEBUG: Initializing plugin manager
DEBUG: Running execution manager
INFO: Running plugin kind=1
INFO: Executing command: valgrind, with args:  valgrind --tool=covgrind 
--trace-children=no --alarm=300 --log-file=execution.log 
/usr/src/avalanche-0.4/samples/simple/sample2 
/usr/src/avalanche-0.4/samples/simple/seed
INFO: Covgrind is finished
ERROR: [ExecutionManager.cpp:413]: Error opening file basic_blocks.log
INFO: score=0
Starting iteration 0
INFO: inputs.size()=1
INFO: selected next input with score 0
INFO: Running plugin kind=0
INFO: Executing command: valgrind, with args:  valgrind --tool=tracegrind 
--trace-children=no --startdepth=1 --invertdepth=100 --dump-prediction=yes 
--check-danger=no --file=/usr/src/avalanche-0.4/samples/simple/seed 
/usr/src/avalanche-0.4/samples/simple/sample2 
/usr/src/avalanche-0.4/samples/simple/seed
INFO: Tracegrind is finished
INFO: no QUERY's found

INFO: Time statistics:
total: 1, tracegrind: 1 (100%), covgrind: 0 (0%), stp: 0 (0%)

Exploits report:

DEBUG: Destructing plugin manager
root@clean:/usr/src/avalanche-0.4/samples/simple# echo $?
0

What version of the product are you using? On what operating system?
I tried revision 247 and avalanche-0.4.tar.gz on this machine:
Linux clean 3.0.0-1-486 #1 Sat Aug 27 15:56:48 UTC 2011 i686 GNU/Linux
wheezy/sid
Пакет: libc6                                     
Состояние: установлен
Автоматически установлен: нет
Версия: 2.13-21

and the alike with amd64 kernel.

Original issue reported on code.google.com by v.e.ev...@gmail.com on 31 Oct 2011 at 4:49

GoogleCodeExporter commented 9 years ago
Doesn't reproduce (the sample works fine) on machine:
Linux [cut] 2.6.32-5-amd64 #1 SMP Fri Sep 9 20:23:16 UTC 2011 x86_64 GNU/Linux
libc6 Version: 2.11.2-10
Debian 6.0.3

Original comment by v.e.ev...@gmail.com on 31 Oct 2011 at 6:15

GoogleCodeExporter commented 9 years ago
The only thing I can think of is that Avalanche 0.4 (and trunk version as well) 
creates intermediate files (and exploits) in the current directory which is 
/usr/.... However, it looks like you're running Avalanche as root, so 
permissions shouldn't be an issue. I'll try to reproduce the error.

Original comment by m.k.erma...@gmail.com on 1 Nov 2011 at 2:25