[mythtv-users] Mythzoneminder and mmap

Paul Harrison mythtv at sky.com
Sun Oct 21 10:43:39 UTC 2012


On 21/10/12 04:20, Greg Grotsky wrote:
> On Sat, Oct 20, 2012 at 4:34 PM, Paul Harrison <mythtv at sky.com 
> <mailto: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".
>

You're welcome, glad you got it sorted :)

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.

Paul H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20121021/2f982283/attachment.html>


More information about the mythtv-users mailing list