stable

incron-0.5.12-9.el7

FEDORA-EPEL-2019-60b62db475 created by kevin 5 years ago for Fedora EPEL 7

Add fix the zombie / defunct processes.

This update has been submitted for testing by kevin.

5 years ago

This update has been pushed to testing.

5 years ago
User Icon mattdm commented & provided feedback 5 years ago
karma

Got bitten by this badly. This fix seems to fix it, as confirmed by not seeing hundreds of zombie processes after upgrading to it. Thanks!

BZ#1656939 Incron causes defunct processes
User Icon robert commented & provided feedback 5 years ago
karma

When starting incrond now, I see zillions of incrond processes and quite soon afterwards a load of 1000 and more. I did not see such a strange behaviour with incron-0.5.10-8.el7 before.

Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.

5 years ago
User Icon kevin commented & provided feedback 5 years ago

robert: are you sure the new one was used? can you duplicate it?

This update has reached 14 days in testing and can be pushed to stable now if the maintainer wishes

5 years ago
User Icon robert commented & provided feedback 5 years ago

Kevin: Yes, quite reliable:

$ rpm -q incron
incron-0.5.12-9.el7.x86_64
$ for i in $(seq 1 250); do date > /var/www/html/${i}.txt; done
$ for i in $(seq 1 50); do mkdir -p /var/www/html/${i}; done
$ cat /etc/incron.d/reproducer.conf 
/var/www/html/ IN_CLOSE_WRITE,IN_NO_LOOP /root/bin/update.sh "$@$#"
/var/www/html/10/ IN_CLOSE_WRITE,IN_NO_LOOP /root/bin/update.sh "$@$#"
$ cat /root/bin/update.sh
sed -e 's/2019/2020/g' -i "$1"

How to trigger the zillions of incrond processes that will eat the system sooner or later?

sed -e 's/1/2/' -i /var/www/html/100.txt

Afterwards I see lots of incrond processes and when doing nothing but waiting some time, I end up with zillions of incrond processes and load 1000 and when waiting even longer, the system crashes or ends with a kernel panic of khugepaged. Nevertheless the system is dead and needs a hard reset.

User Icon kevin commented & provided feedback 5 years ago

robert: Can you move your incrontab from /etc/incron.d to a root user incrontab and see if the problem persists?

My theory is that this fixes only the user incrontab case, not the system wide /etc/incron.d/ case...

User Icon robert commented & provided feedback 5 years ago

Kevin: That's interesting! Moving the content from /etc/incron.d/reproducer.conf to /var/spool/incron/root (via incrontab -e) seems indeed to solve this. No more zillions of incrond processes yet! May we get the same fix also for system wide /etc/incron.d/, please?

Important: The IN_NO_LOOP option still does no longer work, the example above creates endless loops with user incrontab (even it's overall better than before).

This update has been submitted for batched by kevin.

5 years ago

This update has been submitted for stable by kevin.

5 years ago

This update has been pushed to stable.

5 years ago
User Icon anonymous commented & provided feedback 5 years ago

I experienced piling up incron processes with the fixed version. I manually patched a fix to that from the original repo https://github.com/ar-/incron/pull/56/commits/0a8cb83983394c2bd36105fcae5c56f89e931686.

Seem to prevent the stacking up of tasks.

User Icon anonymous commented & provided feedback 5 years ago

Process structure after a few minutes runtime.

/usr/sbin/incrond
_ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | | _ /usr/sbin/incrond | | | _ /usr/sbin/incrond | | | | _ /usr/sbin/incrond | | | _ /usr/sbin/incrond | | _ /usr/sbin/incrond | | | _ /usr/sbin/incrond | | _ /usr/sbin/incrond | | _ /usr/sbin/incrond | _ /usr/sbin/incrond _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond _ /usr/sbin/incrond _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond _ /usr/sbin/incrond _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond | _ /usr/sbin/incrond _ /usr/sbin/incrond


Please login to add feedback.

Metadata
Type
bugfix
Karma
0
Signed
Content Type
RPM
Test Gating
Autopush Settings
Unstable by Karma
-3
Stable by Karma
disabled
Stable by Time
disabled
Dates
submitted
5 years ago
in testing
5 years ago
in stable
5 years ago
BZ#1656939 Incron causes defunct processes
0
1

Automated Test Results