[Python-bugs-list] [ python-Bugs-597938 ] Core dump when using mmap.
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 25 Aug 2002 06:39:45 -0700
Bugs item #597938, was opened at 2002-08-20 16: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: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Stephen P. White (thaden)
>Assigned to: Neal Norwitz (nnorwitz)
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.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-08-25 09:39
Message:
Logged In: YES
user_id=33168
This is a duplicate of 585792. Closing.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=597938&group_id=5470