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 superbobry
Recipients neologix, rosslagerwall, superbobry
Date 2011-07-21.11:02:51
SpamBayes Score 0.0032193284
Marked as misclassified No
Message-id <1311246172.63.0.917851479965.issue12556@psf.upfronthosting.co.za>
In-reply-to
Content
> Do you have an example of a /proc entry with st_size == 0 that can be mmapped 
> (mapping /proc/sys/debug/exception-trace fails with EACCESS)?
Yes, I've ran into the issue, while trying to mmap /proc/xen/xsd_kva, which is an 
interface to XenBus [1]. Unfortunately, I'm not aware of any other cases. 

By the way, I've checked mmap(2) manpage -- it looks like the C-version has nothing 
against mmaping 0-sized files, Why does Python's `mmap` still checks file size?

[1] http://wiki.xensource.com/xenwiki/XenBus
History
Date User Action Args
2011-07-21 11:02:52superbobrysetrecipients: + superbobry, neologix, rosslagerwall
2011-07-21 11:02:52superbobrysetmessageid: <1311246172.63.0.917851479965.issue12556@psf.upfronthosting.co.za>
2011-07-21 11:02:52superbobrylinkissue12556 messages
2011-07-21 11:02:51superbobrycreate