Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 343913

Summary: app-admin/durep - closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
Product: Gentoo Linux Reporter: Jesús Guerrero Botella (RETIRED) <i92guboj>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482061
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix the issue
diff for durep-0.9-r2.ebuild
a unified diff with patch appended

Description Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-02 23:06:18 UTC
When I run durep it just spits a message like this again and again, ad infinitum.

closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.
closedir() attempted on invalid dirhandle DIR at /usr/bin/durep line 246.

It seems to be some bug on the perl code, but perl is not really my field of action so I can't really comment on it. The attached patch seems to work, though.

Reproducible: Always

Steps to Reproduce:
1.emerge durep
2.run durep /etc (or whatever small dir)
3.it should spit that error
Comment 1 Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-02 23:07:07 UTC
Created attachment 252971 [details]
Patch to fix the issue

Patch to fix the issue
Comment 2 Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-02 23:08:24 UTC
Created attachment 252973 [details]
diff for durep-0.9-r2.ebuild
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-09-23 08:38:48 UTC
Created attachment 287475 [details]
a unified diff with patch appended
Comment 4 Pacho Ramos gentoo-dev 2012-03-03 16:07:56 UTC
+*durep-0.9-r3 (03 Mar 2012)
+
+  03 Mar 2012; Pacho Ramos <pacho@gentoo.org> +durep-0.9-r3.ebuild,
+  +files/durep-0.9-dirhandle.patch:
+  Fix dirhandle errors, bug #343913 by Jesús Guerrero and Ian Delaney.
+