Red Hat Bugzilla – Bug 302201
updatedb.conf prunepaths error
Last modified: 2007-11-30 17:12:16 EST
Description of problem:
updatedb fails with an assertion error when run from command line
Version-Release number of selected component (if applicable): mlocate 0.18
How reproducible: completely
Steps to Reproduce:
1.from root terminal enter "updatedb"
Actual results: aborts with this message:
updatedb: src/updatedb.c:730: scan_cwd: Assertion `name_size > 1' failed.
Expected results: silent completion
Additional info: Here is the fix:
Both F8test1 and F8test2 deliver /etc/updatedb.conf with this config statement:
PRUNEPATHS = "/afs /media /net /sfs /tmp /udev /var/spool/cups /var/spool/squid
The 4th element is wrong. After changing to "/sys" the problem is avoided.
I found a mention of this in 242715, but felt it might have been overlooked.
It seems that this error can manifest from multiple potential sources when
scanning deep into the system. I straced my instance to the /usr/share/locale/
directory but didn't get as far as the exact causer.
Thanks for your report.
As https://bugzilla.redhat.com/show_bug.cgi?id=242715#c21 says, /sfs is separate
from /sys. The invalid dentry in /sys should be fixed in the kernel, adding
/sys is just a work-around.
*** This bug has been marked as a duplicate of 242715 ***