[rtmpdump] Problem running git master rtmpdump

Matt Hirsch matthew.hirsch at gmail.com
Thu Sep 26 10:26:32 CEST 2013


I cloned rtmpdump master from git today: git clone git://git.ffmpeg.org/rtmpdump

I'm having trouble running the code. Bizarrely, the RTMP structure
seems to have different sizes in main() and RTMP_Init(). I've set the
CFLAGS to -O0 -g to aid in debugging. What could be going on here?

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap
--enable-shared --enable-threads=posix --enable-checking=release
--with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto
--enable-plugin --enable-initfini-array --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--disable-libjava-multilib
--with-isl=/builddir/build/BUILD/gcc-4.8.1-20130603/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.1-20130603/obj-x86_64-redhat-linux/cloog-install
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC)

$ gdb ./rtmpdump
GNU gdb (GDB) Fedora 7.6.1-41.fc19
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/mhirsch/rtmpdump/rtmpdump...done.
(gdb) run
Starting program: /home/mhirsch/rtmpdump/./rtmpdump
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL

Program received signal SIGSEGV, Segmentation fault.
__memset_sse2 () at ../sysdeps/x86_64/memset.S:909
909        movntdq %xmm0,0x20(%rdi)
Missing separate debuginfos, use: debuginfo-install
gnome-keyring-3.8.2-1.fc19.x86_64 keyutils-libs-1.5.6-1.fc19.x86_64
libselinux-2.1.13-15.fc19.x86_64
nss-softokn-freebl-3.15.1-1.fc19.x86_64
(gdb) up
#1  0x0000003d08606590 in memset (__len=1329016, __ch=0,
__dest=0x7fffffff9ee0) at /usr/include/bits/string3.h:84
warning: Source file is more recent than executable.
84      return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
(gdb) up
#2  RTMP_Init (r=0x7fffffff9ee0) at rtmp.c:250
250      memset(r, 0, sizeof(RTMP));
(gdb) print sizeof(RTMP)
$1 = 1329016
(gdb) up
#3  0x0000000000403295 in main (argc=1, argv=0x7fffffffe398) at rtmpdump.c:819
819      RTMP_Init(&rtmp);
(gdb) print sizeof(RTMP)
$2 = 17088
(gdb) quit


More information about the rtmpdump mailing list