ports/180855: Firefox 22 crashes on HTML 5 videos

Alexander Shikov alexander.shikoff at gmail.com
Thu Jul 25 20:10:00 UTC 2013


>Number:         180855
>Category:       ports
>Synopsis:       Firefox 22 crashes on HTML 5 videos
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 25 20:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Shikov
>Release:        10-CURRENT
>Organization:
>Environment:
FreeBSD crete.itcons.net.ua 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r253613: Wed Jul 24 19:17:04 EEST 2013     root at crete.itcons.net.ua:/usr/obj/usr/src/sys/CRETE  i386

>Description:
On my test box I have firefox-22.0,1 compiled with options:
OPTIONS_FILE_SET+=DBUS
OPTIONS_FILE_SET+=GCONF
OPTIONS_FILE_SET+=GIO
OPTIONS_FILE_SET+=GSTREAMER
OPTIONS_FILE_SET+=LOGGING
OPTIONS_FILE_SET+=ALSA

Firefox always crashes when trying to play HTML5 video. 
I've discovered two different types of crashes. First one relates to GStreamer support:

# firefox
Bus error(записано core)
# gdb /usr/local/bin/firefox firefox.core

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `firefox'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcxxrt.so.1
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
[...]
Loaded symbols for /usr/local/lib/gstreamer-0.10/libgstaudioresample.so
Reading symbols from /usr/local/lib/liborc-test-0.4.so.0...done.
Loaded symbols for /usr/local/lib/liborc-test-0.4.so.0
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x359d8022 in ff_h264_init_cabac_states (h=<value optimized out>) at libavcodec/h264_cabac.c:1270
1270        for( i= 0; i < 1024; i++ ) {
[New Thread 33284580 (LWP 101251/firefox)]
[New Thread 33283b80 (LWP 101250/firefox)]
[New Thread 2f44ff80 (LWP 101249/firefox)]
[New Thread 2f44fd00 (LWP 101248/firefox)]
[New Thread 2f0aed00 (LWP 101247/firefox)]
[New Thread 2f076480 (LWP 101246/Media Decode)]
[New Thread 2f076200 (LWP 100794/Media State)]
[New Thread 2f077380 (LWP 100792/firefox)]
[New Thread 28504280 (LWP 100790/mozStorage #7)]
[New Thread 2ffbb480 (LWP 100789/StreamTrans #2)]
[New Thread 3179ca80 (LWP 100633/DNS Resolver #3)]
[New Thread 30c19a00 (LWP 101234/DOM Worker)]
[New Thread 33170180 (LWP 101233/Analysis Helper)]
[New Thread 2f135700 (LWP 101232/mozStorage #6)]
[New Thread 325c5980 (LWP 101231/mozStorage #5)]
[New Thread 318c0d00 (LWP 101151/DNS Resolver #2)]
[New Thread 318bfb80 (LWP 101145/DNS Resolver #1)]
[New Thread 31158d00 (LWP 101144/Proxy Resolution)]
[New Thread 318c0080 (LWP 101142/mozStorage #4)]
[New Thread 318bdb00 (LWP 101141/URL Classifier)]
[New Thread 318bd880 (LWP 101139/Cert Verify)]
[New Thread 31153800 (LWP 101125/mozStorage #3)]
[New Thread 31157e00 (LWP 101124/mozStorage #2)]
[New Thread 30c1d880 (LWP 101123/mozStorage #1)]
[New Thread 31154e80 (LWP 101120/Image Scaler)]
[New Thread 2ffbaa80 (LWP 101119/firefox)]
[New Thread 304dd280 (LWP 101058/ImageDecoder #1)]
[New Thread 2ffbaf80 (LWP 101017/HTML5 Parser)]
[New Thread 2f451380 (LWP 100995/Cache I/O)]
[New Thread 2f0af480 (LWP 100901/DOM Worker)]
[New Thread 2f0acc80 (LWP 100760/Timer)]
[New Thread 28504f00 (LWP 100734/JS Watchdog)]
[New Thread 28504c80 (LWP 100718/firefox)]
[New Thread 28504780 (LWP 100704/JS GC Helper)]
[New Thread 28503100 (LWP 100701/Hang Monitor)]
[New Thread 28502c00 (LWP 100641/Socket Thread)]
[New Thread 28501d00 (LWP 100564/Gecko_IOThread)]
[New Thread 28501080 (LWP 101054/firefox)]
(gdb) where
#0  0x359d8022 in ff_h264_init_cabac_states (h=<value optimized out>) at libavcodec/h264_cabac.c:1270
#1  0x359d4c0b in decode_slice (avctx=0x336f2000, arg=0xbd7db3a4) at libavcodec/h264.c:3428
#2  0x359d4a3a in execute_decode_slices (h=0x3429a000, context_count=<value optimized out>) at libavcodec/h264.c:3605
#3  0x359c1d39 in decode_nal_units (h=0x35d65ff0, buf=0x28522980 "", buf_size=766) at libavcodec/h264.c:3854
#4  0x359d1066 in decode_frame (avctx=<value optimized out>, data_size=<value optimized out>, avpkt=0xbd7db570) at libavcodec/h264.c:3929
#5  0x35b480bb in avcodec_decode_video2 (avctx=<value optimized out>, picture=<value optimized out>, got_picture_ptr=0xbd7db5c4, avpkt=0xbd7db570)
    at libavcodec/utils.c:691
#6  0x358574cf in .text () from /usr/local/lib/gstreamer-0.10/libgstffmpeg.so
#7  0x35855512 in .text () from /usr/local/lib/gstreamer-0.10/libgstffmpeg.so
#8  0x2bad029f in gst_pad_chain_data_unchecked (pad=0x0, is_buffer=1, data=0x34192280, cache=0xbd7db850) at gstpad.c:4271
#9  0x2bad0b10 in gst_pad_push_data (pad=0x336fd6a0, is_buffer=1, data=0x34192280, cache=0xbd7db850) at gstpad.c:4506
#10 0x2bad87a7 in gst_pad_push (pad=0x336fd6a0, buffer=0x34192280) at gstpad.c:4730
#11 0x2ba6077f in gst_base_transform_chain (pad=0x336fd5c0, buffer=0x34192280) at gstbasetransform.c:2674
#12 0x2bad029f in gst_pad_chain_data_unchecked (pad=0x336fd5c0, is_buffer=1, data=0x34192280, cache=0xbd7db9e0) at gstpad.c:4271
#13 0x2bad0b10 in gst_pad_push_data (pad=0x336fd400, is_buffer=1, data=0x34192280, cache=0xbd7db9e0) at gstpad.c:4506
#14 0x2bad87a7 in gst_pad_push (pad=0x336fd400, buffer=0x34192280) at gstpad.c:4730
#15 0x2ba3894f in gst_base_parse_push_frame (parse=0x2f2cde00, frame=0x2f2ce5f4) at gstbaseparse.c:1988
#16 0x2ba3f2bd in gst_base_parse_chain (pad=0x336fd320, buffer=0x34192280) at gstbaseparse.c:2324
#17 0x34f0c583 in gst_h264_parse_chain (pad=0x336fd320, buffer=0x34192280) at gsth264parse.c:1916
#18 0x2bad029f in gst_pad_chain_data_unchecked (pad=0x336fd320, is_buffer=1, data=0x34192280, cache=0xbd7dbdc0) at gstpad.c:4271
#19 0x2bad0b10 in gst_pad_push_data (pad=0x336fd240, is_buffer=1, data=0x34192280, cache=0xbd7dbdc0) at gstpad.c:4506
#20 0x2bad87a7 in gst_pad_push (pad=0x336fd240, buffer=0x34192280) at gstpad.c:4730
#21 0x34341844 in gst_multi_queue_loop (pad=0x336fd240) at gstmultiqueue.c:1087
#22 0x2bafd8f2 in gst_task_func (task=0x34e3e8e0) at gsttask.c:327
#23 0x2bafecc3 in default_func (tdata=0x32de5bd8, pool=0x2fdfbe40) at gsttaskpool.c:70
#24 0x2b1b33e7 in g_thread_pool_get_max_idle_time () from /usr/local/lib/libglib-2.0.so.0
#25 0x2b1b24cd in g_thread_proxy () from /usr/local/lib/libglib-2.0.so.0
#26 0x28199656 in pthread_create () from /lib/libthr.so.3
#27 0x00000000 in ?? ()
Current language:  auto; currently minimal


The second one produces different crash dump:
# firefox
Assertion failed: (wrote >= 0 && wrote == got), function alsa_refill_stream, file /usr/ports/www/firefox/work/mozilla-release/media/libcubeb/src/cubeb_alsa.c, line 319.
Аварійне завершення(записано core)

# gdb /usr/local/bin/firefox firefox.core 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `firefox'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcxxrt.so.1
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
[...]
Reading symbols from /usr/local/lib/alsa-lib/libasound_module_pcm_oss.so...done.
Loaded symbols for /usr/local/lib/alsa-lib/libasound_module_pcm_oss.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x28209bfb in thr_kill () from /lib/libc.so.7
[New Thread 33027980 (LWP 101009/Media Audio)]
[New Thread 33026080 (LWP 101256/firefox)]
[New Thread 33a34600 (LWP 101253/firefox)]
[New Thread 30c9c280 (LWP 101005/mozStorage #8)]
[New Thread 33a39600 (LWP 100974/firefox)]
[New Thread 33a38c00 (LWP 100973/firefox)]
[New Thread 33ed1880 (LWP 100972/firefox)]
[New Thread 30311280 (LWP 100971/firefox)]
[New Thread 2f0b0d00 (LWP 100970/firefox)]
[New Thread 2fd9ae00 (LWP 100968/Media State)]
[New Thread 2eecb480 (LWP 100967/firefox)]
[New Thread 2eecb200 (LWP 100966/mozStorage #7)]
[New Thread 28504280 (LWP 100965/ImageDecoder #2)]
[New Thread 2ffc3480 (LWP 100445/StreamTrans #2)]
[New Thread 2ffc2580 (LWP 100832/DOM Worker)]
[New Thread 32afba00 (LWP 100831/Analysis Helper)]
[New Thread 32519200 (LWP 100830/mozStorage #6)]
[New Thread 32518300 (LWP 100829/mozStorage #5)]
[New Thread 2eeca580 (LWP 100826/DNS Resolver #3)]
[New Thread 2eeca300 (LWP 100825/DNS Resolver #2)]
[New Thread 3188db80 (LWP 100824/DNS Resolver #1)]
[New Thread 3114ed00 (LWP 100821/Proxy Resolution)]
[New Thread 3188d400 (LWP 100820/mozStorage #4)]
[New Thread 31857d80 (LWP 100819/URL Classifier)]
[New Thread 31857b00 (LWP 100818/Cert Verify)]
[New Thread 3149a600 (LWP 100817/mozStorage #3)]
[New Thread 3114de00 (LWP 100816/mozStorage #2)]
[New Thread 30df0880 (LWP 100815/mozStorage #1)]
[New Thread 30c02e80 (LWP 100808/Image Scaler)]
[New Thread 2ffc2a80 (LWP 100805/firefox)]
[New Thread 2ffc2f80 (LWP 100801/HTML5 Parser)]
[New Thread 2f5af380 (LWP 100800/Cache I/O)]
[New Thread 2f0b1480 (LWP 100796/DOM Worker)]
[New Thread 2f0aec80 (LWP 100729/Timer)]
[New Thread 28504f00 (LWP 100727/JS Watchdog)]
[New Thread 28504c80 (LWP 100587/firefox)]
[New Thread 28504780 (LWP 100586/JS GC Helper)]
[New Thread 28503100 (LWP 100584/Hang Monitor)]
[New Thread 28502c00 (LWP 100583/Socket Thread)]
[New Thread 28501d00 (LWP 100582/Gecko_IOThread)]
[New Thread 28501080 (LWP 100574/firefox)]
(gdb) where
#0  0x28209bfb in thr_kill () from /lib/libc.so.7
#1  0x2819e98b in raise () from /lib/libthr.so.3
#2  0x288acb99 in XRE_InstallX11ErrorHandler () from /usr/local/lib/firefox/libxul.so
#3  0x2819f345 in swapcontext () from /lib/libthr.so.3
#4  0x2819edc8 in sigaction () from /lib/libthr.so.3
#5  0xbfbff044 in ?? ()
#6  0x00000006 in ?? ()
#7  0xbd2d6e50 in ?? ()
#8  0xbd2d6b90 in ?? ()
#9  0x00000000 in ?? ()


Test were performed on 10-CURRENT.
>How-To-Repeat:
Compile Firefox 22 from ports tree on 10-CURRENT.
1st type of crash:
visit http://www.w3.org/2010/05/video/mediaevents.html and start playing of video.

2nd type of crash:
visit http://html5demos.com/video and press "Play" button.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list