Can anybody explain to me the cause of the following message, perhaps along with suggestions as to how to fix it?

I'm running XCode under root using `sudo <path to xcode` because I need to debug a daemon that has to run as root.

I've done this several times successfully, but now when I try to open the project in Xcode I get the following message from XCode:

```
2009-06-09 10:04:25.521 Xcode[434:a0b] index is corrupt, will rebuild
Segmentation fault

```

Other projects open fine, and this project opens fine in a non-root instance of Xcode.

I've tried restarting the computer and deleting all of root's pbxuser files etc from inside the project.

Also, if now I go in and try to rebuild the index in Xcode running under my own user I get the following assertion failure. If I hit continue Xcode crashes.

```
ASSERTION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-1114/pbxindex/PBXProjectIndex.m:305
Details:  NULL symbol vector with value 278024
Function: _symbolKeyForValue

```