Bug 2345921

Summary: double free or corruption (out) error running inotifywait on a long list of files
Product: [Fedora] Fedora Reporter: Don Marti <dmarti>
Component: inotify-toolsAssignee: Jan Kratochvil <jan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: adel.gadllah, ecurtin, jan, mmckinst
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: inotify-tools-4.23.9.0-3.fc41 inotify-tools-4.23.9.0-4.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-24 01:20:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Don Marti 2025-02-15 16:51:06 UTC
Description of problem:

inotifywait exits with an error message when watching a long list of files

Version-Release number of selected component (if applicable):

inotify-tools-4.23.9.0-2.fc41.x86_64

How reproducible:

Run inotifywait on a long list of files 

Steps to Reproduce:
1. cd to a directory containing many subdirectories and files
2. Run `find . -type f | xargs inotifywait`
3. Watch the error message

Actual results:

Setting up watches.
Couldn't watch �ʲѬU: No such file or directory
double free or corruption (out)
xargs: inotifywait: terminated by signal 6


Expected results:

Either (1) inotifywait pauses and produces no output until a file changes or (2) inotifywait exits with an error message stating that I am trying to watch too many files

Additional info:

Comment 1 Jan Kratochvil 2025-02-16 08:09:12 UTC
Fix a crash on >=1024 watched files
https://github.com/inotify-tools/inotify-tools/pull/230

Comment 2 Fedora Update System 2025-02-19 13:44:36 UTC
FEDORA-2025-d317462fae (inotify-tools-4.23.9.0-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d317462fae

Comment 3 Fedora Update System 2025-02-19 13:44:37 UTC
FEDORA-2025-a5081b6f50 (inotify-tools-4.23.9.0-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-a5081b6f50

Comment 4 Fedora Update System 2025-02-20 00:46:14 UTC
FEDORA-2025-d317462fae has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d317462fae`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d317462fae

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-02-20 02:05:40 UTC
FEDORA-2025-a5081b6f50 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-a5081b6f50`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-a5081b6f50

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Don Marti 2025-02-23 06:59:37 UTC
Tested on Fedora 41 -- this version fixes the problem for me, thank you.

Comment 7 Fedora Update System 2025-02-24 01:20:59 UTC
FEDORA-2025-a5081b6f50 (inotify-tools-4.23.9.0-3.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2025-03-15 00:26:09 UTC
FEDORA-2025-d317462fae (inotify-tools-4.23.9.0-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.