Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498334 - app-antivirus/clamav-0.98 - clamd can't be stopped by init script
Summary: app-antivirus/clamav-0.98 - clamd can't be stopped by init script
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-17 09:06 UTC by Marcin Mirosław
Modified: 2015-12-17 18:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2014-01-17 09:06:51 UTC
# /etc/init.d/clamd stop
 * Stopping clamd ...
 * start-stop-daemon: 1 process refused to stop
 * Failed to stop clamd                                  [ !! ]
 * Stopping freshclam ...                                [ ok ]

Strace showed in the same time:
# strace -f -p 2938
Process 2938 attached with 2 threads
[pid 29823] pread64(11,  <unfinished ...>
[pid  2938] futex(0xb7b8fc2c, FUTEX_WAIT_PRIVATE, 309823, NULL) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
[pid  2938] --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=30627, si_uid=0} ---
[pid  2938] write(7, "\0", 1)           = -1 EPIPE (Broken pipe)
[pid  2938] sigreturn() (mask [QUIT TRAP ABRT USR1 ALRM STKFLT CHLD TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS]) = -1 EINTR (Interrupted system call)
[pid  2938] --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=2938, si_uid=101} ---
[pid  2938] sigreturn() (mask [QUIT TRAP ABRT USR1 ALRM STKFLT CHLD TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS]) = -1 EINTR (Interrupted system call)
[pid  2938] futex(0xb7b8fc2c, FUTEX_WAIT_PRIVATE, 309823, NULL

Now I'm sending SIGTERM by hand, strace throws:

) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
[pid  2938] --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=24827, si_uid=0} ---
[pid  2938] write(7, "\0", 1)           = -1 EPIPE (Broken pipe)
[pid  2938] sigreturn() (mask [QUIT TRAP ABRT USR1 ALRM STKFLT CHLD TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS]) = -1 EINTR (Interrupted system call)
[pid  2938] --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=2938, si_uid=101} ---
[pid  2938] sigreturn() (mask [QUIT TRAP ABRT USR1 ALRM STKFLT CHLD TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS]) = -1 EINTR (Interrupted system call)
[pid  2938] futex(0xb7b8fc2c, FUTEX_WAIT_PRIVATE, 309823, NULL

I had to send SIGKILL to stop clamd.


Reproducible: Always




# emerge --info
FEATURES variable contains unknown value(s): Xkeepwork
Portage 2.2.7 (hardened/linux/x86, gcc-4.7.3, glibc-2.17, 3.10.7-gentoo i686)
=================================================================
System uname: Linux-3.10.7-gentoo-i686-Intel-R-_Pentium-R-_D_CPU_2.66GHz-with-gentoo-2.2
KiB Mem:     2063232 total,    173560 free
KiB Swap:    1048572 total,   1030300 free
Timestamp of tree: Fri, 17 Jan 2014 07:45:01 +0000
ld GNU gold (GNU Binutils 2.23.2) 1.11
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.2-r2
dev-util/ccache:          3.1.9-r3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -mtune=native -pipe -mfpmath=sse      -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables        -fpeel-loops -fprefetch-loop-arrays -floop-interchange        -floop-block -floop-strip-mine -fpredictive-commoning   -freorder-blocks-and-partition -ftracer -ftree-loop-distribution -Wdisabled-optimization"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -mtune=native -pipe -mfpmath=sse    -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables        -fpeel-loops -fprefetch-loop-arrays -floop-interchange        -floop-block -floop-strip-mine -fpredictive-commoning   -freorder-blocks-and-partition -ftracer -ftree-loop-distribution -Wdisabled-optimization"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="Xkeepwork assume-digests binpkg-logs ccache cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.pl.gentoo.org/gentoo-portage/"
USE="acl acpi aio async bash-completion bzip2 caps chroot clamav clamdtop cli crypt cxx dri ftp glibc-omitfp hardened iconv idn iproute2 logrotate mmap mmx mmxext modules mudflap ncurses network-cron nptl openmp openssl pam pax_kernel pcre pic readline session smp sse sse2 ssl syslog threads threadsafe unicode urandom vhosts vim vim-pager vim-syntax x86 xattr zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="tarpit"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Marcin Mirosław 2014-01-17 09:08:34 UTC
It happens when clamav works long time (a couple of days, weeks).
Comment 2 Thomas Raschbacher gentoo-dev 2014-06-17 08:12:11 UTC
hmm never had that problem here but i think i might restart it every few days for good measure.

did you try to report this upstream too ?
Comment 3 Thomas Raschbacher gentoo-dev 2015-12-17 18:57:48 UTC
This bug is very old so closing it as obsolete (and i still haven'T had that problem on any of my machines)

Can you test if this happens with 0.99 ?