Bug 204354 - www/firefox: crashes when playing HTML5 video on i386
Summary: www/firefox: crashes when playing HTML5 video on i386
Status: Closed DUPLICATE of bug 205958
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Some People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-07 07:35 UTC by Dmitry Afanasiev
Modified: 2016-01-22 13:09 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Afanasiev 2015-11-07 07:35:58 UTC
I have FreeBSD 10.2-STABLE r289418, ports tree r399880,
firefox-41.0.2,1 with ffmpeg-2.8_1,1 as dependency.

On i386 architecture firefox crashes when playing any HTML5 video.
On amd64 with same revision level I have no this problem.

I started firefox from gdb I got this output:
Program received signal SIGBUS, Bus error.
[Switching to Thread 3e416780 (LWP 101066/firefox)]
0x4577a632 in avpriv_vorbis_parse_frame_flags ()
   from /usr/local/lib/libavcodec.so.56
(gdb) bt
#0  0x4577a632 in avpriv_vorbis_parse_frame_flags ()
   from /usr/local/lib/libavcodec.so.56
#1  0x281c4b00 in pthread_getspecific () from /lib/libthr.so.3
Previous frame inner to this frame (corrupt stack?)
(gdb) 

firefox build with this options:
===> The following configuration options are available for firefox-41.0.2,1:
     BUNDLED_CAIRO=off: Use bundled fork of cairo-1.9.5
     CANBERRA=off: Sound theme alerts
     DBUS=on: D-Bus IPC system support
     DEBUG=off: Build with debugging support
     DTRACE=off: Build with DTrace probes
     GCONF=off: GConf configuration backend support
     GIO=off: Use GIO for file I/O
     GNOMEUI=off: libgnomeui support module
     GSTREAMER=on: Multimedia support via GStreamer
     INTEGER_SAMPLES=off: Integer audio sample format
     LIBPROXY=off: Proxy support via libproxy
     OPTIMIZED_CFLAGS=on: Use extra compiler optimizations
     PGO=off: Use Profile-Guided Optimization
     PROFILE=off: Build with profiling support
     TEST=off: Build and/or run tests
====> Options available for the multi AUDIO: you have to choose at least one of them
     ALSA=on: ALSA audio architecture support
     PULSEAUDIO=off: PulseAudio sound server support
====> Options available for the single TOOLKIT: you have to select exactly one of them
     GTK2=on: GTK+ 2 GUI toolkit support
     GTK3=off: GTK+ 3 GUI toolkit support
===> Use 'make config' to modify these settings

ffmpeg build with this options:
===> The following configuration options are available for ffmpeg-2.8_1,1:
     AACPLUS=off: AAC support via libaacplus
     ALSA=on: ALSA audio architecture support
     AMR_NB=off: AMR Narrow Band audio support (opencore)
     AMR_WB=off: AMR Wide Band audio support (opencore)
     ASS=off: Subtitles rendering via libass
     CDIO=off: Audio CD grabbing with libcdio
     CELT=off: CELT audio codec support
     DEBUG=off: Build with debugging support
     DOCS=off: Build and/or install documentation
     FAAC=on: FAAC AAC encoder support
     FDK_AAC=off: AAC audio encoding via Fraunhofer FDK
     FFSERVER=off: Build and install ffserver
     FONTCONFIG=on: X11 font configuration support
     FREETYPE=on: TrueType font rendering support
     FREI0R=off: Frei0r video plugins support
     GSM=on: GSM codec support
     ICONV=on: Encoding conversion support via iconv
     JACK=off: JACK audio server support
     LAME=on: LAME MP3 audio encoder support
     LIBBLURAY=off: Blu-ray discs support via libbluray
     LIBV4L=on: Video for Linux support
     MMX=on: Use MMX optimized routines
     MODPLUG=off: ModPlug decoder support
     OPENAL=off: Audio support via OpenAL
     OPENCV=off: Computer Vision support via OpenCV
     OPENH264=off: H.264 video codec support via OpenH264
     OPENJPEG=on: Enhanced JPEG graphics support
     OPTIMIZED_CFLAGS=on: Use extra compiler optimizations
     OPUS=on: Opus audio codec support
     PULSEAUDIO=off: PulseAudio sound server support
     RTMP=off: RTMP protocol support via librtmp
     SCHROEDINGER=off: Dirac video codec support via libschroedinger
     SDL=on: Simple Direct Media Layer support
     SMB=off: SMB network protocol support
     SPEEX=on: Speex audio format support
     SSE=on: Use SSE optimized routines
     THEORA=on: Ogg Theora video codec support
     VAAPI=off: VAAPI (GPU video acceleration) support
     VDPAU=on: VDPAU (GPU video acceleration) support
     VORBIS=on: Ogg Vorbis audio codec support
     VO_AACENC=off: AAC audio encoding via vo-aacenc
     VO_AMRWBENC=off: AMR Wide Band encoding via vo-amrwbenc
     VPX=on: VP8/VP9 video codec support
     X11GRAB=off: Enable x11 grabbing
     X264=on: H.264 video codec support via x264
     X265=off: H.265 video codec support via x265
     XVID=on: Xvid MPEG-4 video codec support
====> Licensing options
     GPL3=on: Allow (L)GPL version 3 code(cs)
     NONFREE=on: Allow use of nonfree code
====> SSL protocol support: you have to select exactly one of them
     GNUTLS=off: SSL/TLS support via GnuTLS
     OPENSSL=on: SSL/TLS support via OpenSSL
===> Use 'make config' to modify these settings
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2016-01-14 07:06:39 UTC
> SSE=on: Use SSE optimized routines
Try to turn off SSE in ffmpeg.
Comment 2 Dmitry Afanasiev 2016-01-22 08:53:24 UTC
I updated ports to 406736r and updated ffmpeg to 2.8.5,1 and firefox to 43.0.4_1,1 and still have this issue.
But with SSE=off for multimedia/ffmpeg firefox can properly play youtube videos.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2016-01-22 12:22:39 UTC
> But with SSE=off for multimedia/ffmpeg firefox can properly play youtube videos.
Bug in multimedia/ffmpeg on i386.

One more example: sometimes my vlc crashes with multimedia/ffmpeg SSE=on too, but work perfect with multimedia/ffmpeg SSE=off.
Comment 4 Dmitry Afanasiev 2016-01-22 13:09:52 UTC
I think, in this case my bug may be marked as duplicate for Bug 205958.

*** This bug has been marked as a duplicate of bug 205958 ***