#771480 c-icap: Segmentation Fault with libLLVM-3.0.so.1

Package:
c-icap
Source:
c-icap
Description:
ICAP server implementation
Submitter:
luskin
Date:
2026-09-07 17:43:04 UTC
Severity:
normal
Tags:
#771480#5
Date:
2014-11-30 01:09:12 UTC
From:
To:
Dear Maintainer,

I've added this logrotate file to my system:
----------

/var/log/c-icap/*.log {
    daily
    compress
    delaycompress
    rotate 31
    missingok
    nocreate
    sharedscripts
    postrotate
        test ! -e /var/run/c-icap/c-icap.pid || echo -n "reconfigure" > /var/run/c-icap/c-icap.ctl
    endscript
}
---------- After last system update (2 days ago) I've this problem after each daily logrotate: Nov 28 07:36:14 andromeda kernel: [375111.408129] c-icap[5693]: segfault at 20 ip 00007f936dda29ca sp 00007fff305d33e0 error 4 in libLLVM-3.0.so.1[7f936d3d0000+1301000] Nov 29 07:36:17 andromeda kernel: [461352.882110] c-icap[32150]: segfault at 20 ip 00007fca64edc9ca sp 00007fff56132ca0 error 4 in libLLVM-3.0.so.1[7fca6450a000+1301000] Nov 30 00:49:34 andromeda kernel: [523233.843037] c-icap[30766]: segfault at 20 ip 00007f4504aa09ca sp 00007fff430ad210 error 4 in libLLVM-3.0.so.1[7f45040ce000+1301000] Nov 30 01:24:32 andromeda kernel: [525327.612150] c-icap[18178]: segfault at 7f708766001c ip 0000000000413bfd sp 00007fffdc654830 error 4 in c-icap[400000+1e000] It seems to be the "reconfigure" message to c-icap.ctl to cause the issue (I've invoked it manually and got the seg fault to syslog). Any help? For now I've bash-scripted a cron watchdog that checks c-icap running at every minute and, if needed, restarts it. Anyway any hint is welcome. Thank You Luca
#771480#10
Date:
2014-12-01 05:17:35 UTC
From:
To:
Hello luskin,

2014-11-30 2:09 GMT+01:00 luskin <lucalanari72@gmail.com>:
[...]

Could not reproduce here.
the backtrace here?

Howto is here: https://wiki.debian.org/HowToGetABacktrace

OK

Regards

Mathieu Parent

#771480#17
Date:
2014-12-01 05:21:39 UTC
From:
To:
Oh, wait !

Where does this dep on LLVM comes from? Is this a package recompiled with clang?

I've lowered the severity.

Regards

Mathieu Parent

#771480#24
Date:
2014-12-04 06:31:44 UTC
From:
To:
------- Messaggio inoltrato -------
#771480#29
Date:
2014-12-04 21:21:41 UTC
From:
To:
The only debug symbols I can find on the repos is libicapapi0-dbg...

Do You think it could be useful running c-icap under gdb using that?

Regards
Luca



Il giorno lun, 01/12/2014 alle 06.17 +0100, Mathieu Parent ha scritto:

#771480#34
Date:
2014-12-05 13:20:49 UTC
From:
To:
2014-12-04 22:21 GMT+01:00 Luca Lanari <lucalanari72@gmail.com>:

Yes, and  clamav-dbg

Regards

#771480#39
Date:
2014-12-08 00:41:22 UTC
From:
To:
i wasn't able to get a backtrace.

I tried to run c-icap within gdb but it seems not to listen any more to
the reconfigure command sent to the ctl pipe
(/var/run/c-icap/c-icap.ctl).
(Either the pid file /var/run/c-icap/c-icap.pid is not appearing when
running inside the debugger).

I also tried to launch clamav-daemon within gdb and c-icap as a normal
service.
I this situation, when I send the reconfigure command to the pipe, the
c-icap daemon has the segmentation fault into the libLLVM lib but this
is not captured by the gdb-ed clamav-daemon.
(bt issued to gdb says "No Stack").

I also tried to issue the multi-threaded config to the debugger (thread
apply all bt full) with no success, anyway.

Any hint on how to collect other useful infos?

Regards
Luca




Il giorno ven, 05/12/2014 alle 14.20 +0100, Mathieu Parent ha scritto:

#771480#44
Date:
2016-01-06 06:20:55 UTC
From:
To:
Hello,

(being busy, sorry for the lag)
[...]


Have you tried launching the daemon first (using service c-icap start)
and later attaching gdb with "gdb ./usr/bin/c-icap <pid of c-icap>"?

Regards

Mathieu Parent

#771480#49
Date:
2026-09-07 17:42:14 UTC
From:
To:
Dear submitter,

as the package c-icap has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1147087

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)