[SOLVED]Changing view Scale setting above x1.5 segfaults ZMS

Support and queries relating to all previous versions of ZoneMinder
Locked
qriff
Posts: 15
Joined: Thu Sep 20, 2007 9:11 pm

[SOLVED]Changing view Scale setting above x1.5 segfaults ZMS

Post by qriff »

Running Zoneminder v1.22.3 on Gentoo 2007.0 (current).

When viewing a (any of 3) monitor with Firefox and changing the Scale (menu) setting from Actual to anything above x1.5 causes segfault for ZMS.

ZM_STREAM_METHOD = jpeg

Code: Select all

Sep 25 17:51:59 sherlock zms[23907]: ERR [Got signal (Segmentation fault), crashing]
Sep 25 17:51:59 sherlock zms[23907]: ERR [Signal address is 0xb7f02000, from 0x4abb04ec ]
Sep 25 17:51:59 sherlock zms[23907]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x1c) [0x4abb04ec]]
Sep 25 17:51:59 sherlock zms[23907]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x1c) [0x4abb04ec]]
Sep 25 17:51:59 sherlock zms[23907]: ERR [Backtrace: /var/www/sherlock/cgi-bin/nph-zms [0x8063ad1]]
Sep 25 17:51:59 sherlock zms[23907]: ERR [Backtrace: /var/www/sherlock/cgi-bin/nph-zms [0x804aeaa]]
Sep 25 17:51:59 sherlock zms[23907]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xd8) [0x4ab5a838]]
Sep 25 17:51:59 sherlock zms[23907]: ERR [Backtrace: /var/www/sherlock/cgi-bin/nph-zms(__gxx_personality_v0+0xad) [0x804a571]]
Couldn't find anything describing this in forums/faqs/etc.
Nor other errors in logs.

Changing the view scale back below x1.5 works normally after segfault, probably because the page/process gets reloaded.
Last edited by qriff on Tue Mar 25, 2008 5:55 pm, edited 2 times in total.
qriff
Posts: 15
Joined: Thu Sep 20, 2007 9:11 pm

Post by qriff »

Code: Select all

10/07/07 15:12:51.691226 zms[8031].INF-zm_debug.c/304 [New Debug Level = 1, New Debug Log = /var/log/zoneminder/zm_debug.log]
10/07/07 15:12:51.691930 zms[8031].DB1-zms.cpp/84 [Query: mode=jpeg&monitor=2&scale=300&maxfps=15&auth=3cbffa4c29912fe568a0c9a6ed1eea19&rand=1191759171]
10/07/07 15:12:51.692041 zms[8031].DB1-zm_user.cpp/162 [Attempting to authenticate user from auth string 'xxxxxxxxxxxxxxxxxxxxx']
10/07/07 15:12:51.693319 zms[8031].DB1-zm_user.cpp/219 [Checking auth_key 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
' -> auth_md5 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']
10/07/07 15:12:51.693395 zms[8031].INF-zm_user.cpp/225 [Authenticated user 'xxxxxxx']
10/07/07 15:12:51.695986 zms[8031].DB1-zm_monitor.cpp/1899 [Got 1 monitors]
10/07/07 15:12:51.696660 zms[8031].DB1-zm_monitor.cpp/253 [monitor purpose=0]
10/07/07 15:12:51.696730 zms[8031].DB1-zm_monitor.cpp/260 [shm.size=3073188]
10/07/07 15:12:51.697095 zms[8031].DB1-zm_zone.cpp/49 [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3,
 MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
10/07/07 15:12:51.708509 zms[8031].DB1-zm_monitor.cpp/329 [Monitor Door has function 3]
10/07/07 15:12:51.708589 zms[8031].DB1-zm_monitor.cpp/330 [Monitor Door LBF = '%%s - %Y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
10/07/07 15:12:51.708631 zms[8031].DB1-zm_monitor.cpp/331 [Monitor Door IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
10/07/07 15:12:51.708707 zms[8031].DB1-zm_monitor.cpp/2036 [Loaded monitor 2(Door), 0 zones]
Actually the Monitor has one zone, and the zone is working.

Code: Select all

10/07/07 15:12:51.708963 zms[8031].DB1-zm_monitor.cpp/2070 [BFPS:3, EFPS:3, FM:1]
Changing Scale: to +1.5x

Code: Select all

10/07/07 15:13:01.363566 zms[8031].ERR-zm_signal.cpp/77 [Got signal (Segmentation fault), crashing]
10/07/07 15:13:01.363763 zms[8031].ERR-zm_signal.cpp/89 [Signal address is 0xb7fd6000, from 0x4abb04ec
]
10/07/07 15:13:01.364797 zms[8031].ERR-zm_signal.cpp/116 [Backtrace: /lib/libc.so.6(memcpy+0x1c) [0x4abb04ec]]
10/07/07 15:13:01.364965 zms[8031].ERR-zm_signal.cpp/116 [Backtrace: /lib/libc.so.6(memcpy+0x1c) [0x4abb04ec]]
10/07/07 15:13:01.365050 zms[8031].ERR-zm_signal.cpp/116 [Backtrace: /var/www/zoneminder/cgi-bin/nph-zms [0x8063ad1]]
10/07/07 15:13:01.365132 zms[8031].ERR-zm_signal.cpp/116 [Backtrace: /var/www/zoneminder/cgi-bin/nph-zms [0x804aeaa]]
10/07/07 15:13:01.365213 zms[8031].ERR-zm_signal.cpp/116 [Backtrace: /lib/libc.so.6(__libc_start_main+0xd8) [0x4ab5a838]]
10/07/07 15:13:01.365295 zms[8031].ERR-zm_signal.cpp/116 [Backtrace: /var/www/zoneminder/cgi-bin/nph-zms(__gxx_personality_v0+0xad) [0x804a571]]
10/07/07 15:13:01.365414 zms[8031].INF-zm_signal.cpp/117 [Backtrace complete]

User avatar
BrownBottle
Posts: 18
Joined: Mon Apr 16, 2007 8:02 pm
Location: Florida, USA

Post by BrownBottle »

I'm having the same problem and haven't found a cure. Did you resolve the problem? If so, how? Thanks

Larry
Larry



Work is a great thing to see -- in your rearview mirror ;-)
qriff
Posts: 15
Joined: Thu Sep 20, 2007 9:11 pm

Post by qriff »

Upgrade to 1.23.1 fixed the problem.
Locked