pfiles crashes on processes with no files
This was noticed when trying to run pfiles on your own login shell. This one is pretty straightforward. The code in question here checks to see if we have a circular reference, but doesn't actually check to make sure the list itself is non-empty. We crashed simply because we have zero files in this process.