Python segfault

Peter Schneider-Kamp petersc at stud.ntnu.no
Fri Jun 16 02:29:44 EDT 2000


Pat Szuta wrote:
> 
> I don't know if anyone has seen this,  but python segfaults when given a
> rather large input.
> 
> [pat at perly pat]$ perl -e "print '2+2+' x 10000" > input
> [pat at perly pat]$ python < input

Strange. Looks like the limit is exactly at 8192. That makes 16384
operations the parser (or whatever crashes) can hold.

Not that the problem is not the length of the input itself:

$ perl -e "print '22222222 ' x 200000 > input
$ python < input

works just fine. I think the problem is the add (or mul) operation.
So the problem might be in the expression parser.

Is there anyone with some more insight around?

else-I-will-have-to-check-it-myself-ly y'rs Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list