chatsiri at chatsiri
May 10, 2012, 12:20 AM
Post #1 of 1
Test suit cannot fork process for debugging with clamav.
I try to debugging test suite of Clamav. Test suite writes for
fork process in order to debug code. First step, Program started by
libtools that declare the gdb debug tool. After run programs. It's
represents error as below. I debug "fork_setup()" function in the main
function but show error SIGSEGV. It's show segmentation fault. How i can
debug a source code in another way? That's is source code of test suite
for fork process[https://gist.github.com/2651305].
$ ./libtool --mode=execute gdb -q
Reading symbols from
(gdb) b 179
Breakpoint 1 at 0x401147: file check_cli_load.c, line 179.
(gdb) run check_cli_load
[Thread debugging using libthread_db enabled]
Breakpoint 1, main () at check_cli_load.c:180
warning: Source file is more recent than executable.
Running suite(s): matchers
Program received signal SIGSEGV, Segmentation fault.
0x000000392d879cb7 in strncmp () from /lib64/libc.so.6
Please submit your patches to our Bugzilla: http://bugs.clamav.net