This happens sometimes here on trunk, in non-debug mode: $ ./python -m test.regrtest test_distutils test_parser Could not find '/home/antoine/cpython/__svn__/Lib/test' in sys.path to remove it test_distutils 0 blocks find: `/home/antoine/tmp/tmpngdCYU/foo/build/bdist.linux-x86_64/rpm/BUILDROOT/foo-0.1-1.x86_64/usr/lib/debug': Aucun fichier ou dossier de ce type 0 blocks find: `/home/antoine/tmp/tmp431p68/foo/build/bdist.linux-x86_64/rpm/BUILDROOT/foo-0.1-1.x86_64/usr/lib/debug': Aucun fichier ou dossier de ce type test_parser Erreur de segmentation (core dumped) Perhaps test_distutils sets something up which makes Python import the wrong version of the "parser" module.
It's actually an array bounds read error in parsermodule.c::validate_try. Purify detects it, if you disable pymalloc; distutils is innocent. Patch attached.
Great! The patch seems to fix it (although it's difficult to say for sure since the crashes were intermittent). I apologize for incriminating distutils.