[Python-bugs-list] [ python-Bugs-597938 ] Core dump when using mmap.

noreply@sourceforge.net noreply@sourceforge.net
Tue, 20 Aug 2002 13:45:04 -0700


Bugs item #597938, was opened at 2002-08-20 15:45
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=597938&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen P. White (thaden)
Assigned to: Nobody/Anonymous (nobody)
Summary: Core dump when using mmap.

Initial Comment:
Ok, it is dumb to read from a file before it is written
to.  But, via mmap I did it by accident and it dumped
core.  Here is a simple linux example which will do it.

d0lxac1% touch dummy
d0lxac1% python
Python 2.1 (#3, May 16 2001, 15:15:15)
[GCC 2.95.2 19991024 (release)] on linux2
Type "copyright", "credits" or "license" for more
information.
>>> import os,mmap
>>> x = os.open('dummy',os.O_RDWR)
>>> m = mmap.mmap(x,4700)
>>> m.read(47)
Bus error (core dumped)
d0lxac1%

Yeah, its dumb, but should it really dump core?

Thanks.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=597938&group_id=5470