<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 21/10/12 04:20, Greg Grotsky wrote:<br>
    </div>
    <blockquote
cite="mid:CAKL4i_oV26aGcOzgnsXAQef2nMZ=miZG=VPa7Ou81h8AiZBuFQ@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">On Sat, Oct 20, 2012 at 4:34 PM, Paul
        Harrison <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:mythtv@sky.com" target="_blank">mythtv@sky.com</a>&gt;</span>
        wrote:<br>
        <blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
          class="gmail_quote">
          Yep of cause you need the #endif sorry about that.<br>
          <br>
          That looks correct so it's not that. I take it at no point do
          you see something like 'Opened mmap file: /dev/shm/zm.mmap.2'
          in the log? Do you see something like this earlier in the log
          &nbsp;'Memory path directory is: /dev/shm'? You will need to use -v
          to see those messages.<br>
          <br>
          If the memory path looks correct the next thing to look at
          would be the open() call in &nbsp;ZMServer::initMonitor(). <font
            style="background-color:rgb(255,255,0)">The user running
            mythzmserver will require read permissions on the mmap file
            which will be at /dev/shm/zm.mmap.2 if the example you gave
            earlier is correct.<br>
          </font>
          <br>
          I did spot a bug in that code but I can't see how it would
          cause the problem you are seeing though. The call to mmap()
          will return MAP_FAILED not NULL that the code is assuming at
          the moment but that would more than likely cause a segfault
          later on.
          <div class="HOEnZb">
            <div class="h5">&nbsp;</div>
          </div>
        </blockquote>
        <div>&nbsp;</div>
        <div><span style="font:13px/normal
arial,sans-serif;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(255,255,255)">AH!
            I'm glad you said all that. I now realize that my zm.mmap.2
            file was not readable by the user running mythzmserver! Once
            I corrected that, all was well! :) &nbsp;Thank you so much for
            your help in finding this "user problem".</span>&nbsp;</div>
      </div>
      <br>
    </blockquote>
    <br>
    You're welcome, glad you got it sorted :)<br>
    <br>
    I submitted a patch on trac that will tell users the open failed and
    what the error code was so hopefully that will help others in the
    same situation in the future.&nbsp; <br>
    <br>
    Paul H.<br>
  </body>
</html>