[mythtv-users] Mythzoneminder and mmap

Greg Grotsky spikeygg.mythbox at gmail.com
Sun Oct 21 03:20:24 UTC 2012


On Sat, Oct 20, 2012 at 4:34 PM, Paul Harrison <mythtv at sky.com> wrote:

> Yep of cause you need the #endif sorry about that.
>
> 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.
>
> If the memory path looks correct the next thing to look at would be the
> open() call in  ZMServer::initMonitor(). 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.
>
> 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.
>
>

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".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20121020/daa759c5/attachment.html>


More information about the mythtv-users mailing list