Motion - Bug Report 2008x 04x 29x 115508

BUG: Abnormal termination: * glibc detected * motion: free(): invalid pointer: 0x0809f610 *

After start motion in few minutes it's crashed with errors below. I'm try it from rpm (first log) and after compile it myself (second log). I'm use Mandriva linux 2008 Spring PowerPack.

PC configuration: MB - Foxconn NF4UK8AA-8EKRS CPU - AMD Athlon 64 x2 3800 RAM - 2x1024 SST CL2 video - Palit 7300GT 256Mb DDR2 HDD - WD 160 Gb JD

And I try it on the another PC with Mandriva 2008 Spring PowerPack: AMD Phenom 9500/4Gb RAM/ ATI 2600 Pro/ATI chipset. Crashing too.

Very usefull program, but subj:(.

Thanks.

First log:
_____
*** glibc detected *** motion: free(): invalid pointer: 0x0809f610 ***
======= Backtrace: =========
/lib/i686/libc.so.6[0xb7638ff3]
/lib/i686/libc.so.6(cfree+0x90)[0xb763caf0]
/usr/lib/libavformat.so.52(url_fclose+0x24)[0xb7e08f64]
======= Memory map: ========
...
b7ef6000-b7ef7000 rw-p b7ef6000 00Аварийный останов
_____

Second log (Full):
_____
[root@msh_main etc]# /usr/local/bin/motion -n
[0] Processing thread 0 - config file motion.conf
[0] Motion 3.2.9 Started
[0] ffmpeg LIBAVCODEC_BUILD 3354880 LIBAVFORMAT_BUILD 3409152
[0] Thread 1 is from motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.9 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 10080
[1] Not a V4L2 device?
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] Started stream webcam server in port 10081
[1] File of type 8 saved to: /usr/local/apache2/htdocs/cam1/01-20080429223029.avi
[1] File of type 1 saved to: /usr/local/apache2/htdocs/cam1/01-20080429223415-00.jpg
*** glibc detected *** /usr/local/bin/motion: free(): invalid pointer: 0x0809b660 ***
======= Backtrace: =========
/lib/i686/libc.so.6[0xb76e4ff3]
/lib/i686/libc.so.6(cfree+0x90)[0xb76e8af0]
/usr/lib/libavformat.so.52(url_fclose+0x24)[0xb7eb4f64]
/usr/local/bin/motion[0x805c691]
/usr/local/bin/motion[0x805c33f]
/usr/local/bin/motion[0x804d2af]
/lib/i686/libpthread.so.0[0xb7f6b4e2]
/lib/i686/libc.so.6(clone+0x5e)[0xb774e47e]
======= Memory map: ========
08048000-08071000 r-xp 00000000 08:07 376098     /usr/local/bin/motion
08071000-08074000 rw-p 00029000 08:07 376098     /usr/local/bin/motion
08074000-0844d000 rw-p 08074000 00:00 0          [heap]
b5400000-b5421000 rw-p b5400000 00:00 0
b5421000-b5500000 ---p b5421000 00:00 0
b5595000-b5df7000 rw-p b5595000 00:00 0
b5e68000-b60c1000 rw-s 00000000 00:0e 5318       /dev/video0
b60c1000-b60c2000 ---p b60c1000 00:00 0
b60c2000-b68c2000 rw-p b60c2000 00:00 0
b68c2000-b68c3000 ---p b68c2000 00:00 0
b68c3000-b70c5000 rw-p b68c3000 00:00 0
b70c5000-b70d0000 r-xp 00000000 08:07 32758      /lib/libgcc_s-4.2.3.so.1
b70d0000-b70d1000 rw-p 0000a000 08:07 32758      /lib/libgcc_s-4.2.3.so.1
b70d1000-b71b4000 r-xp 00000000 08:07 409252     /usr/lib/libstdc++.so.6.0.9
b71b4000-b71b8000 r--p 000e2000 08:07 409252     /usr/lib/libstdc++.so.6.0.9
b71b8000-b71b9000 rw-p 000e6000 08:07 409252     /usr/lib/libstdc++.so.6.0.9
b71b9000-b71c0000 rw-p b71b9000 00:00 0
b71c0000-b71c5000 r-xp 00000000 08:07 413254     /usr/lib/libogg.so.0.5.3
b71c5000-b71c6000 rw-p 00004000 08:07 413254     /usr/lib/libogg.so.0.5.3
b71c6000-b7333000 r-xp 00000000 08:07 409229     /usr/lib/libcrypto.so.0.9.8
b7333000-b7348000 rw-p 0016c000 08:07 409229     /usr/lib/libcrypto.so.0.9.8
b7348000-b734b000 rw-p b7348000 00:00 0
b734b000-b7391000 r-xp 00000000 08:07 409230     /usr/lib/libssl.so.0.9.8
b7391000-b7395000 rw-p 00045000 08:07 409230     /usr/lib/libssl.so.0.9.8
b7395000-b73a8000 r-xp 00000000 08:07 32734      /lib/libnsl-2.7.so
b73a8000-b73a9000 r--p 00012000 08:07 32734      /lib/libnsl-2.7.so
b73a9000-b73aa000 rw-p 00013000 08:07 32734      /lib/libnsl-2.7.so
b73aa000-b73ac000 rw-p b73aa000 00:00 0
b73ac000-b73b5000 r-xp 00000000 08:07 32728      /lib/libcrypt-2.7.so
b73b5000-b73b6000 r--p 00008000 08:07 32728      /lib/libcrypt-2.7.so
b73b6000-b73b7000 rw-p 00009000 08:07 32728      /lib/libcrypt-2.7.so
b73b7000-b73df000 rw-p b73b7000 00:00 0
b73df000-b7454000 r-xp 00000000 08:07 415175     /usr/lib/libdirac_decoder.so.0.0.0
b7454000-b7456000 rw-p 00074000 08:07 415175     /usr/lib/libdirac_decoder.so.0.0.0
b7456000-b7457000 rw-p b7456000 00:00 0
b7457000-b74ed000 r-xp 00000000 08:07 415177     /usr/lib/libdirac_encoder.so.0.0.0
b74ed000-b74ef000 rw-p 00096000 08:07 415177     /usr/lib/libdirac_encoder.so.0.0.0
b74ef000-b74f0000 rw-p b74ef000 00:00 0
b74f0000-b750c000 r-xp 00000000 08:07 413272     /usr/lib/libvorbis.so.0.4.0
b750c000-b751a000 rw-p 0001c000 08:07 413272     /usr/lib/libvorbis.so.0.4.0
b751a000-b7525000 r-xp 00000000 08:07 413546     /usr/lib/libvorbisenc.so.2.0.3
b7525000-b7613000 rw-p 0000b000 08:07 413546     /usr/lib/libvorbisenc.so.2.0.3
b7613000-b765b000 r-xp 00000000 08:07 413402     /usr/lib/libtheora.so.0.3.2
b765b000-b765d000 rw-p 00048000 08:07 413402     /usr/lib/libtheora.so.0.3.2
b765d000-b765e000 rw-p b765d000 00:00 0
b765e000-b7667000 r-xp 00000000 08:07 415209     /usr/lib/liba52.so.0.0.0
b7667000-b7669000 rw-p 00008000 08:07 415209     /usr/lib/liba52.so.0.0.0
b7669000-b766b000 r-xp 00000000 08:07 32730      /lib/libdl-2.7.so
b766b000-b766c000 r--p 00001000 08:07 32730      /lib/libdl-2.7.so
b766c000-b766d000 rw-p 00002000 08:07 32730      /lib/libdl-2.7.so
b766d000-b7678000 r-xp 00000000 08:07 415222     /usr/lib/libavutil.so.49.6.0
b7678000-b7679000 rw-p 0000b000 08:07 415222     /usr/lib/libavutil.so.49.6.0
b7679000-b767c000 rw-p b7679000 00:00 0
b767c000-b77ba000 r-xp 00000000 08:07 32707      /lib/i686/libc-2.7.so
b77ba000-b77bc000 r--p 0013e000 08:07 32707      /lib/i686/libc-2.7.so
b77bc000-b77bd000 rw-p 00140000 08:07 32707      /lib/i686/libc-2.7.so
b77bd000-b77c0000 rw-p b77bd000 00:00 0
b77c0000-b78e9000 r-xp 00000000 08:07 413347     /usr/lib/libmysqlclient.so.15.0.0
b78e9000-b792b000 rw-p 00128000 08:07 413347     /usr/lib/libmysqlclient.so.15.0.0
b792b000-b792d000 rw-p b792b000 00:00 0
b792d000-b793f000 r-xp 00000000 08:07 32761      /lib/libz.so.1.2.3
b793f000-b7940000 rw-p 00012000 08:07 32761      /lib/libz.so.1.2.3
b7940000-b7d9b000 r-xp 00000000 08:07 415310     /usr/lib/libavcodec.so.51.49.0
b7d9b000-b7da2000 rw-p 0045a000 08:07 415310     /usr/lib/libavcodec.so.51.49.0
b7da2000-b7e98000 rw-p b7da2000 00:00 0
b7e98000-b7f41000 r-xp 00000000 08:07 460174     /usr/lib/libavformat.so.52.5.0
b7f41000-b7f44000 rw-p 000a9000 08:07 460174     /usr/lib/libavformat.so.52.5.0
b7f44000-b7f65000 r-xp 00000000 08:07 412000     /usr/lib/libjpeg.so.62.0.0
b7f65000-b7f66000 rw-p 00020000 08:07 412000     /usr/lib/libjpeg.so.62.0.0
b7f66000-b7f79000 r-xp 00000000 08:07 32711      /lib/i686/libpthread-2.7.so
b7f79000-b7f7a000 r--p 00012000 08:07 32711      /lib/i686/libpthread-2.7.so
b7f7a000-b7f7b000 rw-p 00013000 08:07 32711      /lib/i686/libpthread-2.7.so
b7f7b000-b7f7d000 rw-p b7f7b000 00:00 0
b7f7d000-b7fa0000 r-xp 00000000 08:07 32709      /lib/i686/libm-2.7.so
b7fa0000-b7fa1000 r--p 00023000 08:07 32709      /lib/i686/libm-2.7.so
b7fa1000-b7fa2000 rw-p 00024000 08:07 32709      /lib/i686/libm-2.7.so
b7fa2000-b7fa3000 rw-p b7fa2000 00:00 0
b7fc2000-b7fdc000 r-xp 00000000 08:07 32717      /lib/ld-2.7.so
b7fdc000-b7fdd000 r--p 00019000 08:07 32717      /lib/ld-2.7.so
b7fdd000-b7fde000 rw-p 0001a000 08:07 32717      /lib/ld-2.7.so
bfbd0000-bfbe5000 rw-p bffeb000 00:00 0          [stack]
fffАварийный останов
_____

Updated: Has not helped. That did: has removed motion, has anew unpacked source codes, has applied a patch (3.2.9-ffmpeg-creation-newfile.diff), compile it (./configure --with-ffmpeg=/usr/lib --with-mysql-lib=/usr/lib && make && checkinstall && rpm -i ...), has left an old config. The problem has remained. frown, sad smile After this tried to use pwc-ioctl.h-pwc8.0 - not helped:(

Update2: I think it solved. I'm try new version 3.2.10 from SVN as recomended there: http://www.lavrsen.dk/twiki/bin/view/Motion/BugReport2008x01x27x155414

Big thanks.

Environment

Motion version: 3.2.9
ffmpeg version: 0.4.9pre1
Shared libraries: ffmpeg, mysql
Server OS: Mandriva linux 2008 Spring PowerPack

-- NickIvanov - 29 Apr 2008

Follow up

Fix record

It's a duplicated bug already fixed . There's a patch in release notes :

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

Also i sent an email to mailing list some time ago explaining this issue.

-- AngelCarpintero - 29 Apr 2008

BugReportForm edit

TopicTitle Abnormal termination: * glibc detected * motion: free(): invalid pointer: 0x0809f610 *
BugStatus Duplicate
AssignedBugTo
SubmittedBy NickIvanov
Topic revision: r4 - 10 Apr 2009, KennethLavrsen
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.