#42 Crash while adding content directory recursively

0.11.0
closed-invalid
Jin
5
2014-11-12
2008-10-27
Anonymous
No

When I add directory with media files, root directory gets processed ok, but at some point when it starts to process subdirectories, mediatomb crashes:

MediaTomb UPnP Server version 0.11.0 - http://mediatomb.cc/

===============================================================================
Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

2008-10-27 18:44:39 INFO: MediaTomb configuration was created in: /root/.mediatomb/config.xml
2008-10-27 18:44:39 INFO: Loading configuration from: /root/.mediatomb/config.xml
2008-10-27 18:44:39 INFO: UUID generated: 288735d0-f88a-44f8-8097-03a9e3bee769
2008-10-27 18:44:39 INFO: Checking configuration...
2008-10-27 18:44:39 INFO: Setting filesystem import charset to UTF-8
2008-10-27 18:44:39 INFO: Setting metadata import charset to UTF-8
2008-10-27 18:44:39 INFO: Setting playlist charset to UTF-8
2008-10-27 18:44:39 INFO: Configuration check succeeded.
2008-10-27 18:44:39 WARNING: Sqlite3 database seems to be corrupt or doesn't exist yet.
2008-10-27 18:44:39 INFO: no sqlite3 backup is available or backup is corrupt. automatically creating database...
2008-10-27 18:44:39 INFO: database created successfully.
2008-10-27 18:44:39 INFO: Initialized port: 49153
2008-10-27 18:44:39 INFO: Server bound to: 192.168.1.4
2008-10-27 18:44:40 INFO: MediaTomb Web UI can be reached by following this link:
2008-10-27 18:44:40 INFO: http://192.168.1.4:49153/
*** glibc detected *** mediatomb: double free or corruption (!prev): 0x084237d0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7887a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb788b4f0]
/usr/lib/libavutil.so.1d(av_free+0x1f)[0xb7bcff9f]
======= Memory map: ========
08048000-0818b000 r-xp 00000000 08:21 220024 /usr/bin/mediatomb
0818b000-0818d000 rw-p 00143000 08:21 220024 /usr/bin/mediatomb
0818d000-0853a000 rw-p 0818d000 00:00 0 [heap]
af000000-af021000 rw-p af000000 00:00 0
af021000-af100000 ---p af021000 00:00 0
af224000-af225000 ---p af224000 00:00 0
af225000-afa25000 rw-p af225000 00:00 0
afa25000-afa26000 ---p afa25000 00:00 0
afa26000-b0226000 rw-p afa26000 00:00 0
b0226000-b0227000 ---p b0226000 00:00 0
b0227000-b0a27000 rw-p b0227000 00:00 0
b0a29000-b0a2a000 ---p b0a29000 00:00 0
b0a2a000-b122a000 rw-p b0a2a000 00:00 0
b122b000-b262c000 rw-p b122b000 00:00 0
b262c000-b262d000 ---p b262c000 00:00 0
b262d000-b2e2d000 rw-p b262d000 00:00 0
b2e2d000-b2e39000 rw-p 00000000 08:21 73947 /usr/share/file/magic.mime.mgc
b2e39000-b2e3a000 ---p b2e39000 00:00 0
b2e3a000-b363a000 rw-p b2e3a000 00:00 0
b363a000-b363b000 ---p b363a000 00:00 0
b363b000-b3e3b000 rw-p b363b000 00:00 0
b3e3b000-b3e3c000 ---p b3e3b000 00:00 0
b3e3c000-b463c000 rw-p b3e3c000 00:00 0
b463c000-b463d000 ---p b463c000 00:00 0
b463d000-b4e3d000 rw-p b463d000 00:00 0
b4e3d000-b4e3e000 ---p b4e3d000 00:00 0
b4e3e000-b563e000 rw-p b4e3e000 00:00 0
b563e000-b563f000 ---p b563e000 00:00 0
b563f000-b5e3f000 rw-p b563f000 00:00 0
b5e3f000-b5e40000 ---p b5e3f000 00:00 0
b5e40000-b6640000 rw-p b5e40000 00:00 0
b6640000-b6641000 ---p b6640000 00:00 0
b6641000-b6e41000 rw-p b6641000 00:00 0
b6e41000-b6e80000 r--p 00000000 08:21 66809 /usr/lib/locale/en_US.utf8/LC_CTYPE
b6e80000-b6e81000 r--p 00000000 08:21 66810 /usr/lib/locale/en_US.utf8/LC_NUMERIC
b6e81000-b6e82000 r--p 00000000 08:21 66811 /usr/lib/locale/en_US.utf8/LC_TIME
b6e82000-b6f63000 r--p 00000000 08:21 66812 /usr/lib/locale/en_US.utf8/LC_COLLATE
b6f63000-b6f64000 r--p 00000000 08:21 66813 /usr/lib/locale/en_US.utf8/LC_MONETARY
b6f64000-b6f65000 r--p 00000000 08:21 66815 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b6f65000-b6f66000 r--p 00000000 08:21 66816 /usr/lib/locale/en_US.utf8/LC_PAPER
b6f66000-b6f67000 r--p 00000000 08:21 66817 /usr/lib/locale/en_US.utf8/LC_NAME
b6f67000-b6f6a000 rw-p b6f67000 00:00 0
b6f6a000-b6f6d000 r-xp 00000000 08:21 332184 /lib/libgpg-error.so.0.3.0
b6f6d000-b6f6e000 rw-p 00002000 08:21 332184 /lib/libgpg-error.so.0.3.0
b6f6e000-b6f6f000 rw-p b6f6e000 00:00 0
b6f6f000-b6fba000 r-xp 00000000 08:21 332182 /lib/libgcrypt.so.11.2.3
b6fba000-b6fbc000 rw-p 0004a000 08:21 332182 /lib/libgcrypt.so.11.2.3
b6fbc000-b6fcb000 r-xp 00000000 08:21 51296 /usr/lib/libtasn1.so.3.0.12
b6fcb000-b6fcc000 rw-p 0000e000 08:21 51296 /usr/lib/libtasn1.so.3.0.12
b6fcc000-b6fe2000 r-xp 00000000 08:21 51029 /usr/lib/libsasl2.so.2.0.22
b6fe2000-b6fe3000 rw-p 00015000 08:21 51029 /usr/lib/libsasl2.so.2.0.22
b6fe3000-b6fef000 r-xp 00000000 08:21 51120 /usr/lib/liblber-2.4.so.2.0.5
b6fef000-b6ff0000 rw-p 0000b000 08:21 51120 /usr/lib/liblber-2.4.so.2.0.5
b6ff0000-b6ff5000 r-xp 00000000 08:21 53369 /usr/lib/libraw1394.so.8.2.0
b6ff5000-b6ff6000 rw-p 00004000 08:21 53369 /usr/lib/libraw1394.so.8.2.0
b6ff6000-b6ff7000 rw-p b6ff6000 00:00 0
b6ff7000-b7002000 r-xp 00000000 08:21 54738 /usr/lib/libvorbisenc.so.2.0.3
b7002000-b70f0000 rw-p 0000b000 08:21 54738 /usr/lib/libvorbisenc.so.2.0.3
b70f0000-b710a000 r-xp 00000000 08:21 53400 /usr/lib/libvorbis.so.0.4.0
b710a000-b7118000 rw-p 0001a000 08:21 53400 /usr/lib/libvorbis.so.0.4.0
b7118000-b715f000 r-xp 00000000 08:21 53398 /usr/lib/libtheora.so.0.3.2
b715f000-b7161000 rw-p 00046000 08:21 53398 /usr/lib/libtheora.so.0.3.2
b7161000-b716d000 r-xp 00000000 08:21 242931 /usr/lib/libgsm.so.1.0.12
b716d000-b716e000 rw-p 0000b000 08:21 242931 /usr/lib/libgsm.so.1.0.12
b716e000-b717d000 r-xp 00000000 08:21 331975 /lib/tls/i686/cmov/libresolv-2.7.so
b717d000-b717f000 rw-p 0000f000 08:21 331975 /lib/tls/i686/cmov/libresolv-2.7.so
b717f000-b7182000 rw-p b717f000 00:00 0
b7182000-b7184000 r-xp 00000000 08:21 332175 /lib/libkeyutils-1.2.so
b7184000-b7185000 rw-p 00001000 08:21 332175 /lib/libkeyutils-1.2.so
b7185000-b718c000 r-xp 00000000 08:21 51157 /usr/lib/libkrb5support.so.0.1
b718c000-b718d000 rw-p 00006000 08:21 51157 /usr/lib/libkrb5support.so.0.1
b718d000-b71fe000 r-xp 00000000 08:21 51102 /usr/lib/libgnutls.so.13.9.1
b71fe000-b7203000 rw-p 00071000 08:21 51102 /usr/lib/libgnutls.so.13.9.1
b7203000-b7205000 r-xp 00000000 08:21 331946 /lib/libcom_err.so.2.1
b7205000-b7206000 rw-p 00001000 08:21 331946 /lib/libcom_err.so.2.1
b7206000-b7228000 r-xp 00000000 08:21 51154 /usr/lib/libk5crypto.so.3.1
b7228000-b7229000 rw-p 00022000 08:21 51154 /usr/lib/libk5crypto.so.3.1
b7229000-b722a000 rw-p b7229000 00:00 0
b722a000-b72b5000 r-xp 00000000 08:21 51156 /usr/lib/libkrb5.so.3.3
b72b5000-b72b7000 rw-p 0008a000 08:21 51156 /usr/lib/libkrb5.so.3.3
b72b7000-b72f4000 r-xp 00000000 08:21 51121 /usr/lib/libldap_r-2.4.so.2.0.5
b72f4000-b72f5000 rw-p 0003c000 08:21 51121 /usr/lib/libldap_r-2.4.so.2.0.5
b72f5000-b72f7000 rw-p b72f5000 00:00 0
b72f7000-b7327000 r-xp 00000000 08:21 51180 /usr/lib/libidn.so.11.5.30
b7327000-b7328000 rw-p 0002f000 08:21 51180 /usr/lib/libidn.so.11.5.30
b7328000-b732a000 r-xp 00000000 08:21 331963 /lib/tls/i686/cmov/libdl-2.7.so
b732a000-b732c000 rw-p 00001000 08:21 331963 /lib/tls/i686/cmov/libdl-2.7.so
b732c000-b733a000 r-xp 00000000 08:21 242941 /usr/lib/libdc1394_control.so.13.0.0
b733a000-b733b000 rw-p 0000d000 08:21 242941 /usr/lib/libdc1394_control.so.13.0.0
b733b000-b733c000 rw-p b733b000 00:00 0
b733c000-b7340000 r-xp 00000000 08:21 53387 /usr/lib/libogg.so.0.5.3
b7340000-b7341000 rw-p 00003000 08:21 53387 /usr/lib/libogg.so.0.5.3
b7341000-b772a000 r-xp 00000000 08:21 242936 /usr/lib/libavcodec.so.1d.51.38.0
b772a000-b7736000 rw-p 003e9000 08:21 242936 /usr/lib/libavcodec.so.1d.51.38.0
b7736000-b779e000 rw-p b7736000 00:00 0
b779e000-b77ce000 r-xp 00000000 08:21 50202 /usr/lib/libnspr4.so.0d
b77ce000-b77cf000 rw-p 00030000 08:21 50202 /usr/lib/libnspr4.so.0d
b77cf000-b77d1000 rw-p b77cf000 00:00 0
b77d1000-b77e5000 r-xp 00000000 08:21 331966 /lib/tls/i686/cmov/libnsl-2.7.so
b77e5000-b77e7000 rw-p 00013000 08:21 331966 /lib/tls/i686/cmov/libnsl-2.7.so
b77e7000-b77e9000 rw-p b77e7000 00:00 0
b77e9000-b77f2000 r-xp 00000000 08:21 331962 /lib/tls/i686/cmov/libcrypt-2.7.so
b77f2000-b77f4000 rw-p 00008000 08:21 331962 /lib/tls/i686/cmov/libcrypt-2.7.so
b77f4000-b781c000 rw-p b77f4000 00:00 0
b781c000-b7965000 r-xp 00000000 08:21 331960 /lib/tls/i686/cmov/libc-2.7.so
b7965000-b7966000 r--p 00149000 08:21 331960 /lib/tls/i686/cmov/libc-2.7.so
b7966000-b7968000 rw-p 0014a000 08:21 331960 /lib/tls/i686/cmov/libc-2.7.so
b7968000-b796b000 rw-p b7968000 00:00 0
b796b000-b797f000 r-xp 00000000 08:21 331974 /lib/tls/i686/cmov/libpthread-2.7.so
b797f000-b7981000 rw-p 00013000 08:21 331974 /lib/tls/i686/cmov/libpthread-2.7.so
b7981000-b7983000 rw-p b7981000 00:00 0
b7983000-b798d000 r-xp 00000000 08:21 332277 /lib/libgcc_s.so.1
b798d000-b798e000 rw-p 0000a000 08:21 332277 /lib/libgcc_s.so.1
b798e000-b79b1000 r-xp 00000000 08:21 331964 /lib/tls/i686/cmov/libm-2.7.so
b79b1000-b79b3000 rw-p 00023000 08:21 331964 /lib/tls/i686/cmov/libm-2.7.so
b79b3000-b7a9b000 r-xp 00000000 08:21 55253 /usr/lib/libstdc++.so.6.0.9
b7a9b000-b7a9e000 r--p 000e8000 08:21 55253 /usr/lib/libstdc++.so.6.0.9
b7a9e000-b7aa0000 rw-p 000eb000 08:21 55253 /usr/lib/libstdc++.so.6.0.9
b7aa0000-b7aa6000 rw-p b7aa0000 00:00 0
b7aa6000-b7ac5000 r-xp 00000000 08:21 52494 /usr/lib/libexpat.so.1.5.2
b7ac5000-b7ac7000 rw-p 0001e000 08:21 52494 /usr/lib/libexpat.so.1.5.2
b7ac7000-b7ac8000 rw-p b7ac7000 00:00 0
b7ac8000-b7ae8000 r-xp 00000000 08:21 51192 /usr/lib/libexif.so.12.2.0
b7ae8000-b7af1000 rw-p 0001f000 08:21 51192 /usr/lib/libexif.so.12.2.0
b7af1000-b7b05000 r-xp 00000000 08:21 50664 /usr/lib/libz.so.1.2.3.3
b7b05000-b7b06000 rw-p 00013000 08:21 50664 /usr/lib/libz.so.1.2.3.3
b7b06000-b7b69000 r-xp 00000000 08:21 51716 /usr/lib/libsqlite3.so.0.8.6
b7b69000-b7b6b000 rw-p 00062000 08:21 51716 /usr/lib/libsqlite3.so.0.8.6
b7b6b000-b7b93000 r-xp 00000000 08:21 51153 /usr/lib/libgssapi_krb5.so.2.2
b7b93000-b7b94000 rw-p 00028000 08:21 51153 /usr/lib/libgssapi_krb5.so.2.2
b7b94000-b7bcb000 r-xp 00000000 08:21 51023 /usr/lib/libcurl-gnutls.so.4.0.1
b7bcb000-b7bcc000 rw-p 00037000 08:21 51023 /usr/lib/libcurl-gnutls.so.4.0.1
b7bcc000-b7bd3000 r-xp 00000000 08:21 242915 /usr/lib/libavutil.so.1d.49.3.0
b7bd3000-b7bd4000 rw-p 00006000 08:21 242915 /usr/lib/libavutil.so.1d.49.3.0
b7bd4000-b7bd7000 rw-p b7bd4000 00:00 0
b7bd7000-b7c56000 r-xp 00000000 08:21 242947 /usr/lib/libavformat.so.1d.51.10.0
b7c56000-b7c5d000 rw-p 0007f000 08:21 242947 /usr/lib/libavformat.so.1d.51.10.0
b7c5d000-b7c64000 r-xp 00000000 08:21 331976 /lib/tls/i686/cmov/librt-2.7.so
b7c64000-b7c66000 rw-p 00006000 08:21 331976 /lib/tls/i686/cmov/librt-2.7.so
b7c66000-b7c76000 r-xp 00000000 08:21 52369 /usr/lib/libmagic.so.1.0.0
b7c76000-b7c77000 rw-p 00010000 08:21 52369 /usr/lib/libmagic.so.1.0.0
b7c77000-b7d1f000 r-xp 00000000 08:21 242950 /usr/lib/libmozjs.so.0d
b7d1f000-b7d24000 rw-p 000a7000 08:21 242950 /usr/lib/libmozjs.so.0d
b7d24000-b7d6d000 r-xp 00000000 08:21 53404 /usr/lib/libtag.so.1.4.0
b7d6d000-b7d6f000 rw-p 00049000 08:21 53404 /usr/lib/libtag.so.1.4.0
b7d6f000-b7f0d000 r-xp 00000000 08:21 242963 /usr/lib/libmysqlclient_r.so.15.0.0
b7f0d000-b7f50000 rw-p 0019d000 08:21 242963 /usr/lib/libmysqlclient_r.so.15.0.0
b7f50000-b7f52000 rw-p b7f50000 00:00 0
b7f52000-b7f53000 r--p 00000000 08:21 66818 /usr/lib/locale/en_US.utf8/LC_ADDRESS
b7f53000-b7f54000 r--p 00000000 08:21 66819 /usr/lib/locale/en_US.utf8/LC_TELEPHONE
b7f54000-b7f55000 r--p 00000000 08:21 66820 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT
b7f55000-b7f5c000 r--s 00000000 08:21 49526 /usr/lib/gconv/gconv-modules.cache
b7f5c000-b7f5d000 r--p 00000000 08:21 66821 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
b7f5d000-b7f5f000 rw-p b7f5d000 00:00 0
b7f5f000-b7f60000 r-xp b7f5f000 00:00 0 [vdso]
b7f60000-b7f7a000 r-xp 00000000 08:21 332282 /lib/ld-2.7.so
b7f7a000-b7f7c000 rw-p 00019000 08:21 332282 /lib/ld-2.7.so
bfdc7000-bfddc000 rw-p bffeb000 00:00 0 [stack]
Aborted

Discussion

  • Jin

    Jin - 2008-10-27

    From what I can see it's a crash in ffmpeg libraries. Either upgrade your ffmpeg libs or compile MediaTomb without ffmpeg support. You can investigate it further if you want (i.e. compile with debug support, get a full backtrace, figure out what media file causes the crash), but it will only make sense if you use latest ffmpeg SVN (the problem may already be fixed there) and if you will provide your findings to the ffmpeg devs.

    Kind regards,
    Jin

     
  • Jin

    Jin - 2008-10-27
    • status: open --> closed-invalid
     

Log in to post a comment.