Bug 18029

Summary: make check fails on Mandriva Cooker - INFO: Testing crash-0.7.1-uncompressed-half-samples-5.swf
Product: swfdec Reporter: Shlomi Fish <shlomif>
Component: libraryAssignee: swfdec ml <swfdec>
Status: RESOLVED FIXED QA Contact: swfdec ml <swfdec>
Severity: normal    
Priority: medium CC: shlomif
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Shlomi Fish 2008-10-12 05:01:34 UTC
When running "make check" in Mandriva Linux Cooker I'm getting the following:

{{{{{{{{{{
INFO: Testing crash-0.7.1-throw-6.swf
  OK                                 

INFO: Testing crash-0.7.1-throw-7.swf
  OK                                 

INFO: Testing crash-0.7.1-throw-8.swf
  OK

INFO: Testing crash-0.7.1-uncompressed-half-samples-5.swf
SWFDEC: ERROR: swfdec_audio_decoder_uncompressed.c(59): swfdec_audio_decoder_uncompressed_upscale: incorrect buffer size, 1 bytes overhead
/bin/sh: line 1:  6116 Aborted                 $CUR_DIR/../swfdec-test *.swf
make[4]: *** [check-local] Error 134
make[4]: Leaving directory `/home/shlomi/Download/unpack/net/www/swfdec/swfdec/test/trace'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/shlomi/Download/unpack/net/www/swfdec/swfdec/test/trace'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/shlomi/Download/unpack/net/www/swfdec/swfdec/test'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/shlomi/Download/unpack/net/www/swfdec/swfdec/test'
make: *** [check-recursive] Error 1
shlomi:~/Download/unpack/net/www/swfdec/swfdec$
}}}}}}}}}}

So the "make check" fails
Comment 1 Benjamin Otte 2008-10-12 05:46:35 UTC
Can you get a backtrace for that crash? This should work with:
$> cd test/trace
$> gdb .libs/lt-swfdec-test
(gdb) r crash-0.7.1-uncompressed-half-samples-5.swf
# wait until it crashes
(gdb) bt

And please make sure you build swfdec with debugging symbols.

As a side note: This doesn't happen for me, and I'm on x86, too.
Comment 2 Shlomi Fish 2008-10-12 12:25:11 UTC
(In reply to comment #1)
> Can you get a backtrace for that crash? This should work with:
> $> cd test/trace
> $> gdb .libs/lt-swfdec-test
> (gdb) r crash-0.7.1-uncompressed-half-samples-5.swf
> # wait until it crashes
> (gdb) bt
> 
> And please make sure you build swfdec with debugging symbols.
> 
> As a side note: This doesn't happen for me, and I'm on x86, too.
> 

Hi!

I built swfdec like that:

{{{
#!/bin/bash
CFLAGS="-g" \
./configure --prefix=/home/shlomi/apps/net/www/swfdec \
    --disable-static --enable-gtk-doc --enable-vivified
}}}

And then did:

{{{
shlomi:~/Download/unpack/net/www/swfdec/swfdec/test/trace$ gdb ../.libs/lt-swfdec-test                                                                          
GNU gdb 6.8-2mdv2009.0 (Mandriva Linux release 2009.0)                          
Copyright (C) 2008 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 "i586-mandriva-linux-gnu"...                         
(gdb) r crash-0.7.1-uncompressed-half-samples-5.swf                             
Starting program: /home/shlomi/Download/unpack/net/www/swfdec/swfdec/test/.libs/lt-swfdec-test crash-0.7.1-uncompressed-half-samples-5.swf                      
[Thread debugging using libthread_db enabled]                                   
[New Thread 0xb6e226c0 (LWP 7671)]                                              
Detaching after fork from child process 7675.                                   
INFO: Testing crash-0.7.1-uncompressed-half-samples-5.swf                       
SWFDEC: ERROR: swfdec_audio_decoder_uncompressed.c(59): swfdec_audio_decoder_uncompressed_upscale: incorrect buffer size, 1 bytes overhead                      

Program received signal SIGABRT, Aborted.
0xffffe424 in __kernel_vsyscall ()       
Missing debug package(s), you should install: atk1.0-debug cairo-debug fontconfig-debug freetype2-debug glib2.0-debug glibc-debug gnutls-debug gstreamer0.10-debug gstreamer0.10-plugins-base-debug gtk+2.0-debug libgcrypt-debug libgpg-error-debug liboil-debug libpng-debug libsoup-debug libtasn1-debug libx11-debug libxau-debug libxcb-debug libxcomposite-debug libxcursor-debug libxdamage-debug libxdmcp-debug libxext-debug libxfixes-debug libxi-debug libxinerama-debug libxml2-debug libxrandr-debug libxrender-debug pango-debug pcre-debug pixman-debug zlib-debug
(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7413d90 in raise () from /lib/i686/libc.so.6
#2  0xb74157f8 in abort () from /lib/i686/libc.so.6
#3  0xb7454c93 in ?? () from /lib/i686/libc.so.6
#4  0x00000009 in ?? ()
#5  0xb7533ff4 in ?? () from /lib/i686/libc.so.6
#6  0xb7533ff4 in ?? () from /lib/i686/libc.so.6
#7  0x098047f0 in ?? ()
#8  0x098047f0 in ?? ()
#9  0xb751ab17 in ?? () from /lib/i686/libc.so.6
#10 0xb7456e19 in ?? () from /lib/i686/libc.so.6
#11 0xb7636f96 in g_free () from /usr/lib/libglib-2.0.so.0
#12 0x098047f0 in ?? ()
#13 0xbf9504f8 in ?? ()
#14 0xb7456cb5 in free () from /lib/i686/libc.so.6
Backtrace stopped: frame did not save the PC
(gdb) bt
}}}}

I don't think it's very helpful - do you need anything else?
Comment 3 Benjamin Otte 2008-10-13 06:30:57 UTC
That stack trace looked a lot like corrupted memory, and indeed, valgrind confirmed this.

A fix has been pushed to git master and the 0.8 branch.
Comment 4 Shlomi Fish 2008-10-13 08:25:45 UTC
(In reply to comment #3)
> That stack trace looked a lot like corrupted memory, and indeed, valgrind
> confirmed this.
> 
> A fix has been pushed to git master and the 0.8 branch.
> 

Thanks! Now "make check" passes on Mandriva Cooker.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.