Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#14400 - [motion] segfaults
Attached to Project:
Arch Linux
Opened by Frank (shawabawa) - Monday, 20 April 2009, 12:24 GMT
Last edited by Paul Mattal (paul) - Saturday, 03 October 2009, 18:53 GMT
Opened by Frank (shawabawa) - Monday, 20 April 2009, 12:24 GMT
Last edited by Paul Mattal (paul) - Saturday, 03 October 2009, 18:53 GMT
|
DetailsDescription:
Motion segfaults the moment I run it If I run with no motion.conf I get: # motion Segmentation fault If i run with the default config I get: # motion [0] Processing thread 0 - config file /etc/motion/motion.conf [0] Unknown config option "sql_log_image" [0] Unknown config option "sql_log_snapshot" [0] Unknown config option "sql_log_mpeg" [0] Unknown config option "sql_log_timelapse" [0] Unknown config option "sql_query" [0] Motion 3.2.11 Started [0] Motion going to daemon mode # killall motion motion: no process killed If I run with the default config file with daemon off I get: # motion [0] Processing thread 0 - config file /etc/motion/motion.conf [0] Unknown config option "sql_log_image" [0] Unknown config option "sql_log_snapshot" [0] Unknown config option "sql_log_mpeg" [0] Unknown config option "sql_log_timelapse" [0] Unknown config option "sql_query" [0] Motion 3.2.11 Started [0] ffmpeg LIBAVCODEC_BUILD 3411712 LIBAVFORMAT_BUILD 3415296 [0] Thread 1 is from /etc/motion/motion.conf [1] Thread 1 started [1] cap.driver: "spca561" [1] cap.card: "Camera" [1] cap.bus_info: "0000:00:1d.0" [1] cap.capabilities=0x05000001 [1] - VIDEO_CAPTURE [1] - READWRITE [1] - STREAMING [1] Supported palettes: [1] 0: S561 (S561) [1] 1: GBRG (GBRG) [1] Unable to find a compatible palette format. [1] Using VIDEO_PALETTE_YUV420P palette [1] Using V4L1 [1] Resizing pre_capture buffer to 1 items [0] motion-httpd/3.2.11 running, accepting connections [0] motion-httpd: waiting for data on port TCP 8080 [1] Started stream webcam server in port 8081 Segmentation fault Package version: 3.2.11-1 My entire system is up to date as of 20th April Steps to reproduce: # pacman -S motion # motion |
This task depends upon
Closed by Paul Mattal (paul)
Saturday, 03 October 2009, 18:53 GMT
Reason for closing: Fixed
Additional comments about closing: Applied the patch in motion-3.2.11-4 for both arches, and put in extra.
Tested and it does, indeed, remove the segfaults.
Saturday, 03 October 2009, 18:53 GMT
Reason for closing: Fixed
Additional comments about closing: Applied the patch in motion-3.2.11-4 for both arches, and put in extra.
Tested and it does, indeed, remove the segfaults.
try it and let us now
:: Starting Motion [BUSY]
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412992 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
/etc/rc.d/motion: line 7: 2894 Segmentation fault /usr/bin/motion
[FAIL]
it starts now, only renamed /etc/motion/motion-dist.conf to /etc/motion/motion.conf
:: Starting Motion [BUSY]
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Motion 3.2.11 Started
[0] Motion going to daemon mode
[DONE]
daemon works with motion 3.2.11-2
# /etc/rc.d/motion start [BUSY]
<blah>
[DONE]
# /etc/rc.d/motion stop [FAIL]
Also, running motion not through rc.d/motion still has the exact same output with the segmentation fault
also I created /var/run/motion which motion put is process PID
I started the daemon from rc.d, I watch the ps output: motion were in the list
so, I put my webcamera, count to 10 and...system FREEZE
(gdb) bt
#0 0xb75c3a19 in strcat () from /lib/libc.so.6
#1 0x0804b0dc in motion_log (level=-1, errno_flag=1, fmt=0x806b84d "could not open configfile %s") at motion.c:2778
#2 0x08050817 in conf_load (cnt=0x9634008) at conf.c:1669
#3 0x0804ba9f in motion_startup (daemonize=1, argc=1, argv=0x0) at motion.c:2054
#4 0x0804f15e in main (argc=1, argv=0xbfb0e054) at motion.c:2263
Searching in the web for this issue... found this [#1] tested this patch and fixes the issue when no config file (the default install)
But please see that there are more patches for bugs [#2]
[#1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523932
[#2] http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionPatches
@Paul: according to the PKGBUILD you're the maintainer, but the package is orphaned. Do you still maintain it?