Motion - Bug Report 2009x 06x 18x 142620

BUG: Segmentation fault

I'm using:

Linux 2.6.29.4-167.fc11.i586 #1 SMP Wed May 27 17:14:37 EDT 2009 i686 i686 i386 GNU/Linux Fedora Core 11 (Leonidas)

Name : motion Arch : i586 Version : 3.2.11 Release : 5.fc11

Name : ffmpeg Arch : i586 Version : 0.5 Release : 2.fc11

Logitech Quickcam Express USB

[root@ ~]# motion -n -d 7 -c /etc/motion/motion.conf
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Unknown config option "night_compensate"
[0] Unknown config option "low_cpu"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[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
[1] cap.driver: "STV06xx"
[1] cap.card: "Camera"
[1] cap.bus_info: "usb-0000:00:1f.4-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] v4l2_select_input: name = "STV06xx", type 0x00000002, status 00000000
[1] - CAMERA
[1] Supported palettes:
[1] 0: BA81 (BA81)
[1] index_format 1 Test palette BA81 (320x240)
[1] Adjusting resolution from 320x240 to 360x296.
[1] Using palette BA81 (360x296) bytesperlines 360 sizeimage 106560 colorspace 00000008
[1] found control 0x00980911, "exposure", range 0,65535
[0] motion-httpd/3.2.11 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 81
[1]     "exposure", default 5000, current 216
[1] found control 0x00980913, "gain", range 0,255
[1]     "gain", default 128, current 128
[1] mmap information:
[1] frames=4
[1] 0 length=110592
[1] 1 length=110592
[1] 2 length=110592
[1] 3 length=110592
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
Segmentation fault

Environment

Motion version: 3.2.11
ffmpeg version: 0.5.2
Shared libraries: ffmpeg, mysql, postgresql
Server OS: Fedora Core 11

-- JeanBono - 18 Jun 2009

Core Dump

[root@me ~]# gdb motion /tmp/core.motion.2286
GNU gdb (GDB) Fedora (6.8.50.20090302-33.fc11)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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 "i586-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
[New Thread 2286]

warning: Can't read pathname for load map: Input/output error.

warning: .dynamic section for "/lib/libc.so.6" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/i686/libavformat.so.52...done.
Loaded symbols for /usr/lib/i686/libavformat.so.52
Reading symbols from /usr/lib/i686/libavcodec.so.52...done.
Loaded symbols for /usr/lib/i686/libavcodec.so.52
Reading symbols from /usr/lib/i686/libavutil.so.49...done.
Loaded symbols for /usr/lib/i686/libavutil.so.49
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libbz2.so.1...done.
Loaded symbols for /lib/libbz2.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libfaac.so.0...done.
Loaded symbols for /usr/lib/libfaac.so.0
Reading symbols from /usr/lib/libfaad.so.2...done.
Loaded symbols for /usr/lib/libfaad.so.2
Reading symbols from /usr/lib/libgsm.so.1...done.
Loaded symbols for /usr/lib/libgsm.so.1
Reading symbols from /usr/lib/libmp3lame.so.0...done.
Loaded symbols for /usr/lib/libmp3lame.so.0
Reading symbols from /usr/lib/libopenjpeg.so.2...done.
Loaded symbols for /usr/lib/libopenjpeg.so.2
Reading symbols from /usr/lib/libschroedinger-1.0.so.0...done.
Loaded symbols for /usr/lib/libschroedinger-1.0.so.0
Reading symbols from /usr/lib/libspeex.so.1...done.
Loaded symbols for /usr/lib/libspeex.so.1
Reading symbols from /usr/lib/libtheora.so.0...done.
Loaded symbols for /usr/lib/libtheora.so.0
Reading symbols from /usr/lib/libvorbisenc.so.2...done.
Loaded symbols for /usr/lib/libvorbisenc.so.2
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/i686/libx264.so.67...done.
Loaded symbols for /usr/lib/i686/libx264.so.67
Reading symbols from /usr/lib/libxvidcore.so.4...done.
Loaded symbols for /usr/lib/libxvidcore.so.4
Reading symbols from /usr/lib/libmp4v2.so.0...done.
Loaded symbols for /usr/lib/libmp4v2.so.0
Reading symbols from /usr/lib/liboil-0.3.so.0...done.
Loaded symbols for /usr/lib/liboil-0.3.so.0
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Core was generated by `motion -n -d 9'.
Program terminated with signal 11, Segmentation fault.
#0  0x00205012 in __strcat_chk () from /lib/libc.so.6
Missing separate debuginfos, use: debuginfo-install motion-3.2.11-5.fc11.i586
(gdb) bt full
#0  0x00205012 in __strcat_chk () from /lib/libc.so.6
No symbol table info available.
#1  0x0804acd1 in bind ()
No symbol table info available.
#2  0x080549d5 in bind ()
No symbol table info available.
#3  0x08056e0b in bind ()
No symbol table info available.
#4  0x0804c5ab in bind ()
No symbol table info available.
#5  0x00944935 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x001ee82e in clone () from /lib/libc.so.6
No symbol table info available.
(gdb) frame 1
#1  0x0804acd1 in bind ()

Follow up

- Read here, please :

http://www.lavrsen.dk/foswiki/bin/view/Motion/FrequentlyAskedQuestions#Problems_running_motion_with_ker

http://www.lavrsen.dk/twiki/bin/view/Motion/SupportQuestion2009x01x20x183230

-- FlorinAnton - 18 Jun 2009


Please when you submit a segfault try to get a core dump :

http://www.lavrsen.dk/foswiki/bin/view/Motion/CoreDumpInMotion

-- AngelCarpintero - 09 Jul 2009

Fix record

It's a segfault that i fixed in trunk and it also uin big patch to new bug fix release 3.2.11.1 , you can get it :

http://www.lavrsen.dk/foswiki/pub/Motion/BugReport2009x07x15x111821/3.2.11.1-big-patch.diff
 mkdir motion
 cd  motion 

 svn co http://www.lavrsen.dk/svn/motion/tags/3.2.11/ .

 wget  http://www.lavrsen.dk/foswiki/pub/Motion/BugReport2009x07x15x111821/3.2.11.1-big-patch.diff
 patch -p0 <  3.2.11.1-big-patch.diff
 autoconf ; ./configure ; make  
-- AngelCarpintero - 16 Jul 2009
Topic revision: r5 - 16 Jul 2009, AngelCarpintero
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.