Issue 5918: test_parser crashes when run after some other tests (original) (raw)

Created on 2009-05-04 00:01 by pitrou, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
parser.patch amaury.forgeotdarc,2009-05-07 09:10
Messages (5)
msg87087 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-05-04 00:01
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.
msg87089 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-05-04 00:14
Sorry, it also fails with "./python -m test.regrtest test_os test_parser", so it's not caused by test_distutils.
msg87363 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-05-07 09:10
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.
msg87448 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-05-08 16:33
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.
msg87770 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-05-14 21:55
I've committed the patch, thanks!
History
Date User Action Args
2022-04-11 14:56:48 admin set github: 50168
2009-05-14 21:55:35 pitrou set status: open -> closedresolution: fixedmessages: +
2009-05-08 16:33:26 pitrou set messages: +
2009-05-07 09:10:30 amaury.forgeotdarc set files: + parser.patchnosy: + amaury.forgeotdarcmessages: + keywords: + patch
2009-05-04 00:14:09 pitrou set assignee: tarek -> messages: + title: test_parser crashes when run after test_distutils -> test_parser crashes when run after some other tests
2009-05-04 00:01:13 pitrou create