discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GWorkspace mdextractor problem


From: Enrico Sersale
Subject: Re: GWorkspace mdextractor problem
Date: Mon, 12 Feb 2007 03:01:26 +0200
User-agent: GNUMail (Version 1.2.0)

On 2007-02-12 00:29:04 +0200 Philippe Roussel <address@hidden> wrote:

On 2007-02-11 02:01:32 +0100 Enrico Sersale <address@hidden> wrote:

There was a bug visible only the first time mdextractor is run. It was trying to create a NSDistributedLock with an invalid path.
Fixed on SVN.

Sorry, I still have the same (I think) problem but I have more data to show. mdextractor loops over and over on the same paths :

2007-02-11 22:11:16.081 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp 2007-02-11 22:11:16.100 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp/vs60wiz.exe 2007-02-11 22:11:16.119 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp 2007-02-11 22:11:16.137 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp/vs60wiz.exe 2007-02-11 22:11:16.156 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp 2007-02-11 22:11:16.174 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp/vs60wiz.exe 2007-02-11 22:11:16.192 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp 2007-02-11 22:11:16.210 mdextractor[25787] no extractor for: /home/philou/stuff/winedata/drive_c/windows/temp/vs60wiz.exe
....

After hundreds of similar lines, it gets stuck in 'error mode' :

2007-02-11 22:11:18.844 mdextractor[25787] error at: UPDATE paths SET words_count = 0, moddate = :moddate WHERE id = :pathid
2007-02-11 22:11:18.856 mdextractor[25787] unable to open database file
....

Indexing is configured on /home/philou/stuff/winedata only, it's the only directory that causes a problem. The only unusual thing about this directory is that it contains Windows executables and files used by Wine.

I tried mdextractor under gdb and can confirm that the enumerator created in mdextractor.m on line 837 'enumerator = [fm enumeratorAtPath: path];' give several times the same path on line 841. I can reproduce this behavior every time so I can dig deeper if needed.

If the enumerator returns several times the same path the problem could not be 
a mdextractor bug.
Can you, please, compile and run this:

int main(int argc, char** argv)
{
  CREATE_AUTORELEASE_POOL(pool);
  NSDirectoryEnumerator *enumerator = [[NSFileManager defaultManager] enumeratorAtPath: 
@"/home/philou/stuff/winedata"];
  NSString *fname;

  while ((fname = [enumerator nextObject]) != nil) {
    NSLog([path stringByAppendingPathComponent: fname]);
  }

  RELEASE (pool);
  exit(EXIT_SUCCESS);
}

If the behaviour is the same, that is, 
"/home/philou/stuff/winedata/drive_c/windows/temp/vs60wiz.exe" is returned many 
times, or there is a bug somewhere in -base or you have a problem with your disk...

Philippe






reply via email to

[Prev in Thread] Current Thread [Next in Thread]