This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scav
Recipients
Date 2002-04-19.13:23:10
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
HP-UX 11 64bit, compiled with HP ansi c compiler.
Python version 2.2.1rc2

>>> f=open(some_big_file)
>>> f.readlines()
Pid 23292 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
Memory fault(coredump)

Happens when last line of file lacks a terminating \n,
also the file has to be big enough (my example is about
2K in size)

Oddly, xreadlines() can be created, but attempting to
iterate over it crashes before the first line is 
returned:
>>> f=open(some_big_file)
>>> lines=f.xreadlines()    # OK so far
>>> for line in lines:
...    print line      # never gets here
...

Pid 23257 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
Memory fault(coredump)

I'll try 2.2.1 final.
History
Date User Action Args
2007-08-23 14:00:46adminlinkissue546117 messages
2007-08-23 14:00:46admincreate