Description of problem: Since the update in EPEL to 0.5.12, every time incron handles a filesystem event it creates a "zombie" process. This happens less frequently when the events are from the system incrontab files (/etc/incron.d/) but happens every single time when the event is from a user incrontab. Version-Release number of selected component (if applicable): CentOS 7 (1810) (7.6) incron 0.5.12-16 How reproducible: Easily reproducible. Steps to Reproduce: 1. Install the incron RPM from EPEL 2. Set up a user incrontab monitoring a specific directory: /home/jleafey/incrontest IN_CLOSE_WRITE "$% detected on file $@/$#" | logger --priority user.notice 3. Count defunct processes before test 4. Create files in the monitored directory 5. Count defunct processes after test Actual results: An additional defunct process is created for every file created in the monitored directory. Expected results: No defunct processes would be created when monitored filesystem events were processed. Additional info: I have rebuilt incrond directly from the sources on Github and it does not cause the same behaviour, events get processed and no zombies are left. I compared the build logs from the RPM build to the "raw" build and the options provide to G++ are different. From "rpmbuild -bc": g++ -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic From "make": g++ -c -O2 -pedantic -std=c++11 -g0 -pipe -Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -ffor-scope
I was curious to see if this also occurred with the Fedora package, so I build a Fedora 29 server VM for testing. I used exactly the same test case and got exactly the same results, using the packaged incron from Fedora's repositories causes a zombie process to be left after processing each filesystem event. I have not tried building from source on the test system yet.
From my point of view, this is a 0.5.12 issue (I'm also seeing massive memory leaks with 0.5.12 that did not exist with an identical configuration at 0.5.10).
We are having this problem too on production systems. After enough time and incron actions, it actually causes system issues. Please back out this version for the time-being as it is clearly unstable. I think that's the prudent thing to do until the package can be tested more. Delays are only going to lead to more people having issues.
Can you all please try this scratch build and see if the problem is fixed: https://koji.fedoraproject.org/koji/taskinfo?taskID=31840653 If that looks good, I will push an update (for epel7 and f29/f28 as the fix applies to them all)
Everything looks good for me. No more defunct process
Works good for me on CentOS7 as well!
had the same issue, thanks for fixing this :)
incron-0.5.12-9.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-bbc0a2c14a
incron-0.5.12-9.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-60b62db475
incron-0.5.12-9.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-75bfa8d4a2
incron-0.5.12-9.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-75bfa8d4a2
incron-0.5.12-9.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-60b62db475
incron-0.5.12-9.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-bbc0a2c14a
I have installed incron-0.5.12-9.el7 from testing on one of the systems where the problem originally occurred. After a couple of hours of testing I have seen no defunct processes. I have tested both user and system incrontabs and so far have not seen any issues.
Yes, I'm hitting this too -- I've installed the update and will test.
incron-0.5.12-9.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
incron-0.5.12-9.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.
incron-0.5.12-9.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.