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.

classification
Title: Core dump when using mmap.
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: nnorwitz, thaden
Priority: normal Keywords:

Created on 2002-08-20 20:45 by thaden, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg12081 - (view) Author: Stephen P. White (thaden) Date: 2002-08-20 20:45
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.

msg12082 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-08-25 13:39
Logged In: YES 
user_id=33168

This is a duplicate of 585792.  Closing.
History
Date User Action Args
2022-04-10 16:05:36adminsetgithub: 37065
2002-08-20 20:45:04thadencreate