Bug 189421 - multimedia/gstreamer1-libav: firefox crashes in gstreamer-1.0/libgstlibav.so on i386
Summary: multimedia/gstreamer1-libav: firefox crashes in gstreamer-1.0/libgstlibav.so ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 16:10 UTC by Dmitry Afanasiev
Modified: 2014-07-16 10:52 UTC (History)
1 user (show)

See Also:


Attachments
smime.p7s (3.65 KB, application/pkcs7-signature)
2014-05-08 18:55 UTC, Dmitry Afanasiev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Afanasiev 2014-05-07 16:10:00 UTC
On FreeBSD/i386 firefox crashes when displaying html5 video in gstreamer-1.0/libgstlibav.so:

I rebuild gstreamer-1.0/libgstlibav.so with debug info and ran firefox from gdb:
[New Thread 35b6be80 (LWP 101742/firefox)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 35b6be80 (LWP 101742/firefox)]
.text () at libavcodec/x86/h264_deblock.asm:504
504     DEBLOCK_LUMA v, 16
Current language:  auto; currently asm
(gdb) bt
#0  .text () at libavcodec/x86/h264_deblock.asm:504
#1  0x39205025 in loop_filter (h=0x10, start_x=3, end_x=958334224)
    at libavcodec/h264.c:3601
#2  0x39203a5f in decode_slice (avctx=0x36cad980, arg=<value optimized out>)
    at libavcodec/h264.c:3772
#3  0x392035af in execute_decode_slices (h=0x39d39000)
    at libavcodec/h264.c:3840
#4  0x391efb24 in decode_nal_units (h=<value optimized out>, 
    buf=0x3 <Error reading address 0x3: Bad address>, 
    buf_size=<value optimized out>) at libavcodec/h264.c:4129
#5  0x391fec2e in decode_frame (avctx=<value optimized out>, 
    avpkt=<value optimized out>) at libavcodec/h264.c:4219
#6  0x3931fd05 in frame_worker_thread (arg=0x35a2f000)
    at libavcodec/pthread.c:384
#7  0x281795fc in pthread_create () from /lib/libthr.so.3
#8  0x00000000 in ?? ()

firefox version: 29.0,1
gstreamer1-libav version: 1.2.4
Problem does not exists on amd64.

How-To-Repeat: Try to play any video file (f.e. from youtube) in firefox on freebsd10/i386
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-07 16:10:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2014-05-07 17:46:51 UTC
Hi,

What cpu model do you have?
Comment 3 Dmitry Afanasiev 2014-05-08 12:52:24 UTC
Hello!

> What cpu model do you have?
I got this problem on AMD C-60 CPU and Xeon E5345.
World and kernel build from stable/10 r264761, ports revision 352970.

But I'm confused. I rebuilded multimedia/gstreamer1-libav on i386 
chrooted environment on amd64 system (Xeon E5450), created package, 
installed this package back to full i386 system with E5345. After this 
firefox works correctly.
System's and ports revision are identical on amd64 and i386 systems.
It's too strange for me.

I will try to rebuild again multimedia/gstreamer1-libav on my C-60 CPU.
Comment 4 Dmitry Afanasiev 2014-05-08 18:55:24 UTC
On 08.05.2014 15:52, Dmitry Afanasiev wrote:

>> What cpu model do you have?
> I got this problem on AMD C-60 CPU and Xeon E5345.
> World and kernel build from stable/10 r264761, ports revision 352970.
>
> But I'm confused. I rebuilded multimedia/gstreamer1-libav on i386
> chrooted environment on amd64 system (Xeon E5450), created package,
> installed this package back to full i386 system with E5345. After this
> firefox works correctly.
> System's and ports revision are identical on amd64 and i386 systems.
> It's too strange for me.
>
> I will try to rebuild again multimedia/gstreamer1-libav on my C-60 CPU.

I remembered difference between hosts - working gstreamer1-libav was 
build on host with GCC as system compiler.
I tried gstreamer1-libav compiled by gcc on AMD C-60 and it working 
properly.
I think problems may be related to clang.
Comment 5 Tijl Coosemans freebsd_committer freebsd_triage 2014-07-16 10:52:22 UTC
Fixed in r361776.