** Description changed:

  [Impact]
  
  There appears to be another issue with
  > dpkg-reconfigure clamav-daemon
  
  Like in #1792051, the command ends up in an infinite loop, just that
  this time it happens between 'Log file for clamav-daemon' and 'Do you
  want to enable log rotation?', with one more step between also included
  in the loop.
  
  Purged and reinstalled the package with no effect.
  
  Effected package: clamav-daemon 0.102.1+dfsg-0ubuntu0.19.10.2 (arm64)
  
  EDIT: I was able to reproduce the error on a different system (also
  0.102.1+dfsg-0ubuntu0.19.10.2, just amd64 instead)
  
  [Test Case]
  
+ (1)
+ 
  Here's how to reproduce:
  * Deploy Bionic
  * Install clamav clamav-daemon
  
  (As a debug exercise and confirmation of the infinite loop in action,
  with the use of "export DEBCONF_DEBUG='.*'" one can confirm it.)
  
  * Perform:
  DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true 
dpkg-reconfigure clamav-daemon
  
+ ---
+ 
+ (2)
+ 
+ Run "dpkg-reconfigure clamav-daemon", make sure all of the debconf
+ prompts that are supposed to be there are actually reachable, including
+ the one modified by this SRU "LogTime"[0] and "LogRotate"[1].
+ 
+ [0]- Do you want to log time information with each message?
+ [1]- Do you want to enable log rotation?
+ 
+ Here's a test where I intentionally reconfigure the package and set both
+ LogTime and LogRotate from 'yes' (true) to 'No' (False).
+ 
+ # egrep "LogRotate|LogTime" /etc/clamav/clamd.conf
+ LogRotate true
+ LogTime true
+ 
+ # dpkg-reconfigure clamav-daemon
+ Replacing config file /etc/clamav/clamd.conf with new version
+ Disabling old logrotate script for clamav-daemon
+ 
+ # egrep "LogRotate|LogTime" /etc/clamav/clamd.conf
+ LogRotate false
+ LogTime false
+ 
  [Regression Potential]
  
  Right now, the impact is limited to the reconfiguration of the package.
  This is a consequence of the removal of ScanOnAcces (701f0e8e Remove
  ScanOnAccess).
  
  It's been proven to be working well pre-SRU.
  
- If a regression is found, it will likely remain limited to the package
- reconfiguration but as brought up at comment #16 by vorlon.
+ If a regression is found, it will likely remain limited to the package 
+ reconfiguration. 
  
- If I run "dpkg-reconfigure clamav-daemon", all of the debconf prompts
- that are supposed to be there are actually reachable, including the one
- modified by this SRU "LogTime"[0] and "LogRotate"[1].
- 
- [0]- Do you want to log time information with each message?
- [1]- Do you want to enable log rotation?
- 
- 
- Here's a test where I intentionally reconfigure the package and set both 
LogTime and LogRotate from 'yes' (true) to 'No' (False).
- 
- # egrep "LogRotate|LogTime" /etc/clamav/clamd.conf 
- LogRotate true
- LogTime true
- 
- # dpkg-reconfigure clamav-daemon
- Replacing config file /etc/clamav/clamd.conf with new version
- Disabling old logrotate script for clamav-daemon
- 
- # egrep "LogRotate|LogTime" /etc/clamav/clamd.conf 
- LogRotate false
- LogTime false
- 
+ I added another verification in the [Test case] to address vorlon's
+ concern found in comment #16.
  
  [Other infos]
  
  * Debian upstream bug:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950296
  
  * Debian upstream (salsa):
  
https://salsa.debian.org/clamav-team/clamav/commit/089b6136e95dd34b3ac8a4d0753bffb48c48ebdb

** Description changed:

  [Impact]
  
  There appears to be another issue with
  > dpkg-reconfigure clamav-daemon
  
  Like in #1792051, the command ends up in an infinite loop, just that
  this time it happens between 'Log file for clamav-daemon' and 'Do you
  want to enable log rotation?', with one more step between also included
  in the loop.
  
  Purged and reinstalled the package with no effect.
  
  Effected package: clamav-daemon 0.102.1+dfsg-0ubuntu0.19.10.2 (arm64)
  
  EDIT: I was able to reproduce the error on a different system (also
  0.102.1+dfsg-0ubuntu0.19.10.2, just amd64 instead)
  
  [Test Case]
  
  (1)
  
  Here's how to reproduce:
  * Deploy Bionic
  * Install clamav clamav-daemon
  
  (As a debug exercise and confirmation of the infinite loop in action,
  with the use of "export DEBCONF_DEBUG='.*'" one can confirm it.)
  
  * Perform:
  DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true 
dpkg-reconfigure clamav-daemon
  
  ---
  
  (2)
  
  Run "dpkg-reconfigure clamav-daemon", make sure all of the debconf
  prompts that are supposed to be there are actually reachable, including
  the one modified by this SRU "LogTime"[0] and "LogRotate"[1].
  
  [0]- Do you want to log time information with each message?
  [1]- Do you want to enable log rotation?
  
  Here's a test where I intentionally reconfigure the package and set both
  LogTime and LogRotate from 'yes' (true) to 'No' (False).
  
  # egrep "LogRotate|LogTime" /etc/clamav/clamd.conf
  LogRotate true
  LogTime true
  
  # dpkg-reconfigure clamav-daemon
  Replacing config file /etc/clamav/clamd.conf with new version
  Disabling old logrotate script for clamav-daemon
  
  # egrep "LogRotate|LogTime" /etc/clamav/clamd.conf
  LogRotate false
  LogTime false
  
  [Regression Potential]
  
  Right now, the impact is limited to the reconfiguration of the package.
  This is a consequence of the removal of ScanOnAcces (701f0e8e Remove
  ScanOnAccess).
  
  It's been proven to be working well pre-SRU.
  
- If a regression is found, it will likely remain limited to the package 
- reconfiguration. 
+ If a regression is found, it will likely remain limited to the package
+ reconfiguration.
  
- I added another verification in the [Test case] to address vorlon's
- concern found in comment #16.
+ I added another verification to address vorlon's concern found in
+ comment #16. See section (2) in [Test Case].
  
  [Other infos]
  
  * Debian upstream bug:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950296
  
  * Debian upstream (salsa):
  
https://salsa.debian.org/clamav-team/clamav/commit/089b6136e95dd34b3ac8a4d0753bffb48c48ebdb

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1860217

Title:
  dpkg-reconfigure clamav-daemon in infinite loop

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1860217/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to