Opened 3 years ago

Last modified 2 years ago

#2248 new defect

dumpstream crash with rtsp freebox tv stream

Reported by: onime Owned by: beastd
Priority: normal Component: streaming
Version: unspecified Severity: blocker
Keywords: dumpstream rtsp crash Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Summary of the bug:
When i try to -dumpstream' a rtsp stream from 'rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=400&flavour=sd' with the command :

% mplayer 'rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=400&flavour=sd' -dumpstream

I get a crash

MPlayer SVN-r37379 (C) 2000-2015 MPlayer Team
210 audio & 441 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=220&flavour=sd.
Resolving mafreebox.freebox.fr for AF_INET6...

Couldn't resolve name for AF_INET6: mafreebox.freebox.fr
Resolving mafreebox.freebox.fr for AF_INET...
Connecting to server mafreebox.freebox.fr[212.27.38.253]: 554...

Cache size set to 640 KBytes
RTP buffer invalid; no data return from network
RTP buffer invalid; no data return from network
*** Error in `mplayer': double free or corruption (fasttop): 0x0000557220db0760 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x72055)[0x7f31de082055]
/usr/lib/libc.so.6(+0x779a6)[0x7f31de0879a6]
/usr/lib/libc.so.6(+0x7818e)[0x7f31de08818e]
mplayer(+0x2db703)[0x55721da02703]
mplayer(+0x28e224)[0x55721d9b5224]
mplayer(+0x28e3b0)[0x55721d9b53b0]
mplayer(+0x14f144)[0x55721d876144]
/usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7f31de030610]
mplayer(+0x14f389)[0x55721d876389]
======= Memory map: ========
55721d727000-55721e631000 r-xp 00000000 08:09 2146114                    /usr/bin/mplayer
55721e831000-55721e98f000 rw-p 00f0a000 08:09 2146114                    /usr/bin/mplayer
55721e98f000-55721f036000 rw-p 00000000 00:00 0 
557220cd8000-557220dd1000 rw-p 00000000 00:00 0                          [heap]
7f31c4000000-7f31c4021000 rw-p 00000000 00:00 0 
7f31c4021000-7f31c8000000 ---p 00000000 00:00 0 
7f31cad12000-7f31cad30000 r-xp 00000000 08:09 2135022                    /usr/lib/libseccomp.so.2.2.3
7f31cad30000-7f31caf30000 ---p 0001e000 08:09 2135022                    /usr/lib/libseccomp.so.2.2.3
7f31caf30000-7f31caf3d000 r--p 0001e000 08:09 2135022                    /usr/lib/libseccomp.so.2.2.3
7f31caf3d000-7f31caf3e000 rw-p 0002b000 08:09 2135022                    /usr/lib/libseccomp.so.2.2.3
7f31caf3e000-7f31caf70000 r-xp 00000000 08:09 2115261                    /usr/lib/libidn.so.11.6.13
7f31caf70000-7f31cb170000 ---p 00032000 08:09 2115261                    /usr/lib/libidn.so.11.6.13
7f31cb170000-7f31cb171000 r--p 00032000 08:09 2115261                    /usr/lib/libidn.so.11.6.13
7f31cb171000-7f31cb172000 rw-p 00033000 08:09 2115261                    /usr/lib/libidn.so.11.6.13
7f31cb172000-7f31cb17a000 r-xp 00000000 08:09 2102856                    /usr/lib/libacl.so.1.1.0
7f31cb17a000-7f31cb379000 ---p 00008000 08:09 2102856                    /usr/lib/libacl.so.1.1.0
7f31cb379000-7f31cb37a000 r--p 00007000 08:09 2102856                    /usr/lib/libacl.so.1.1.0
7f31cb37a000-7f31cb37b000 rw-p 00008000 08:09 2102856                    /usr/lib/libacl.so.1.1.0
7f31cb37b000-7f31cb380000 r-xp 00000000 08:09 2134067                    /usr/lib/libnss_dns-2.22.so
7f31cb380000-7f31cb57f000 ---p 00005000 08:09 2134067                    /usr/lib/libnss_dns-2.22.so
7f31cb57f000-7f31cb580000 r--p 00004000 08:09 2134067                    /usr/lib/libnss_dns-2.22.so
7f31cb580000-7f31cb581000 rw-p 00005000 08:09 2134067                    /usr/lib/libnss_dns-2.22.so
7f31cb581000-7f31cb58c000 r-xp 00000000 08:09 2134130                    /usr/lib/libnss_files-2.22.so
7f31cb58c000-7f31cb78b000 ---p 0000b000 08:09 2134130                    /usr/lib/libnss_files-2.22.so
7f31cb78b000-7f31cb78c000 r--p 0000a000 08:09 2134130                    /usr/lib/libnss_files-2.22.so
7f31cb78c000-7f31cb78d000 rw-p 0000b000 08:09 2134130                    /usr/lib/libnss_files-2.22.so
7f31cb78d000-7f31cb793000 rw-p 00000000 00:00 0 
7f31cb793000-7f31cb921000 r--p 00000000 08:09 2134881                    /usr/lib/locale/locale-archive
7f31cb921000-7f31cb929000 r-xp 00000000 08:09 2134103                    /usr/lib/libcrypt-2.22.so
7f31cb929000-7f31cbb29000 ---p 00008000 08:09 2134103                    /usr/lib/libcrypt-2.22.so
7f31cbb29000-7f31cbb2a000 r--p 00008000 08:09 2134103                    /usr/lib/libcrypt-2.22.so
7f31cbb2a000-7f31cbb2b000 rw-p 00009000 08:09 2134103                    /usr/lib/libcrypt-2.22.so
7f31cbb2b000-7f31cbb59000 rw-p 00000000 00:00 0 
7f31cbb59000-7f31cbb5a000 r-xp 00000000 08:09 2144093                    /usr/lib/samba/libflag-mapping-samba4.so
7f31cbb5a000-7f31cbd5a000 ---p 00001000 08:09 2144093                    /usr/lib/samba/libflag-mapping-samba4.so
7f31cbd5a000-7f31cbd5b000 r--p 00001000 08:09 2144093                    /usr/lib/samba/libflag-mapping-samba4.so
7f31cbd5b000-7f31cbd5c000 rw-p 00002000 08:09 2144093                    /usr/lib/samba/libflag-mapping-samba4.so
7f31cbd5c000-7f31cbdce000 r-xp 00000000 08:09 2129999                    /usr/lib/libFLAC.so.8.3.0
7f31cbdce000-7f31cbfcd000 ---p 00072000 08:09 2129999                    /usr/lib/libFLAC.so.8.3.0
7f31cbfcd000-7f31cbfce000 r--p 00071000 08:09 2129999                    /usr/lib/libFLAC.so.8.3.0
7f31cbfce000-7f31cbfcf000 rw-p 00072000 08:09 2129999                    /usr/lib/libFLAC.so.8.3.0
7f31cbfcf000-7f31cbfe1000 r-xp 00000000 08:09 2104112                    /usr/lib/libgpg-error.so.0.15.0
7f31cbfe1000-7f31cc1e0000 ---p 00012000 08:09 2104112                    /usr/lib/libgpg-error.so.0.15.0
7f31cc1e0000-7f31cc1e1000 r--p 00011000 08:09 2104112                    /usr/lib/libgpg-error.so.0.15.0
7f31cc1e1000-7f31cc1e2000 rw-p 00012000 08:09 2104112                    /usr/lib/libgpg-error.so.0.15.0
7f31cc1e2000-7f31cc2b9000 r-xp 00000000 08:09 2128289                    /usr/lib/libgcrypt.so.20.0.3
7f31cc2b9000-7f31cc4b9000 ---p 000d7000 08:09 2128289                    /usr/lib/libgcrypt.so.20.0.3
7f31cc4b9000-7f31cc4ba000 r--p 000d7000 08:09 2128289                    /usr/lib/libgcrypt.so.20.0.3
7f31cc4ba000-7f31cc4c3000 rw-p 000d8000 08:09 2128289                    /usr/lib/libgcrypt.so.20.0.3
7f31cc4c3000-7f31cc4d4000 r-xp 00000000 08:09 2135097                    /usr/lib/liblz4.so.1.7.1
7f31cc4d4000-7f31cc6d3000 ---p 00011000 08:09 2135097                    /usr/lib/liblz4.so.1.7.1
7f31cc6d3000-7f31cc6d4000 r--p 00010000 08:09 2135097                    /usr/lib/liblz4.so.1.7.1
7f31cc6d4000-7f31cc6d5000 rw-p 00011000 08:09 2135097                    /usr/lib/liblz4.so.1.7.1
7f31cc6d5000-7f31cc6de000 r-xp 00000000 08:09 2112814                    /usr/lib/libndr-krb5pac.so.0.0.1
7f31cc6de000-7f31cc8dd000 ---p 00009000 08:09 2112814                    /usr/lib/libndr-krb5pac.so.0.0.1
7f31cc8dd000-7f31cc8de000 r--p 00008000 08:09 2112814                    /usr/lib/libndr-krb5pac.so.0.0.1
7f31cc8de000-7f31cc8df000 rw-p 00009000 08:09 2112814                    /usr/lib/libndr-krb5pac.so.0.0.1
7f31cc8df000-7f31cc8e2000 r-xp 00000000 08:09 2112967                    /usr/lib/samba/libauth-sam-reply-samba4.so
7f31cc8e2000-7f31ccae1000 ---p 00003000 08:09 2112967                    /usr/lib/samba/libauth-sam-reply-samba4.so
7f31ccae1000-7f31ccae2000 r--p 00002000 08:09 2112967                    /usr/lib/samba/libauth-sam-reply-samba4.so
7f31ccae2000-7f31ccae3000 rw-p 00003000 08:09 2112967                    /usr/lib/samba/libauth-sam-reply-samba4.so
7f31ccae3000-7f31ccb0a000 r-xp 00000000 08:09 2146080                    /usr/lib/samba/libwind-samba4.so.0.0.0
7f31ccb0a000-7f31ccd09000 ---p 00027000 08:09 2146080                    /usr/lib/samba/libwind-samba4.so.0.0.0
7f31ccd09000-7f31ccd0a000 r--p 00026000 08:09 2146080                    /usr/lib/samba/libwind-samba4.so.0.0.0
7f31ccd0a000-7f31ccd0b000 rw-p 00027000 08:09 2146080                    /usr/lib/samba/libwind-samba4.so.0.0.0
7f31ccd0b000-7f31ccd3d000 r-xp 00000000 08:09 2144104                    /usr/lib/samba/libhcrypto-samba4.so.5.0.1
7f31ccd3d000-7f31ccf3d000 ---p 00032000 08:09 2144104                    /usr/lib/samba/libhcrypto-samba4.so.5.0.1
7f31ccf3d000-7f31ccf3e000 r--p 00032000 08:09 2144104                    /usr/lib/samba/libhcrypto-samba4.so.5.0.1
7f31ccf3e000-7f31ccf3f000 rw-p 00033000 08:09 2144104                    /usr/lib/samba/libhcrypto-samba4.so.5.0.1
7f31ccf3f000-7f31ccf40000 rw-p 00000000 00:00 0 
7f31ccf40000-7f31ccf84000 r-xp 00000000 08:09 2144109                    /usr/lib/samba/libhx509-samba4.so.5.0.0
7f31ccf84000-7f31cd183000 ---p 00044000 08:09 2144109                    /usr/lib/samba/libhx509-samba4.so.5.0.0
7f31cd183000-7f31cd185000 r--p 00043000 08:09 2144109                    /usr/lib/samba/libhx509-samba4.so.5.0.0
7f31cd185000-7f31cd188000 rw-p 00045000 08:09 2144109                    /usr/lib/samba/libhx509-samba4.so.5.0.0
7f31cd188000-7f31cd194000 r-xp 00000000 08:09 2146049                    /usr/lib/samba/libroken-samba4.so.19.0.1
7f31cd194000-7f31cd393000 ---p 0000c000 08:09 2146049                    /usr/lib/samba/libroken-samba4.so.19.0.1
7f31cd393000-7f31cd394000 r--p 0000b000 08:09 2146049                    /usr/lib/samba/libroken-samba4.so.19.0.1
7f31cd394000-7f31cd395000 rw-p 0000c000 08:09 2146049                    /usr/lib/samba/libroken-samba4.so.19.0.1
7f31cd395000-7f31cd398000 r-xp 00000000 08:09 2144106                    /usr/lib/samba/libheimbase-samba4.so.1.0.0
7f31cd398000-7f31cd597000 ---p 00003000 08:09 2144106                    /usr/lib/samba/libheimbase-samba4.so.1.0.0
7f31cd597000-7f31cd598000 r--p 00002000 08:09 2144106                    /usr/lib/samba/libheimbase-samba4.so.1.0.0
7f31cd598000-7f31cd599000 rw-p 00003000 08:09 2144106                    /usr/lib/samba/libheimbase-samba4.so.1.0.0
7f31cd599000-7f31cd59d000 r-xp 00000000 08:09 2102821                    /usr/lib/libattr.so.1.1.0
7f31cd59d000-7f31cd79c000 ---p 00004000 08:09 2102821                    /usr/lib/libattr.so.1.1.0
7f31cd79c000-7f31cd79d000 r--p 00003000 08:09 2102821                    /usr/lib/libattr.so.1.1.0
7f31cd79d000-7f31cd79e000 rw-p 00004000 08:09 2102821                    /usr/lib/libattr.so.1.1.0
7f31cd79e000-7f31cd81d000 r-xp 00000000 08:09 2112964                    /usr/lib/samba/libasn1-samba4.so.8.0.0
7f31cd81d000-7f31cda1d000 ---p 0007f000 08:09 2112964                    /usr/lib/samba/libasn1-samba4.so.8.0.0
7f31cda1d000-7f31cda1e000 r--p 0007f000 08:09 2112964                    /usr/lib/samba/libasn1-samba4.so.8.0.0
7f31cda1e000-7f31cda21000 rw-p 00080000 08:09 2112964                    /usr/lib/samba/libasn1-samba4.so.8.0.0
7f31cda21000-7f31cda27000 r-xp 00000000 08:09 2112983                    /usr/lib/samba/libcli-ldap-common-samba4.so
7f31cda27000-7f31cdc27000 ---p 00006000 08:09 2112983                    /usr/lib/samba/libcli-ldap-common-samba4.so
7f31cdc27000-7f31cdc28000 r--p 00006000 08:09 2112983                    /usr/lib/samba/libcli-ldap-common-samba4.so
7f31cdc28000-7f31cdc29000 rw-p 00007000 08:09 2112983                    /usr/lib/samba/libcli-ldap-common-samba4.so
7f31cdc29000-7f31cdc2c000 r-xp 00000000 08:09 2143942                    /usr/lib/samba/libwinbind-client-samba4.so
7f31cdc2c000-7f31cde2b000 ---p 00003000 08:09 2143942                    /usr/lib/samba/libwinbind-client-samba4.so
7f31cde2b000-7f31cde2c000 r--p 00002000 08:09 2143942                    /usr/lib/samba/libwinbind-client-samba4.so
7f31cde2c000-7f31cde2d000 rw-p 00003000 08:09 2143942                    /usr/lib/samba/libwinbind-client-samba4.so
7f31cde2d000-7f31cde48000 r-xp 00000000 08:09 2135263                    /usr/lib/libsasl2.so.3.0.0
7f31cde48000-7f31ce048000 ---p 0001b000 08:09 2135263                    /usr/lib/libsasl2.so.3.0.0
7f31ce048000-7f31ce049000 r--p 0001b000 08:09 2135263                    /usr/lib/libsasl2.so.3.0.0
7f31ce049000-7f31ce04a000 rw-p 0001c000 08:09 2135263                    /usr/lib/libsasl2.so.3.0.0
7f31ce04a000-7f31ce05f000 r-xp 00000000 08:09 2112837                    /usr/lib/libsamdb.so.0.0.1
7f31ce05f000-7f31ce25f000 ---p 00015000 08:09 2112837                    /usr/lib/libsamdb.so.0.0.1
7f31ce25f000-7f31ce260000 r--p 00015000 08:09 2112837                    /usr/lib/libsamdb.so.0.0.1
7f31ce260000-7f31ce261000 rw-p 00016000 08:09 2112837                    /usr/lib/libsamdb.so.0.0.1
7f31ce261000-7f31ce263000 r-xp 00000000 08:09 2146052                    /usr/lib/samba/libsamba-modules-samba4.so
7f31ce263000-7f31ce462000 ---p 00002000 08:09 2146052                    /usr/lib/samba/libsamba-modules-samba4.so
7f31ce462000-7f31ce463000 r--p 00001000 08:09 2146052                    /usr/lib/samba/libsamba-modules-samba4.so
7f31ce463000-7f31ce464000 rw-p 00002000 08:09 2146052                    /usr/lib/samba/libsamba-modules-samba4.so
7f31ce464000-7f31ce476000 r-xp 00000000 08:09 2144131                    /usr/lib/samba/libntdb.so.1.0
7f31ce476000-7f31ce675000 ---p 00012000 08:09 2144131                    /usr/lib/samba/libntdb.so.1.0
7f31ce675000-7f31ce676000 r--p 00011000 08:09 2144131                    /usr/lib/samba/libntdb.so.1.0
7f31ce676000-7f31ce677000 rw-p 00012000 08:09 2144131                    /usr/lib/samba/libntdb.so.1.0
7f31ce677000-7f31ce679000 r-xp 00000000 08:09 2146076                    /usr/lib/samba/libutil-ntdb-samba4.so
7f31ce679000-7f31ce879000 ---p 00002000 08:09 2146076                    /usr/lib/samba/libutil-ntdb-samba4.so
7f31ce879000-7f31ce87a000 r--p 00002000 08:09 2146076                    /usr/lib/samba/libutil-ntdb-samba4.so
7f31ce87a000-7f31ce87b000 rw-p 00003000 08:09 2146076                    /usr/lib/samba/libutil-ntdb-samba4.so
7f31ce87b000-7f31ce8a8000 r-xp 00000000 08:09 2140116                    /usr/lib/libldb.so.1.1.20
7f31ce8a8000-7f31ceaa8000 ---p 0002d000 08:09 2140116                    /usr/lib/libldb.so.1.1.20
7f31ceaa8000-7f31ceaaa000 r--p 0002d000 08:09 2140116                    /usr/lib/libldb.so.1.1.20
7f31ceaaa000-7f31ceaab000 rw-p 0002f000 08:09 2140116                    /usr/lib/libldb.so.1.1.20
7f31ceaab000-7f31cead3000 r-xp 00000000 08:09 2144119                    /usr/lib/samba/libldbsamba-samba4.so
7f31cead3000-7f31cecd2000 ---p 00028000 08:09 2144119                    /usr/lib/samba/libldbsamba-samba4.so
7f31cecd2000-7f31cecd4000 r--p 00027000 08:09 2144119                    /usr/lib/samba/libldbsamba-samba4.so
7f31cecd4000-7f31cecd5000 rw-p 00029000 08:09 2144119                    /usr/lib/samba/libldbsamba-samba4.so
7f31cecd5000-7f31cecf3000 r-xp 00000000 08:09 2146058                    /usr/lib/samba/libsamdb-common-samba4.so
7f31cecf3000-7f31ceef2000 ---p 0001e000 08:09 2146058                    /usr/lib/samba/libsamdb-common-samba4.so
7f31ceef2000-7f31ceef3000 r--p 0001d000 08:09 2146058                    /usr/lib/samba/libsamdb-common-samba4.so
7f31ceef3000-7f31ceef4000 rw-p 0001e000 08:09 2146058                    /usr/lib/samba/libsamdb-common-samba4.so
7f31ceef4000-7f31cef08000 r-xp 00000000 08:09 2134113                    /usr/lib/libresolv-2.22.so
7f31cef08000-7f31cf107000 ---p 00014000 08:09 2134113                    /usr/lib/libresolv-2.22.so

MPlayer interrupted by signal 6 in module: dumpstream
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.

We can bypass the problem by using the command :

% ffmpeg -i 'rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=400&flavour=sd' -f avi pipe:1 | tee test.avi | mplayer -

Change History (1)

comment:1 Changed 2 years ago by reimar

Rather old ticket by now so it might be fixed, but
1) running "valgrind" followed by normal MPlayer command would give much more useful information.
2) a gdb backtrace as described in the documentation would help as well in case 1) is not an option

Apart from that you might want to try "ffmpeg://rtsp://...", however I have some doubts that -dumpstream can really work with rtsp (basically because it transfers audio and video separately, so there needs to be some special magic to get them into a single file). You will likely have to use some encoder instead like ffmpeg or mencoder.

Note: See TracTickets for help on using tickets.