Motion - Bug Report 2010x 04x 06x 014526
You are here: Foswiki>Motion Web>BugReports>BugReport2010x04x06x014526 (03 Jun 2012, AngelCarpintero)Edit Attach

BUG: Seg Fault in fresh REV504 compile

make dist clean svn update ./configure make make install motion Segmentation fault (core dumped)

This is a Logitech quickcam orbit MP that has been working well with all the latest SVN versions

This is reproducible every time I try to start motion.  I have tried with the distribution conf file, as well as my own.
The system is a P4 1.6 laptop running all the latest updates from Fedora 12.  I can include the output of configure if it will help,
but it is compiled with everything on except DB support of any kind.  A run with motion -d 9 produces nothing different,
and the log file is never written to.

UPDATE: adding a -k XXX (where XXX seems to be anything but ALL) works.

First the general run:

[root@saturn ~]# motion
[0] [ALR] [ALL] conf_load: Processing thread 0 - config file /usr/local/etc/motion.conf

Message from syslogd@saturn at Apr  5 20:47:05 ...
 motion: [0] [EMG] [ALL] motion_startup: Motion trunkREV504 Started
[0] [EMG] [ALL] motion_startup: Motion trunkREV504 Started

Message from syslogd@saturn at Apr  5 20:47:05 ...
 motion: [0] [EMG] [ALL] motion_startup: Logging to file (/var/log/motion.log)
[0] [EMG] [ALL] motion_startup: Logging to file (/var/log/motion.log)
Segmentation fault (core dumped)


ok, so let's strace it:

[root@saturn ~]# strace motion
execve("/usr/local/bin/motion", ["motion"], [/* 25 vars */]) = 0
brk(0)                                  = 0x85c1000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78df000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=103316, ...}) = 0
mmap2(NULL, 103316, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78c5000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 t\251\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=233340, ...}) = 0
mmap2(0xa94000, 168048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa94000
mmap2(0xabc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x27) = 0xabc000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\271\254\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=193044, ...}) = 0
mmap2(0xac7000, 102880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xac7000
mmap2(0xadd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0xadd000
mmap2(0xadf000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xadf000
close(3)                                = 0
open("/usr/lib/libjpeg.so.62", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\362\24\0034\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=143148, ...}) = 0
mmap2(0x314d000, 140380, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x314d000
mmap2(0x316f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0x316f000
close(3)                                = 0
open("/usr/lib/libavformat.so.52", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\312Q\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=874084, ...}) = 0
mmap2(0x4fe000, 870436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4fe000
mmap2(0x5cd000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xcf) = 0x5cd000
close(3)                                = 0
open("/usr/lib/libavcodec.so.52", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200s\36\0024\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=6168064, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c4000
mmap2(0x215b000, 10647716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x215b000
mmap2(0x2733000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5d7) = 0x2733000
mmap2(0x273d000, 4479140, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x273d000
close(3)                                = 0
open("/usr/lib/libavutil.so.50", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\202\274\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=61884, ...}) = 0
mmap2(0xbc6000, 74916, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xbc6000
mmap2(0xbd4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xbd4000
mmap2(0xbd5000, 13476, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbd5000
close(3)                                = 0
open("/lib/libz.so.1", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \366\256\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=76368, ...}) = 0
mmap2(0xaee000, 77616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xaee000
mmap2(0xb00000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0xb00000
close(3)                                = 0
open("/usr/lib/libsqlite3.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \356@\0034\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=587428, ...}) = 0
mmap2(0x340a000, 589580, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x340a000
mmap2(0x3498000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8d) = 0x3498000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20=\223\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=2403884, ...}) = 0
mmap2(0x91d000, 1526120, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x91d000
mmap2(0xa8c000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16e) = 0xa8c000
mmap2(0xa8f000, 10600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa8f000
close(3)                                = 0
open("/lib/libbz2.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\277(\0034\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=71980, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c3000
mmap2(0x328b000, 69128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x328b000
mmap2(0x329b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0x329b000
close(3)                                = 0
open("/usr/lib/libdirac_encoder.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\316\264\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=595656, ...}) = 0
mmap2(0xb2e000, 596596, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb2e000
mmap2(0xbbd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8f) = 0xbbd000
mmap2(0xbbf000, 2676, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbbf000
close(3)                                = 0
open("/usr/lib/libfaad.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\326\275\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=262144, ...}) = 0
mmap2(0xbdb000, 263360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xbdb000
mmap2(0xc19000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3d) = 0xc19000
close(3)                                = 0
open("/usr/lib/libgsm.so.1", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\335\302\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=44876, ...}) = 0
mmap2(0xc2d000, 46120, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xc2d000
mmap2(0xc38000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0xc38000
close(3)                                = 0
open("/usr/lib/libmp3lame.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\263!\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=281364, ...}) = 0
mmap2(0x215000, 483104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x215000
mmap2(0x258000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x42) = 0x258000
mmap2(0x25a000, 200480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x25a000
close(3)                                = 0
open("/usr/lib/libopenjpeg.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p`\377\0024\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=120240, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c2000
mmap2(0x2ff3000, 117352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ff3000
mmap2(0x300f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c) = 0x300f000
close(3)                                = 0
open("/usr/lib/libschroedinger-1.0.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\227~\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=583964, ...}) = 0
mmap2(0x7df000, 581008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7df000
mmap2(0x86b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8c) = 0x86b000
close(3)                                = 0
open("/usr/lib/libspeex.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0Ph\261\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=95112, ...}) = 0
mmap2(0xb15000, 92316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb15000
mmap2(0xb2b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xb2b000
close(3)                                = 0
open("/usr/lib/libtheora.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`/F\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=223828, ...}) = 0
mmap2(0x462000, 225028, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x462000
mmap2(0x498000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35) = 0x498000
close(3)                                = 0
open("/usr/lib/libogg.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20S*\0034\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=23660, ...}) = 0
mmap2(0x32a4000, 20892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x32a4000
mmap2(0x32a9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0x32a9000
close(3)                                = 0
open("/usr/lib/libvorbisenc.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300k\6\0024\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1026008, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c1000
mmap2(0x205f000, 1023140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x205f000
mmap2(0x214b000, 57344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xec) = 0x214b000
close(3)                                = 0
open("/usr/lib/libvorbis.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20J\3\0024\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=173472, ...}) = 0
mmap2(0x2032000, 174736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2032000
mmap2(0x205c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29) = 0x205c000
close(3)                                = 0
open("/usr/lib/sse2/libx264.so.78", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\2338\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=620616, ...}) = 0
mmap2(0x385000, 651232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x385000
mmap2(0x41c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x96) = 0x41c000
mmap2(0x41d000, 28640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41d000
close(3)                                = 0
open("/usr/lib/libxvidcore.so.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\227\20\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=690008, ...}) = 0
mmap2(0x101000, 1120808, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x101000
mmap2(0x19f000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9e) = 0x19f000
mmap2(0x1a9000, 432680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1a9000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\254\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=28384, ...}) = 0
mmap2(0xac0000, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xac0000
mmap2(0xac3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xac3000
close(3)                                = 0
open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \306^\0054\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=925656, ...}) = 0
mmap2(0x55a7000, 953260, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x55a7000
mmap2(0x5684000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xdc) = 0x5684000
mmap2(0x568a000, 23468, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x568a000
close(3)                                = 0
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\17|\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=121288, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c0000
mmap2(0x7bf000, 122760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7bf000
mmap2(0x7dc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c) = 0x7dc000
close(3)                                = 0
open("/usr/lib/liboil-0.3.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\24*\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=499604, ...}) = 0
mmap2(0x28d000, 510760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x28d000
mmap2(0x2f0000, 98304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x62) = 0x2f0000
mmap2(0x308000, 6952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x308000
close(3)                                = 0
open("/lib/librt.so.1", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200H\256\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=54232, ...}) = 0
mmap2(0xae3000, 33332, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xae3000
mmap2(0xaea000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xaea000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78bf000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78be000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78bd000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb78bd6d0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xaea000, 4096, PROT_READ)     = 0
mprotect(0x5684000, 16384, PROT_READ)   = 0
mprotect(0xac3000, 4096, PROT_READ)     = 0
mprotect(0x101000, 647168, PROT_READ|PROT_WRITE) = 0
mprotect(0x101000, 647168, PROT_READ|PROT_EXEC) = 0
mprotect(0x385000, 618496, PROT_READ|PROT_WRITE) = 0
mprotect(0x385000, 618496, PROT_READ|PROT_EXEC) = 0
mprotect(0xa8c000, 8192, PROT_READ)     = 0
mprotect(0xbc6000, 57344, PROT_READ|PROT_WRITE) = 0
mprotect(0xbc6000, 57344, PROT_READ|PROT_EXEC) = 0
mprotect(0x215b000, 6127616, PROT_READ|PROT_WRITE) = 0
mprotect(0x215b000, 6127616, PROT_READ|PROT_EXEC) = 0
mprotect(0x4fe000, 847872, PROT_READ|PROT_WRITE) = 0
mprotect(0x4fe000, 847872, PROT_READ|PROT_EXEC) = 0
mprotect(0xadd000, 4096, PROT_READ)     = 0
mprotect(0xabc000, 4096, PROT_READ)     = 0
mprotect(0x919000, 4096, PROT_READ)     = 0
munmap(0xb78c5000, 103316)              = 0
set_tid_address(0xb78bd738)             = 1665
set_robust_list(0xb78bd740, 0xc)        = 0
futex(0xbfdac4c0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xbfdac4c0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, bfdac4d0) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0xacb3e0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xacb870, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="saturn.howardweb.org", ...}) = 0
futex(0x5689fbc, FUTEX_WAKE_PRIVATE, 2147483647) = 0
brk(0)                                  = 0x85c1000
brk(0x85e2000)                          = 0x85e2000
rt_sigaction(SIGCHLD, {0x804b98f, [], SA_NOCLDWAIT}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {0x804b98f, [], SA_NOCLDWAIT}, NULL, 8) = 0
rt_sigaction(SIGALRM, {0x804b2d0, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGHUP, {0x804b2d0, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGINT, {0x804b2d0, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x804b2d0, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x804b2d0, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGUSR1, {0x804b2d0, [], SA_RESTART}, NULL, 8) = 0
stat64(".", {st_mode=S_IFDIR|0550, st_size=4096, ...}) = 0
stat64("/root", {st_mode=S_IFDIR|0550, st_size=4096, ...}) = 0
open("/root/motion.conf", O_RDONLY)     = -1 ENOENT (No such file or directory)
open("/root/.motion/motion.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/etc/motion.conf", O_RDONLY) = 3
time(NULL)                              = 1270518457
open("/etc/localtime", O_RDONLY)        = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=3543, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78de000
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0\0\0\0"..., 4096) = 3543
_llseek(4, -24, [3519], SEEK_CUR)       = 0
read(4, "\nCST6CDT,M3.2.0,M11.1.0\n", 4096) = 24
close(4)                                = 0
munmap(0xb78de000, 4096)                = 0
socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 4
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0
send(4, "<9>Apr  5 20:47:37 motion: [0] ["..., 114, MSG_NOSIGNAL) = 114
write(2, "[0] [ALR] [ALL] conf_load: Proce"..., 88[0] [ALR] [ALL] conf_load: Processing thread 0 - config file /usr/local/etc/motion.conf
) = 88
fstat64(3, {st_mode=S_IFREG|0755, st_size=1705, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78de000
read(3, "process_id_file /var/run/motion/"..., 4096) = 1705
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb78de000, 4096)                = 0
time(NULL)                              = 1270518457
send(4, "<8>Apr  5 20:47:37 motion: [0] ["..., 85, MSG_NOSIGNAL
Message from syslogd@saturn at Apr  5 20:47:37 ...
 motion: [0] [EMG] [ALL] motion_startup: Motion trunkREV504 Started
) = 85
write(2, "[0] [EMG] [ALL] motion_startup: "..., 59[0] [EMG] [ALL] motion_startup: Motion trunkREV504 Started
) = 59
open("/var/log/motion.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78de000
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
time(NULL)                              = 1270518457
send(4, "<8>Apr  5 20:47:37 motion: [0] ["..., 96, MSG_NOSIGNAL
Message from syslogd@saturn at Apr  5 20:47:37 ...
 motion: [0] [EMG] [ALL] motion_startup: Logging to file (/var/log/motion.log)
) = 96
write(2, "[0] [EMG] [ALL] motion_startup: "..., 70[0] [EMG] [ALL] motion_startup: Logging to file (/var/log/motion.log)
) = 70
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)


and the config file:

[root@saturn ~]# cat /usr/local/etc/motion.conf 
process_id_file /var/run/motion/motion.pid 
daemon on
logfile /var/log/motion.log
setup_mode off
videodevice /dev/video0
v4l2_palette 17
input 8
norm 1
frequency 0
rotate 0
width 640
height 480
framerate 10
minimum_frame_time 0
netcam_keepalive off
netcam_tolerant_check off
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 1
roundrobin_skip 1
switchfilter off
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
despeckle_filter EedDl
smart_mask_speed 0
lightswitch 80
minimum_motion_frames 1
pre_capture 2
post_capture 10
event_gap 60
max_movie_time 0
emulate_motion off
output_pictures off
output_debug_pictures off
quality 80
picture_type jpeg
ffmpeg_output_movies on
ffmpeg_output_debug_movies off
ffmpeg_timelapse 30
ffmpeg_timelapse_mode daily
ffmpeg_bps 400000
ffmpeg_variable_bitrate 11
ffmpeg_video_codec mpeg4
ffmpeg_deinterlace off
use_extpipe off
snapshot_interval 60
locate_motion_mode off
locate_motion_style box 
text_right %Y-%m-%d\n%T-%q
text_left cam4
text_changes off
text_event %Y%m%d%H%M%S
text_double off
target_dir /space/media/Videos/webcam/s
snapshot_filename cam4
picture_filename cam4-%v-%Y%m%d%H%M%S-%q
movie_filename cam4-%v-%Y%m%d%H%M%S
timelapse_filename timelapse/%Y%m%d-timelapse-cam4
stream_port 8884
stream_quality 50
stream_motion off
stream_maxrate 10
stream_localhost off
stream_limit 0
webcontrol_port 8084
webcontrol_localhost off
webcontrol_html_output on
webcontrol_authentication jim:llama
# Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic, 5=uvcvideo, 6=servo)
track_type 0
track_auto off
track_step_angle_x 1
track_step_angle_y 1
track_move_wait 5
track_speed 255
track_stepsize 64
quiet on

Environment

Motion version: REV504 SVN
ffmpeg version: ffmpeg-devel-0.5-5.20091026svn.fc12.i686
Shared libraries: ffmpeg
Server OS: Fedora 12, kernel 2.6.32.10-90.fc12.i686
-- JimHoward - 06 Apr 2010

Follow up

Jim, thanks for reporting this bug smile

Let me fix and commit to svn.

-- AngelCarpintero - 06 Apr 2010


Try REV505.

-- AngelCarpintero - 07 Apr 2010

Fix record

REV505 smile

-- AngelCarpintero - 15 Apr 2010
Topic revision: r5 - 03 Jun 2012, AngelCarpintero
Copyright © 1999-2019 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.