<div class="gmail_quote">On Sat, Oct 20, 2012 at 4:34 PM, Paul Harrison <span dir="ltr"><<a href="mailto:mythtv@sky.com" target="_blank">mythtv@sky.com</a>></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 '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 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"> </div></div></blockquote><div> </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! :) Thank you so much for your help in finding this "user problem".</span> </div>
</div><br>