Re: simple prog hangs & core dumps

Jason B. Bluming (jbluming@chivalry.eit.COM)
Wed, 20 Jul 1994 13:32:16 -0700

sounds like one of the problems Guido fixed* (haven't built 1.0.3 yet so I
won't vouch)
in the new release. Whenever I've seen this it's the same cause... make sure
your file
ends with a newline.

-Jason

+> Here's a strange problem, Pythoners.
+>
+> On SunOS 4.1.3, I run this program and it hangs
+> and then core dumps (if I let it run awhile):
+>
+> #!/usr/local/bin/python
+>
+> import sys
+>
+> def main():
+> sys.path
+>
+> main()
+>
+> tibbs 393} ./x.py
+> ^C^Cpython: to interrupt a truly hanging Python program, interrupt once
more.
+>
+>
+> If I run it interactively, it works:
+>
+> tibbs 394} python
+> Python 1.0.2 (Jun 27 1994)
+> Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam
+> >>> import sys
+> >>> def main():
+> ... print sys.path
+> ...
+> >>> main()
+> ['.', '/usr/local/lib/python', '/usr/local/lib/python/test']

===================================================================
Jason Bluming
Enterprise Integration Technologies
jbluming@eit.com

(415) 617 - 8018 (office) | 800 El Camino Real
617 - 8019 (fax) | Fourth Floor
| Menlo Park, CA 94025
===================================================================