BUG: Crash on finish record of mpeg
At finished the record a mpeg video (any formats), Motion wait some seconds and crashing. I think is a fail at closed the file.. not sure....
Camera is
NetCam IP Conceptronics, connection over LAN (at
http://192.168.0.x/VIDEO.CGI)
With JPEG capture any problem.
error output:
--------------------------------------
*** glibc detected *** motion: free(): invalid pointer: 0x08081880 ***
======= Backtrace: =========
/lib/libc.so.6[0xb791d4b6]
/lib/libc.so.6(cfree+0x89)[0xb791f179]
/usr/lib/libavformat.so.52(url_fclose+0x24)[0xb7e7c744]
motion[0x805cb61]
motion[0x805c80f]
motion[0x804d5fb]
/lib/libpthread.so.0[0xb7f0c192]
/lib/libc.so.6(clone+0x5e)[0xb797a02e]
======= Memory map: ========
08048000-08071000 r-xp 00000000 08:01 2321985 /usr/local/bin/motion
08071000-08072000 r--p 00028000 08:01 2321985 /usr/local/bin/motion
08072000-08074000 rw-p 00029000 08:01 2321985 /usr/local/bin/motion
08074000-08171000 rw-p 08074000 00:00 0 [heap]
b5800000-b5821000 rw-p b5800000 00:00 0
b5821000-b5900000 ---p b5821000 00:00 0
b5932000-b5a9a000 rw-p b5932000 00:00 0
b5a9a000-b5a9b000 ---p b5a9a000 00:00 0
b5a9b000-b629b000 rwxp b5a9b000 00:00 0
b629b000-b629c000 ---p b629b000 00:00 0
b629c000-b6a9c000 rwxp b629c000 00:00 0
b6a9c000-b6a9d000 ---p b6a9c000 00:00 0
b6a9d000-b729d000 rwxp b6a9d000 00:00 0
b729d000-b729f000 rw-p b729d000 00:00 0
b729f000-b72a9000 r-xp 00000000 08:01 261721 /lib/libgcc_s.so.1
b72a9000-b72ab000 rw-p 00009000 08:01 261721 /lib/libgcc_s.so.1
b72ab000-b738e000 r-xp 00000000 08:01 381351 /usr/lib/libstdc++.so.6.0.9
b738e000-b7391000 r--p 000e2000 08:01 381351 /usr/lib/libstdc++.so.6.0.9
b7391000-b7393000 rw-p 000e5000 08:01 381351 /usr/lib/libstdc++.so.6.0.9
b7393000-b7399000 rw-p b7393000 00:00 0
b7399000-b739d000 r-xp 00000000 08:01 381091 /usr/lib/libogg.so.0.5.3
b739d000-b739f000 rw-p 00003000 08:01 381091 /usr/lib/libogg.so.0.5.3
b739f000-b744d000 r-xp 00000000 08:01 2175894 /usr/lib/libmp4v2.so.0.0.0
b744d000-b7450000 r--p 000ad000 08:01 2175894 /usr/lib/libmp4v2.so.0.0.0
b7450000-b7451000 rw-p 000b0000 08:01 2175894 /usr/lib/libmp4v2.so.0.0.0
b7451000-b7452000 rw-p b7451000 00:00 0
b7452000-b74ef000 r-xp 00000000 08:01 2175868 /usr/lib/libxvidcore.so.4.1
b74ef000-b74f0000 r--p 0009c000 08:01 2175868 /usr/lib/libxvidcore.so.4.1
b74f0000-b74f1000 rw-p 0009d000 08:01 2175868 /usr/lib/libxvidcore.so.4.1
b74f1000-b7564000 rw-p b74f1000 00:00 0
b7564000-b75e4000 r-xp 00000000 08:01 2175875 /usr/lib/libx264.so.57
b75e4000-b75e5000 r--p 0007f000 08:01 2175875 /usr/lib/libx264.so.57
b75e5000-b75e6000 rw-p 00080000 08:01 2175875 /usr/lib/libx264.so.57
b75e6000-b75ea000 rw-p b75e6000 00:00 0
b75ea000-b7607000 r-xp 00000000 08:01 381355 /usr/lib/libvorbis.so.0.4.0
b7607000-b7616000 rw-p 0001c000 08:01 381355 /usr/lib/libvorbis.so.0.4.0
b7616000-b7621000 r-xp 00000000 08:01 381357 /usr/lib/libvorbisenc.so.2.0.3
b7621000-b7712000 rw-p 0000a000 08:01 381357 /usr/lib/libvorbisenc.so.2.0.3
b7712000-b7757000 r-xp 00000000 08:01 2176285 /usr/lib/libtheora.so.0.3.2
b7757000-b7759000 rw-p 00045000 08:01 2176285 /usr/lib/libtheora.so.0.3.2
b7759000-b7796000 r-xp 00000000 08:01 2175873 /usr/lib/libmp3lame.so.0.0.0
b7796000-b7797000 r--p 0003c000 08:01 2175873 /usr/lib/libmp3lame.so.0.0.0
b7797000-b7798000 rw-p 0003d000 08:01 2175873 /usr/lib/libmp3lame.so.0.0.0
b7798000-b77ca000 rw-p b7798000 00:00 0
b77ca000-b77d9000 r-xp 00000000 08:01 2175785 /usr/lib/libgsm.so.1.0.10
b77d9000-b77db000 rw-p 0000e000 08:01 2175785 /usr/lib/libgsm.so.1.0.10
b77db000-b7817000 r-xp 00000000 08:01 2175922 /usr/lib/libfaad.so.0.0.0
b7817000-b781b000 rw-p 0003b000 08:01 2175922 /usr/lib/libfaad.so.0.0.0
b781b000-b7829000 r-xp 00000000 08:01 2175931 /usr/lib/libfaac.so.0.0.0
b7829000-b782a000 r--p 0000d000 08:01 2175931 /usr/lib/libfaac.so.0.0.0
b782a000-b782d000 rw-p 0000e000 08:01 2175931 /usr/lib/libfaac.so.0.0.0
b782d000-b7857000 r-xp 00000000 08:01 2175913 /usr/lib/libamrwb.so.3.0.0
b7857000-b7858000 r--p 00029000 08:01 2175913 /usr/lib/libamrwb.so.3.0.0
b7858000-b7859000 rw-p 0002a000 08:01 2175913 /usr/lib/libamrwb.so.3.0.0
b7859000-b785a000 rw-p b7859000 00:00 0
b785a000-b7894000 r-xp 00000000 08:01 2175911 /usr/lib/libamrnb.so.3.0.0
--------------------------------------
Environment
Motion version: |
3.2.9 |
ffmpeg version: |
FFmpeg version SVN-r11346 |
Shared libraries: |
curl , xmlrpc, ffmpeg, |
Server OS: |
OpenSuSe 10.3, kernel 2.6.22.13-0.3-default |
--
TrebolA - 05 Feb 2008
Follow up
Fix record
This bug is duplicated many times , as ffmpeg changes his API and it quite hard do a release every time the do a change , fix is there :
http://www.lavrsen.dk/twiki/bin/view/Motion/BugReport2008x01x27x155414
--
AngelCarpintero - 06 Feb 2008
Ups, sorry for the inconvenience. I was looking for "invalid pointer: 0x08081880" without results...
I update to 3.2.10 and now run perfect again !
Thank you
--
TrebolA - 06 Feb 2008