I have tried to install Pathgrind, and error occured while Valgrind compile.
I used Ubuntu 11.10, install all part that mentioned in README file.
...
Making install in .
make[3]: Entering directory /home/user/pathgrind-master/valgrind-r12356/memcheck' ../coregrind/link_tool_exe_linux 0x38000000 gcc -Wno-long-long -o memcheck-x86-linux -m32 -mpreferred-stack-boundary=2 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -fno-builtin -O2 -static -nodefaultlibs -nostartfiles -u _start -Wl,--build-id=none -m32 memcheck_x86_linux-mc_leakcheck.o memcheck_x86_linux-mc_malloc_wrappers.o memcheck_x86_linux-mc_main.o memcheck_x86_linux-mc_translate.o memcheck_x86_linux-mc_machine.o memcheck_x86_linux-mc_errors.o ../coregrind/libcoregrind-x86-linux.a ../VEX/libvex-x86-linux.a -lgcc memcheck_x86_linux-mc_main.o: In function
set_sec_vbits8':
/home/user/pathgrind-master/valgrind-r12356/memcheck/mc_main.c:1030: undefined reference to __stack_chk_fail' memcheck_x86_linux-mc_main.o: In function
mc_post_reg_write':
/home/user/pathgrind-master/valgrind-r12356/memcheck/mc_main.c:3894: undefined reference to __stack_chk_fail' memcheck_x86_linux-mc_main.o: In function
mc_pre_reg_read':
/home/user/pathgrind-master/valgrind-r12356/memcheck/mc_main.c:3934: undefined reference to __stack_chk_fail' memcheck_x86_linux-mc_main.o: In function
handle_gdb_monitor_command':
/home/user/pathgrind-master/valgrind-r12356/memcheck/mc_main.c:5256: undefined reference to __stack_chk_fail' memcheck_x86_linux-mc_main.o: In function
moveLineForwards':
/home/user/pathgrind-master/valgrind-r12356/memcheck/mc_main.c:2119: undefined reference to __stack_chk_fail' ../coregrind/libcoregrind-x86-linux.a(libcoregrind_x86_linux_a-debuginfo.o):/home/user/pathgrind-master/valgrind-r12356/coregrind/m_debuginfo/debuginfo.c:2957: more undefined references to
__stack_chk_fail' follow
collect2: ld returned 1 exit status
make[3]: *** [memcheck-x86-linux] Error 1
make[3]: Leaving directory /home/user/pathgrind-master/valgrind-r12356/memcheck' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory
/home/user/pathgrind-master/valgrind-r12356/memcheck'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/user/pathgrind-master/valgrind-r12356'
make: *** [install] Error 2
I add latest version of Valgrind and remove r12356. It helps.
I try to run Pathgrind, described in README - and get this input:
user@ubuntu:~/pathgrind-master$ ./fuzz/fuzz.py test6
[+] expanding execution with file input2.txt
Traceback (most recent call last):
File "./fuzz/fuzz.py", line 530, in
search(target, worklist, [ None ] * 10)
File "./fuzz/fuzz.py", line 397, in search
child_inputs = expand_execution(input, callbacks)
File "./fuzz/fuzz.py", line 226, in expand_execution
pc = compute_path_constraint(input.filename)
File "./fuzz/fuzz.py", line 157, in compute_path_constraint
max_constraint=PARAM['MAX_BOUND'])
File "/home/user/pathgrind-master/fuzz/valgrind.py", line 327, in run_valgrind
p = subprocess.Popen(arg_valgrind + arg_prog, stdin=stdin, stdout=subprocess.PIPE, stderr=fp.fileno())
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
What am I doing wrong?
Bets regards,
Nikolay