Mailing List Archive

Test suit cannot fork process for debugging with clamav.
Hello All,

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[].

$ ./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
Starting program:
[Thread debugging using libthread_db enabled]

Breakpoint 1, main () at check_cli_load.c:180
warning: Source file is more recent than executable.
180 fork_setup();
(gdb) n
Running suite(s): matchers

Program received signal SIGSEGV, Segmentation fault.
0x000000392d879cb7 in strncmp () from /lib64/

Best Regards,
Chatsiri Rattana.
Please submit your patches to our Bugzilla: