firefox crash when loading page

Bug #23392 reported by axel c.
8
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Invalid
High
Unassigned

Bug Description

firefox crashes when loading the url pasted above.

I'm using firefox 1.0.6-1ubuntu13

Output of firefox --sync:

 % firefox --sync http://people.redhat.com/alexl/files/offscreen3.html
The program 'Gecko' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 121 error_code 8 request_code 146 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

http://people.redhat.com/alexl/files/offscreen3.html: http://people.redhat.com/alexl/files/offscreen3.html

Revision history for this message
axel c. (axel-banzais) wrote :

Created an attachment (id=4404)
strace of firefox up to crash

Revision history for this message
Ian Jackson (ijackson) wrote :

This works fine for me.

On the first run it displays the jigsaw piece `missing plugin' icon. If I click
that and go through the motions of installing Flash, it then displays the
animation which looks like a Cairo UI demo. On the second run it displays the
animation immediately. There is no crash.

I think this bug is probably caused by an extension, plugin or corrupted
profile. Could you please try it with a fresh profile (move .mozilla aside) and
no extensions, and then reopen the bug (or just comment) if you can reproduce it
then.

Revision history for this message
axel c. (axel-banzais) wrote :

Ok, it's the old problem with the flash plugin, i made the page not crash by
putting export XLIB_SKIP_ARGB_VISUALS=1 at the beginning of /usr/bin/firefox.

Thanks

Revision history for this message
Ian Jackson (ijackson) wrote :

You shouldn't need to set any weird environment variables, obviously. I'm
afraid I don't know what `old problem' you're referring to. Something before I
took over firefox, no doubt. Would you care to fill me in ? Maybe emailing me
directly would be best, or you could catch me on #ubuntu-devel.

Thanks.

Revision history for this message
axel c. (axel-banzais) wrote :

The problem seems to be related with Xorg compositing extension and the firefox
flash plugin. There used to be an ubuntu (hoary) bug open about this issue but I
can't seem to find it anymore using the search tool, sorry.

This seems to happen only when you enable compositing in xorg.conf...

Some background on the topic:

http://blog.hulboj.org/archive/2005_09_01_mhulboj_archive.html (grep for 'Xorg
X11 + Composite module + Firefox flashplugin')
http://gentoo-wiki.com/TIP_Xorg_X11_and_Transparency (grep for 'Mozilla
(Firefox) crash Issue with Flash')
http://gnomesupport.org/forums/viewtopic.php?t=8175&sid=ee4200f99ec2df26d8359280880e612d

Revision history for this message
Ian Jackson (ijackson) wrote :

Thanks. I've also had a useful IRC conversation with Daniel Silverstone about
this. I will see what I can do about it.

Revision history for this message
Thomas Hood (jdthood) wrote :

(In reply to comment #0)
> firefox crashes when loading the url pasted above.
>
> I'm using firefox 1.0.6-1ubuntu13
>
> Output of firefox --sync:
>
> % firefox --sync http://people.redhat.com/alexl/files/offscreen3.html
> The program 'Gecko' received an X Window System error.
> This probably reflects a bug in the program.
> The error was 'BadMatch (invalid parameter attributes)'.
> (Details: serial 121 error_code 8 request_code 146 minor_code 3)
> (Note to programmers: normally, X errors are reported asynchronously;
> that is, you will receive the error a while after causing it.
> To debug your program, run it with the --sync command line
> option to change this behavior. You can then get a meaningful
> backtrace from your debugger if you break on the gdk_x_error() function.)

I get exactly the same error message with version 1.0.7-0ubuntu20 loading many
different corporate web pages.

Running firefox in gdb and loading the URL given above I get:

(gdb) continue
Continuing.

Program received signal SIG33, Real-time event 33.
[Switching to Thread -1272378448 (LWP 7935)]
0xffffe410 in ?? ()
(gdb) bt
#0 0xffffe410 in ?? ()
#1 0xb429037c in ?? ()
#2 0x00000005 in ?? ()
#3 0x00000000 in ?? ()
#4 0xb7e42f0c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#5 0xb7e7d727 in PR_Lock () from /usr/lib/mozilla-firefox/libnspr4.so
#6 0xb7e7da76 in PR_WaitCondVar () from /usr/lib/mozilla-firefox/libnspr4.so
#7 0xb71dd26d in NSGetModule ()
   from /usr/lib/mozilla-firefox/components/libnecko.so
#8 0xb71dda2f in NSGetModule ()
   from /usr/lib/mozilla-firefox/components/libnecko.so
#9 0xb7e82c85 in PR_Select () from /usr/lib/mozilla-firefox/libnspr4.so
#10 0xb7e40361 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb76bcbde in clone () from /lib/tls/i686/cmov/libc.so.6

Running firefox in gdb and loading www.tiscali.nl or www.ford.com I get:

(gdb) continue
Continuing.
[New Thread -1264194640 (LWP 8128)]
[Thread -1264194640 (LWP 8128) exited]

Program exited with code 01.
(gdb)

Revision history for this message
Thomas Hood (jdthood) wrote :

I should mention that disabling JavaScript cures the problem in most cases.

Also significant: the problem afflicts mozilla and galeon too. If I load
http://people.redhat.com/alexl/files/offscreen3.html in galeon then the
message is:

$ galeon
plugin_get_value 1
plugin_get_value 2
The program 'galeon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 121 error_code 8 request_code 146 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Again, turning off JavaScript helps.

Revision history for this message
Thomas Hood (jdthood) wrote :

This bug makes firefox hardly usable on affected systems.
I have been forced to switch to opera.

Revision history for this message
Thomas Hood (jdthood) wrote :

Purging flashplugin-nonfree and restarting firefox solved the problem for me.

Revision history for this message
Thomas Hood (jdthood) wrote :

Created an attachment (id=4763)
jdthood's xdpyinfo output

Revision history for this message
Thomas Hood (jdthood) wrote :

Withflashplugin-nonfree installed and JavaScript enabled, I find
that firefox doesn't terminate if I set XLIB_SKIP_ARGB_VISUALS=1
in the environment. I'll run like this for a while and report
back here.

Revision history for this message
Ian Jackson (ijackson) wrote :

This bug has been marked as a duplicate of bug 14911.

Ian Jackson (ijackson)
Changed in firefox:
assignee: ijackson → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.