Menu

mmio bug

Help
Anonymous
2010-06-17
2012-09-22
  • Anonymous

    Anonymous - 2010-06-17

    Hey Folks,
    I've got a bug with a new release on the mac that causes the mmio to segfault.
    I can work around it by turning off mmio, but I would like to get it working.
    The bug is in "mmio_file_t * mmio_file_read(const char *filename)". the fstat
    call does not populate buf.st_size correctly, and has an outrageously large
    value. then the mmap call blows up. Any thought's on what that could be? the
    open and fstat calls return 0, but it doesn't appear to be working correctly.

    I'll snoop around more, but thought I'd see if anyone had any feedback.

     
  • Nickolay V. Shmyrev

    This is the following issue

    http://bugs.python.org/issue4681

    everything is related to off_t in buf vs size_t in mmap. Not sure how to fix
    it properly yet though

     
  • Anonymous

    Anonymous - 2010-06-17

    Ah, great, thanks for the investigative work. I don't have time at the moment
    to grok the issue, but I'll investigate soon!

    Brian

     
  • Samuel Kitono

    Samuel Kitono - 2010-06-28

    Hi Brian, I think I have encountered this problem in my simulator Iphone OS4.
    Should i just download the new static libraries to fix this problem?

     
  • Anonymous

    Anonymous - 2010-06-29

    I'm not sure when a fix will be out, but to work around it add the following
    to your config file:

    -mmap no

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.