Opened 6 years ago

Closed 9 months ago

Last modified 9 months ago

#12350 closed Bug Report - General (Abandoned)

segfault in mythzmserver when zoneminder was stoped by user

Reported by: warpme@… Owned by: paul-h
Priority: minor Milestone: unknown
Component: Plugin - MythZoneminder Version: Master Head
Severity: medium Keywords: zoneminder mythzmserver
Cc: Ticket locked: no


Current mythtv master has nice enhancement where user can be notified about zoneminder alarms. When usage scenario is scenario with zoneminder running non-stop - all seems to be OK. My home system uses zoneminder with running state _only when home monitoring is armed_ (there is nobody home). When anybody arrives - zoneminder is turned-off before entry. However in my case, mythzmserver is still constantly 'on' - as without it, starting FE shows error notification at start about missing mythzmserver. Unfortunately having zoneminder stopped but mythzmserver running gives segfaults in mythzmserver at FE start. mythzmserver log is following:

-- Logs begin at Tue 2015-01-13 20:14:46 CET, end at Tue 2015-01-20 15:22:44 CET. --
Jan 20 15:22:28 mythtv mythzmserver[31816]: loading zm config from /etc/zm.conf
Jan 20 15:22:28 mythtv mythzmserver[31816]: ZM is version '1.28.0'
Jan 20 15:22:28 mythtv mythzmserver[31816]: Listening on port: 6548
Jan 20 15:22:28 mythtv mythzmserver[31816]: Failed to shmget for monitor: 5

trace from segfaulted mythzmserver is following:

----Proces trace------------------------------------------------------
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /usr/bin/mythzmserver...done.
[New LWP 31816]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/".
Core was generated by `/usr/bin/mythzmserver'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000407471 in MONITOR::getState (this=0x2f83d50)
    at zmserver.cpp:399
(gdb) quit

Change History (4)

comment:1 Changed 14 months ago by Stuart Auchterlonie

Owner: set to paul-h
Status: newassigned

comment:2 Changed 10 months ago by Stuart Auchterlonie

Milestone: unknownneeds_triage

comment:3 Changed 9 months ago by paul-h

Resolution: Abandoned
Status: assignedclosed

comment:4 Changed 9 months ago by Stuart Auchterlonie

Milestone: needs_triageunknown
Note: See TracTickets for help on using tickets.