[Ffmpeg-devel] FFMpeg CVS 20051220 crashing/segfaulting from Motion v3.2.4
Peter Smith
peter.smith
Tue Dec 20 22:59:17 CET 2005
I'm testing Motion v3.2.4 against a single webcam, an Axis 206M. I
downloaded the latest CVS of FFMpeg a few hours ago, compiled it,
swapped in the approriate .so files and captured the crash.
The command line for Motion is as follows.
/usr/bin/motion -n -d 100 -c /etc/motion/deleteme1.conf
The following is the last few lines displayed in my console.
[1] Potential split boundary - 1447 chars flushed, 1 re-positioned
[1] Calculated frame time 170247.250000
[1] Found image header record
[1] Potential split boundary - 1447 chars flushed, 1 re-positioned
[1] processing jpeg image - content length 343919
[1] Calculated frame time 171552.031250
[1] Found image header record
[1] Potential split boundary - 1447 chars flushed, 1 re-positioned
[1] Potential split boundary - 1447 chars flushed, 1 re-positioned
8819 Segmentation fault (core dumped) /usr/bin/motion -n -d 100 -c
/etc/motion/deleteme1.conf
Below is the gdb session.
[root at swlx12 motion]# gdb /usr/bin/motion -c core.8819
GNU gdb Red Hat Linux (6.3.0.0-1.62rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging
symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/usr/bin/motion -n -d 100 -c
/etc/motion/deleteme1.conf'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libpthread.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /usr/lib/libjpeg.so.62...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libavformat.so...done.
Loaded symbols for /usr/lib/libavformat.so
Reading symbols from /usr/lib/libavcodec.so...done.
Loaded symbols for /usr/lib/libavcodec.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libavutil.so.49...done.
Loaded symbols for /usr/lib/libavutil.so.49
Reading symbols from /usr/lib/libmp3lame.so.0...done.
Loaded symbols for /usr/lib/libmp3lame.so.0
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/libvorbisenc.so.2...done.
Loaded symbols for /usr/lib/libvorbisenc.so.2
Reading symbols from /usr/lib/libfaad.so.0...done.
Loaded symbols for /usr/lib/libfaad.so.0
Reading symbols from /usr/lib/libfaac.so.0...done.
Loaded symbols for /usr/lib/libfaac.so.0
Reading symbols from /usr/lib/libxvidcore.so.4...done.
Loaded symbols for /usr/lib/libxvidcore.so.4
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libpostproc.so.51.0.0...done.
Loaded symbols for /usr/lib/libpostproc.so.51.0.0
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
#0 0x000c3500 in ?? ()
(gdb) bt
#0 0x000c3500 in ?? ()
#1 0x00c94f7f in av_log_default_callback (ptr=0x96a83d8, level=1,
fmt=0xe73398 "picture size invalid (%ux%u)\n", vl=0x19cd1fc "\b") at
utils.c:1247
#2 0x00c95047 in av_vlog (avcl=0x96a83d8, level=157975512,
fmt=0x96a83d8 "\200\204j\t ?\a", vl=0x96a83d8 "\200\204j\t ?\a") at
utils.c:1268
#3 0x00c95016 in av_log (avcl=0x96a83d8, level=157975512, fmt=0x96a83d8
"\200\204j\t ?\a") at utils.c:1262
#4 0x00c93b0e in avcodec_check_dimensions (av_log_ctx=0x96a83d8, w=8,
h=13189168) at utils.c:258
#5 0x00c9439d in avcodec_open (avctx=0x96a83d8, codec=0x1) at utils.c:828
#6 0x0805fd5a in ffmpeg_open ()
#7 0x08058beb in event_ffmpeg_newfile ()
#8 0x0805937a in event ()
#9 0x0804b040 in motion_detected ()
#10 0x0804d2e3 in motion_loop ()
#11 0x0065bdd8 in start_thread () from /lib/tls/libpthread.so.0
#12 0x0021dd1a in clone () from /lib/tls/libc.so.6
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0xc34e0 to 0xc3520:
0x000c34e0: Cannot access memory at address 0xc34e0
(gdb) info all-registers
eax 0x96a83d8 157975512
ecx 0xc94030 13189168
edx 0x1 1
ebx 0x96a8480 157975680
esp 0x19cd17c 0x19cd17c
ebp 0x19cd1a8 0x19cd1a8
esi 0xe73398 15152024
edi 0x19cd1fc 27054588
eip 0xc3500 0xc3500
eflags 0x10202 66050
cs 0x23 35
ss 0x2b 43
ds 0xc03f002b -1069613013
es 0x2b 43
fs 0x0 0
gs 0x33 51
st0 0 (raw 0x00000000000000000000)
st1 0 (raw 0x00000000000000000000)
st2 0 (raw 0x00000000000000000000)
st3 0 (raw 0x00000000000000000000)
st4 0 (raw 0x00000000000000000000)
st5 0 (raw 0x00000000000000000000)
st6 0 (raw 0x00000000000000000000)
st7 200000 (raw 0x4010c350000000000000)
fctrl 0x37f 895
fstat 0x0 0
ftag 0xffff 65535
fiseg 0x23 35
fioff 0x80538ea 134559978
foseg 0x2b 43
fooff 0x96a4a8c 157960844
fop 0x0 0
xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
uint128 = 0x00000000000000000000000000000000}
mxcsr 0x1f80 8064
mm0 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm1 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm2 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm3 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm4 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm5 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm6 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm7 {uint64 = 0xc350000000000000, v2_int32 = {0x0,
0xc3500000}, v4_int16 = {0x0, 0x0, 0x0, 0xc350}, v8_int8 = {0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x50, 0xc3}}
(gdb) quit
Please contact me if there is anything else I can do to test this..
Thank you,
Peter Smith
More information about the ffmpeg-devel
mailing list