Bug 13692

Summary: Crash with floating point exception from Firefox
Product: swfdec Reporter: Rafał Miłecki <zajec5polish>
Component: pluginAssignee: swfdec ml <swfdec>
Status: RESOLVED FIXED QA Contact: swfdec ml <swfdec>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://www.konar.ict.pwr.wroc.pl/zawody/flash.html
Whiteboard:
i915 platform: i915 features:
Attachments: Recording of crash
Diag. output of strace of crashing Firefox
Debug of crash (I hope it is)

Description Rafał Miłecki 2007-12-16 13:55:38 UTC
Flash animation loads some data and when downloading is finished, Firefox crashes.

firefox http://www.konar.ict.pwr.wroc.pl/zawody/flash.html

(firefox-bin:4078): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

(gecko:4078): Gdk-WARNING **: locale not supported by C library
Unsupported movie property quality with value "high"
Unsupported movie property pluginspage with value "http://www.macromedia.com/go/getflashplayer"
Unsupported movie property play with value "true"
Unsupported movie property loop with value "true"
Unsupported movie property wmode with value "window"
Unsupported movie property devicefont with value "false"
Unsupported movie property name with value "zawody"
Unsupported movie property menu with value "true"
Unsupported movie property allowfullscreen with value "false"
Unsupported movie property allowscriptaccess with value "sameDomain"
Unsupported movie property align with value "middle"
unhandled event 19
Loading stream: http://www.konar.ict.pwr.wroc.pl/zawody/zawody.swf
SWFDEC: ERROR: swfdec_image.c(125): tag_func_define_bits_jpeg: No global JPEG tables available
SWFDEC: ERROR: swfdec_image.c(125): tag_func_define_bits_jpeg: No global JPEG tables available
SWFDEC: ERROR: swfdec_image.c(125): tag_func_define_bits_jpeg: No global JPEG tables available
SWFDEC: ERROR: swfdec_image.c(125): tag_func_define_bits_jpeg: No global JPEG tables available
SWFDEC: ERROR: swfdec_image.c(125): tag_func_define_bits_jpeg: No global JPEG tables available
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 8192
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 20480
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 2048
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 8192
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 20480
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 2048
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 8192
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 20480
SWFDEC: ERROR: swfdec_sprite_movie.c(288): swfdec_sprite_movie_perform_place: using non-implemented clip events 2048
/usr/bin/firefox: line 208:  4078 Floating point exception$MOZ_PROGRAM "$@"
Comment 1 Benjamin Otte 2007-12-16 14:16:25 UTC
How did you get that? Just trying to play the file?

And a stack trace would be nice.
Comment 2 Rafał Miłecki 2007-12-16 15:31:36 UTC
Created attachment 13148 [details]
Recording of crash

Recorded crash (Ogg Theora format).
Comment 3 Rafał Miłecki 2007-12-16 15:37:42 UTC
Created attachment 13149 [details]
Diag. output of strace of crashing Firefox

strace firefox http://www.konar.ict.pwr.wroc.pl/zawody/flash.html 2> konar.firefox.swfdec.strace.log
Comment 4 Pekka Lampila 2007-12-17 08:51:56 UTC
I couldn't reproduce this crash. Tried with git and 0.5.4 versions

What swfdec and Firefox versions are you using?

To get a backtrace try:
firefox -g http://www.konar.ict.pwr.wroc.pl/zawody/flash.html
then after it crashes you can do:
bt full
and post the output here

Thank you.
Comment 5 Rafał Miłecki 2007-12-17 09:41:32 UTC
My versions are 0.5.4 and 2.0.0.10:

zajec@acer:~> rpm -qa | grep 'swfdec'
libswfdec-gtk2-devel-0.5.4-0.pm.2
swfdec-gnome-0.5.4-0.pm.2
libswfdec-devel-0.5.4-0.pm.2
swfdec-tools-0.5.4-0.pm.2
libswfdec-gtk2_4-0.5.4-0.pm.2
libswfdec4-debuginfo-0.5.4-0.pm.2
swfdec-gnome-0.5.4-0.pm.1
swfdec-browser-plugin-0.5.4-0.pm.2
libswfdec4-0.5.4-0.pm.2
zajec@acer:~> rpm -qa | grep 'Firefox'
MozillaFirefox-translations-2.0.0.10-0.1
MozillaFirefox-2.0.0.10-0.1
zajec@acer:~> firefox --version
Mozilla Firefox 2.0.0.10, Copyright (c) 1998 - 2007 mozilla.org

Unfortunately I can not use "bt" or "backtrace" tools. Both commands are unavailable in my openSUSE 10.3. I also couldn't find RPM caller "bt" or "backtrace".

I found some help for Ubuntu: https://wiki.ubuntu.com/Backtrace but all I get is this error:

zajec@acer:~> gdb firefox 2>&1 | tee gdb-firefox.txt
GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
"/usr/bin/firefox": not in executable format: File format not recognized
Comment 6 Pekka Lampila 2007-12-17 11:28:06 UTC
Thank you for the information.

I'm sorry my explanation about getting a backtrace was bad. Firefox is somewhat special, so the Ubuntu HOWTO doesn't work directly. But if you use "firefox -g 2>&1 | tee gdb-firefox.txt" instead of "gdb firefox 2>&1 | tee gdb-firefox.txt" it should work correctly. Just remember to shutdown all Firefox windows before doing this.
Comment 7 Rafał Miłecki 2007-12-17 14:47:26 UTC
Created attachment 13170 [details]
Debug of crash (I hope it is)

What I did:
1) Closed Firefox and made sure there is not firefox process in system
2) Used firefox -g 2>&1 | tee gdb-firefox.txt
3) Entered http://www.konar.ict.pwr.wroc.pl/zawody/flash.html and activated animation
4) Saw Firefox crashing ;)
Comment 8 Rafał Miłecki 2007-12-17 14:49:45 UTC
Thanks for explaining and being patient, I don't really know much about debugging :) I provided gdb-firefox.txt, if anything else is needed, just let me know.
Comment 9 Pavel Roskin 2008-01-22 14:42:11 UTC
Everything seems to be fine now.
Comment 10 Rafał Miłecki 2008-01-27 08:02:13 UTC
(In reply to comment #9)
> Everything seems to be fine now.

I updated SWFDEC to 0.5.5, is still happens.

Comment 11 Riccardo Magliocchetti 2008-04-11 09:11:00 UTC
Rafał, can you retry with 0.6.4 please?
Comment 12 Rafał Miłecki 2008-04-22 00:07:21 UTC
I updated swfdec to 0.6.4. It works fine now.

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.