Tried to install 0.5.3 on Ubuntu 16.04 x64.
Compiled and installed c-icap 0.5.3 and modules 0.5.1, almost right after start I get:
open("/usr/local/etc/virus_scan.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=7276, ...}) = 0
read(4, "#\n# To enable virus_scan service"..., 4096) = 4096
open("/usr/lib/x86_64-linux-gnu/c_icap/virus_scan.so", O_RDONLY|O_CLOEXEC) = 5
read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000)\0\0\0\0\0\0"..., 832) = 832
fstat(5, {st_mode=S_IFREG|0755, st_size=147288, ...}) = 0
mmap(NULL, 2140264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x7fdba65fa000
mprotect(0x7fdba6604000, 2093056, PROT_NONE) = 0
mmap(0x7fdba6803000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x9000) = 0x7fdba6803000
close(5) = 0
mprotect(0x7fdba6803000, 4096, PROT_READ) = 0
mmap(NULL, 3638685696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fdacd7db000
mmap(NULL, 6401343488, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd94ff0f000
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)
This is from running strace c-icap.
Anonymous
Are there any logs?
Are you able to get a backtrace eg from core file?
Else this is looks that crash on startup. Can you try to run c-icap inside gdb:
gdb /usr/local/bin/c-icap -D -d 9 -N
Oops, forgot to login :-(
There is nothing in log, no coredump in current dir or /var/crash ( strange, but true) .
gdb does not accept suggested options:
gdb /usr/local/bin/c-icap -D -d 9 -N
Warning: -d: No such file or directory.
gdb: unrecognized option '-N'
Looks like you developing 0.5 using newer software.
Could you, please, install ubuntu 16.04 and try to reproduce?
Thank you!
Sorry my fault. You need:
If you get a SIGSEGV signal try to get backtrace:
And post here the output.
Else, may I ask, does your system produces any core file?
Hello!
Output is attached.
And yes, I found some fresh cores from squid in /var/cache :-(
Thank you!
Thank you.
The crash is very strange because your c-icap crashes on a place where no modifications done for years and looks that works.
Can you check that you are loading the correct virus_scan.so module?
Is it possible that you are loading a virus_scan.so module compiled for different c-icap release?
I am asking because I am seeing that your c-icap configurations are under /usr/local but the virus_scan.so file loaded from //usr/lib/x86_64-linux-gnu/c_icap/virus_scan.so
Yes!
You are absolutely right! I guess this module is from distribution package, and I did not changed path to modules in config , just because everything worked for 0.4 installation- this is my error in configuration and not bug.
Thank you very much!
Now I have 0.5.3 working :-)
And sorry for wasting you time :-(
Not really a bug.
C-icap should check when loads a module if it is compiled with the correct c-icap release.