Commit Graph
30177 Commits
Author SHA1 Message Date
Isaac Connor e5572b9c19 Merge pull request #5492 from AJ0070/5491-passthrough-codec-tag
fix: drop input codec tags the output muxer rejects when copying video
2026-11-11 18:41:55 -05:00
Isaac Connor b4560c9f8c Merge pull request #5582 from AJ0070/5581-write-error-flood
fix: log the first failed frame or packet write of an event and a count at the end instead of one error per frame
2026-11-11 18:07:08 -05:00
Isaac Connor 62939ae9d8 Merge pull request #5584 from AJ0070/5583-export-cleanup
fix: remove an export's working directory once its archive is built and the archive once it is downloaded
2026-11-11 18:06:08 -05:00
Isaac Connor b3dadc2ab8 Merge pull request #5586 from AJ0070/5585-zms-scale-without-copy
perf: scale a streamed frame straight from shared memory into a reused image instead of copying it first
2026-11-11 18:05:18 -05:00
Isaac Connor 02d2749fe8 Merge pull request #5590 from AJ0070/5589-console-dead-filters
perf: drop the per-monitor event filters the console page builds and never uses
2026-11-11 18:02:16 -05:00
Isaac Connor 735afd9fcb Merge pull request #5592 from AJ0070/5591-api-max-score-frame
fix: look up an event's highest scoring frame by FrameId in the API events index
2026-11-11 18:01:28 -05:00
Jash c9de8488d5 fix: look up an event's highest scoring frame by FrameId in the API events index fixes #5591 2026-11-12 03:57:43 +05:30
Jash 2682e995a6 perf: drop the per-monitor event filters the console page builds and never uses fixes #5589 2026-11-12 03:52:00 +05:30
Jash 53aaaa4d07 perf: scale a streamed frame straight from shared memory into a reused image instead of copying it first fixes #5585 2026-11-12 03:43:11 +05:30
Jash c4c5e2b15c fix: remove an export's working directory once its archive is built and the archive once it is downloaded fixes #5583 2026-11-12 03:36:15 +05:30
Jash 54ff79920d fix: log the first failed frame or packet write of an event and a count at the end instead of one error per frame fixes #5581 2026-11-12 03:15:59 +05:30
Isaac Connor cf0d054f76 Merge pull request #5562 from AJ0070/5560-delete-analysis-jpegs
fix: delete analysis jpegs by file name instead of an absolute glob result
2026-11-11 15:30:14 -05:00
Isaac Connor 467c41ddfa Merge pull request #5559 from AJ0070/5558-zmaudit-object-cache
fix: clear the object cache on every zmaudit pass so looked up events are freed
2026-11-11 15:29:20 -05:00
Jash f31fe09959 fix: delete analysis jpegs by file name instead of an absolute glob result fixes #5560 2026-11-12 01:47:19 +05:30
Jash 7efeaf6809 fix: clear the object cache on every zmaudit pass so looked up events are freed fixes #5558 2026-11-12 01:35:01 +05:30
Isaac ConnorandClaude Opus 5.5 a36a2d239f fix: install only the generated Perl modules from the build tree
After installing the Perl modules from the source tree, the install copied
every .pm in the build tree's lib/ over them, though only Base, Config,
Memory, ConfigData and ONVIF are generated there. Copies of other modules
left in a build directory by an older build replaced current ones on
install: a stale ZoneMinder/Server.pm without systemdRunning() left
zoneminder.service failing in zmpkg.pl. The five generated modules are now
named one by one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:02:59 -05:00
Isaac ConnorandClaude Opus 5.5 c1aeb61bf2 fix: report who sent a fatal signal instead of a made-up fault address refs #5215
For a signal sent with kill(), raise() or sigqueue() rather than raised by
a fault, si_addr shares its storage with the sender's pid and uid, so the
crash report printed "unknown segfault code (signal code 0)" and a fault
address that was really those two numbers. The report now says
"Sent by process <pid> (uid <uid>)" and gives only the instruction
pointer for SI_USER, SI_QUEUE and, where defined, SI_TKILL. Reports of
real faults are unchanged; a test checks that a write to address 0x10
still reports that address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:02:59 -05:00
Isaac ConnorandClaude Opus 5.5 b723537cea docs: correct what fs.suid_dumpable does to a crash made non-dumpable refs #5215
The comment said a process made non-dumpable with PR_SET_DUMPABLE is still
dumped when fs.suid_dumpable is 2. The kernel only uses that setting when a
process changes credentials or runs a setuid or unreadable program; a
process made non-dumpable is not dumped at all. Checked on a box with
suid_dumpable=2 and core_pattern piping to systemd-coredump: a zmc killed
with SIGSEGV under ZM_DUMP_CORES=0 left no systemd-coredump entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:02:59 -05:00
Isaac Connor ef0d126803 Merge pull request #5557 from AJ0070/5556-quote-storage-paths
fix: quote storage paths passed to df, du, ffprobe and AutoExecute
2026-11-11 14:49:41 -05:00
Jash 90993466a4 fix: quote storage paths passed to df, du, ffprobe and AutoExecute refs #5556 2026-11-12 01:07:48 +05:30
Isaac Connor 02a0dfc872 Merge pull request #5544 from AJ0070/5543-status-shm-state
perf: read the monitor state from shared memory in the status poll instead of running zmu
2026-11-11 13:45:35 -05:00
Isaac Connor 3d7fb1d1b3 Merge pull request #5546 from AJ0070/5545-fifo-stream-spin
fix: stop the fifo stream running the command thread loop inline
2026-11-11 13:44:45 -05:00
Isaac Connor 7765a13edd Merge pull request #5548 from AJ0070/5547-perl-startup
perf: load less when Perl scripts start
2026-11-11 13:43:47 -05:00
Isaac Connor 0d86b3af57 Merge pull request #5550 from AJ0070/5549-reload-in-progress-event
fix: reload an event that is still recording when playback reaches its last known frame
2026-11-11 13:35:51 -05:00
Jash aaba70d5db fix: reload an event that is still recording when playback reaches its last known frame fixes #5549 2026-11-11 23:28:22 +05:30
Jash 43fde1a551 perf: load Data::Dumper when Dump() is called instead of at startup fixes #5547 2026-11-11 23:16:30 +05:30
Jash b9cb8e02de perf: import only the POSIX names zmdc.pl uses and none where nothing is used refs #5547 2026-11-11 23:16:30 +05:30
Jash 24a75775d2 perf: load ConfigData only in the functions that write the Config table refs #5547 2026-11-11 23:16:20 +05:30
Jash 43ca621e7c fix: stop the fifo stream running the command thread loop inline fixes #5545 2026-11-11 23:09:51 +05:30
Jash fd449b822d perf: read the monitor state from shared memory in the status poll instead of running zmu fixes #5543 2026-11-11 23:01:58 +05:30
Isaac Connor c297266071 Merge pull request #5481 from AJ0070/3993-montage-layout-name
fix: overwrite your own montage layout when saving under its name
2026-11-11 09:01:04 -05:00
Isaac Connor 5b52f6ea33 Merge pull request #5480 from AJ0070/4300-postinst-conf-parse
fix: parse zm.conf in postinst instead of sourcing it
2026-11-11 08:59:24 -05:00
Isaac Connor cf3d471ab8 Merge pull request #5478 from AJ0070/5083-auth-failure-tables
fix: send expired sessions to login from the events and log tables
2026-11-11 08:58:20 -05:00
Jash f40d34ed5a Merge remote-tracking branch 'upstream/master' into 5083-auth-failure-tables 2026-11-11 09:32:44 +05:30
Jash 15aa2f8d0e Merge remote-tracking branch 'upstream/master' into 4300-postinst-conf-parse 2026-11-11 09:32:40 +05:30
Jash 789d3c2254 fix: reject built-in preset names and match layout names literally when saving refs #3993 2026-11-11 09:31:05 +05:30
Jash 1b815b13c5 test: initialize ffmpeg before looking up muxers in the codec tag test refs #5491 2026-11-11 09:23:25 +05:30
Isaac Connor 9b46479dd4 Merge pull request #5479 from AJ0070/5190-filter-save-overwrite
fix: keep the filter id in the url restored by back so save overwrites
2026-11-10 22:35:53 -05:00
Isaac Connor 3a9cc96f2a Merge pull request #5483 from AJ0070/5482-vectorize-zone-loop
perf: vectorize the motion detection loop in Release builds
2026-11-10 22:30:00 -05:00
Isaac Connor cdf6ce1d2d Merge pull request #5485 from AJ0070/av1-leb128-shift
fix: parse AV1 LEB128 sizes without shifting an int past its width
2026-11-10 22:29:00 -05:00
Isaac Connor 9deb4663c0 Merge pull request #5489 from AJ0070/5488-jpeg-raw-yuv
perf: encode YUV420P JPEGs straight from the planes
2026-11-10 22:22:58 -05:00
Isaac Connor 0d666af336 Merge pull request #5498 from connortechnology/fix/5215-signal-safe-crash-handler
fix: make the crash signal handler async-signal-safe (GHSA/#5215)
2026-11-10 22:22:33 -05:00
Isaac ConnorandClaude Opus 5.5 6fd53c3db2 fix: make a crashing process non-dumpable when ZM_DUMP_CORES is off refs #5215
A zero RLIMIT_CORE stops the kernel writing a core file, but when
core_pattern pipes to a program such as systemd-coredump or apport the
kernel hands it the dump anyway and leaves the limit to that program.
With ZM_DUMP_CORES off, the die handler now also calls
prctl(PR_SET_DUMPABLE, 0) when it starts reporting, so the kernel skips
the dump unless fs.suid_dumpable is 2, in which case the limit still
applies. It is done only at crash time because it also stops ptrace and
makes root the owner of the process's /proc files. Linux only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:58:37 -05:00
Isaac Connor d32b3d4752 Merge pull request #5069 from AJ0070/fix/4727-clear-logs
fix: clear all logs when no rows are selected
2026-11-10 19:14:43 -05:00
Isaac ConnorandClaude Opus 5.5 dab97e4730 test: fail crash handler tests the report timeout had to end refs #5215
The die handler's 5 second report timeout replaced the child's alarm()
watchdog and ends a stuck report on the original signal, so a test whose
report stalled still passed. run_crashing_child() now waits in the parent
with its own deadline, 4 seconds by default, and kills the child and
fails the test once it passes. The blocked-stderr test, which is meant to
reach the timeout, gets 8 seconds; the other-thread test, which ends
through its 3 second wait, gets 4.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:07:01 -05:00
Isaac Connor 16e4174dbd Merge pull request #5487 from AJ0070/5486-zone-bbox-memset
perf: stop zeroing the whole zone bounding box every frame
2026-11-10 18:44:22 -05:00
Isaac ConnorandClaude Opus 5.5 9076791f06 fix: leave no core dump from the die handler when ZM_DUMP_CORES is off refs #5215
The die handler is installed only when ZM_DUMP_CORES is off. It used to end
the process with exit(), so no core was written; it now re-raises the fault
with the default action, which dumps core wherever the core size limit
allows. zmSetDefaultDieHandler() now lowers the soft RLIMIT_CORE to 0 in
that case. The hard limit is left as it was, and with ZM_DUMP_CORES on
nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:09:29 -05:00
Isaac ConnorandClaude Opus 5.5 c42e367215 fix: keep SIGPIPE from cutting the crash report short refs #5215
Only zms handles SIGPIPE; in zmc, zma and zmu it is fatal. A crash report
written to a stderr pipe whose reader had gone raised SIGPIPE, which killed
the process before the report reached the log file or syslog and replaced
the fault as the cause of death. SIGPIPE is now blocked while the die
handler runs, so the write fails with EPIPE and the report goes on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:09:17 -05:00
Isaac ConnorandClaude Opus 5.5 84abc12171 fix: end a crash report that blocks on the fault it reports refs #5215
A write in the die handler that never completes, such as to a stderr pipe
nobody reads when a daemon is run by hand, left the process hung with the
fault never reaching zmdc. The handler now sets a 5 second alarm when it
starts reporting; if it fires, a SIGALRM handler ends the process on the
signal that was being reported. alarm() and sigaction() are
async-signal-safe and nothing else in ZoneMinder uses SIGALRM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:08:53 -05:00
Isaac Connor 56b03c4cc7 Merge pull request #5495 from nabbi/fix/mariadb-connector
fix-low: find MariaDB Connector/C by its own name at configure
2026-11-10 08:46:35 -05:00