Closed Bug 745514 Opened 13 years ago Closed 9 years ago

viewing large png image in firefox crashes Xserver

Categories

(Core :: Widget: Gtk, defect)

11 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jph4dotcom, Unassigned)

Details

Attachments

(3 files)

I created a PNG image using bootchart and I tried to view it in Firefox. Loading took 2 maybe 3 seconds, during load the entire Xserver crashes and desktop session restarts. Reproducable, every time I try to load the image in Firefox my Xsession crashes. ImageMagick's display and gwenview display the image fine. System: Kubuntu 11.10, fully patched until 14-4-2012. Not sure if the problem existed before. Potentially DoS if such an image is hosted on a website, therefore marked as security problem.
Component: General → ImageLib
Product: Firefox → Core
QA Contact: general → imagelib
What version of Firefox were you using?
The short answer is 11.0 firefox 11.0+build1-0ubuntu0.11.10.1 firefox-globalmenu 11.0+build1-0ubuntu0.11.10.1 firefox-kde-support 0.6.2-0ubuntu2 kubuntu-firefox-installer 11.10ubuntu1 xul-ext-ubufox 1.0.3-0ubuntu1
Component: ImageLib → General
Product: Core → Firefox
This feels a lot like a dupe, but I can't find one. In short, this is probably a driver bug caused by our image optimization (uploading directly to the X server). You can work around it by setting MOZ_DISABLE_IMAGE_OPTIMIZE to 1 in your environment.
Group: core-security
Component: General → Disability Access APIs
Product: Firefox → Core
QA Contact: imagelib → accessibility-apis
Component: Disability Access APIs → Widget: Gtk
QA Contact: accessibility-apis → gtk
> [ 33838.347] 3: /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x7fc6a9c4b000+0x43b30) [0x7fc6a9c8eb30] > [ 33838.347] 4: /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x7fc6a9c4b000+0x3f406) [0x7fc6a9c8a406] > [ 33838.347] 5: /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x7fc6a9c4b000+0x30f2b) [0x7fc6a9c7bf2b] If you are able to install the debuginfo packages for (lib)pixman, then addr2line may provide some more clues. something like > addr2line -if -e /usr/lib/debug/usr/lib/x86_64-linux-gnu/libpixman-1.so.0.24.4.debug 0x43b30 but this looks like a bug in pixman or xorg-server or maybe xf86-video-intel. I haven't managed to reproduce when using fb drivers.
I know may way around on Linux, but I'm far from a C++ developer/troubleshooter. That being said, please bear with me trying my best to give useful information. I installed the following package: > libpixman-1-0-dbg - pixel-manipulation library for X and cairo (debugging symbols) Notice the filename is different from what you proposed: > $ laddr2line -if -e /usr/lib/debug/usr/lib/x86_64-linux-gnu/libpixman-1.so.0.22.2 0x43b30 > bits_image_fetch_bilinear_affine > /build/buildd/pixman-0.22.2/build/pixman/../../pixman/pixman-bits-image.c:824 > bits_image_fetch_bilinear_affine_pad_x8r8g8b8 > /build/buildd/pixman-0.22.2/build/pixman/../../pixman/pixman-bits-image.c:1042
Yes, that's right, but that info doesn't really narrow down the cause much. I'd suggest filing a bug against xf86-video-intel, as a best guess.
I see I skipped two lines in my answer: > $ addr2line -if -e /usr/lib/debug/usr/lib/x86_64-linux-gnu/libpixman-1.so.0.22.2 0x3f406 > src_get_scanline_narrow > /build/buildd/pixman-0.22.2/build/pixman/../../pixman/pixman-bits-image.c:1352 > $ addr2line -if -e /usr/lib/debug/usr/lib/x86_64-linux-gnu/libpixman-1.so.0.22.2 0x30f2b > general_composite_rect > /build/buildd/pixman-0.22.2/build/pixman/../../pixman/pixman-general.c:208 Are you sure you mean 'xf86-video-intel'? I don't see such a module being loaded in Xorg.0.log. Shouldn't it exist as a file on my PC?
The associated file is /usr/lib/xorg/modules/drivers/intel_drv.so. Some distributions may give the package a different name.
I am also seeing this bug, for JPG images. (Based on the similarity, I'm posting here instead of filing a new bug report) My system is i686 Sempron, NVidia card, Debian-8.2 nouveau driver. (Not intel driver as reported above.) When browsing the web, my X server crashed and I was dumped out to the login screen. After having it happen to more than one file, I started investigating whether or not the page or the image was infected. I narrowed it down to the image, and after proving I can load and view the image without problem in gimp, feh, and ristretto; I saved a couple images in gimp and found they too crashed my X session when loaded in newer browsers Iceweasel-38.2 and current Iceweasel-38.4 and Seamonkey-2.33. The crash does not occur with older browser Seamonkey-1.1. http://seahorseCorral.org/images/tests/4356-BadCrashes-export2.jpg
It also happens when opening https://de.wikipedia.org/wiki/Venezuela on UltraHD in fullscreen, only on Linux (Mint 17.3 x64 in this case). Single/dual head is not the problem, on Windows, things are fine as well. Memory should not be the problem either (12 GB, just checked). On Chromium/Linux, there is also no problem...
(In reply to rudolphi from comment #12) > It also happens when opening https://de.wikipedia.org/wiki/Venezuela on > UltraHD in fullscreen, only on Linux (Mint 17.3 x64 in this case). > Single/dual head is not the problem, on Windows, things are fine as well. > Memory should not be the problem either (12 GB, just checked). On > Chromium/Linux, there is also no problem... In FF43, the first click is ok, but when going back and clicking again, it still crashes the Xserver. Then, the problematic page will try to display again on startup, and you have to fiddle it away, as not even the "Oops,..." page is displayed on fresh startup, but rather the previous set of tabs tries to load :-(
works for me with default theme on Ubuntu 16.04 with Nightly 51.0a1, 20160823030224
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
works for me now. I'll assume it was resolved in one of the debian package security fixes.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: