smbd/statcache.c

Jeremy Allison jra at samba.org
Fri Sep 12 21:43:18 GMT 2003


On Fri, Sep 12, 2003 at 10:47:59AM +0200, Osama Dengler wrote:
> Hi samba developers,
> 
> I'm using yesterdays samba 3.0 CVS sources and get tons of these messages in 
> the logfile:
> 
> [2003/09/12 10:10:07, 0] smbd/statcache.c:stat_cache_add(134)
>   OOPS - tried to store stat cache entry for werid length paths 
> [INTERNET/MUHDJE~E.3B/COMPONENTS] 31 and [Internet/Mozilla 1.3b/components] 
> 32)!
> 
> Searching for the cause of this I'm stuck with the following code snipped from
> smbd/statcache.c (line 121)
> 
> if (original_path_length < translated_path_length) {
> 			DEBUG(0, ("OOPS - tried to store stat cache entry for werid length paths 
> [%s] %u and [%s] %u)!\n",
> 						original_path, original_path_length, translated_path, 
> translated_path_length));
> 			SAFE_FREE(original_path);
> 			SAFE_FREE(translated_path);
> 			return;
> 		}
> 
> Now the question is, why is (original_path_length < translated_path_length) an 
> error condition? I don't know the details of the stat cache but it seems that 
> some 8.3 style file names break stat_cache_add().

The stat cache replaces names exactly (length wise) as a canonicalization so they
must be the same length. Can you get me a stack backtrace so I can track down
where this problem is ?

Thanks,

	Jeremy.



More information about the samba-technical mailing list