Closed Bug 322523 Opened 19 years ago Closed 19 years ago

Loading page crashes browser

Categories

(Firefox :: General, defect)

1.5.0.x Branch
x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 210931

People

(Reporter: v2, Unassigned)

References

()

Details

(Keywords: crash)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051224 Debian/1.5.dfsg-3 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051224 Debian/1.5.dfsg-3 Firefox/1.5

Loading this page crashes firefox 1.5 and 1.6a1 (+ a lot of older versions), mozilla 1.7.12.

Reproducible: Always

Steps to Reproduce:
1. Load page
2. Crash


Actual Results:  
The program 'Gecko' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 20501 error_code 11 request_code 53 minor_code 0)
  (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.)


Expected Results:  
.. show the page? :)
Works for me. Might make sense to create a simplified test case
and provide a talkback report.
Forgot to mention: 

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Whiteboard: DUPEME
No crash with SeaMonkey trunk 2006010504 or firefox 1.5;  I don't see anything on the page likely to cause this.

Can you get a stacktrace with gdb?
launch firefox
% ps u -C firefox-bin
% gdb path_to_firefox-bin_ _pid_of_firefox-bin_
(gdb) b exit
(gdb) b gdk_x_error
(gdb) cont
[make firefox crash]
(gdb) bt
[this is the stacktrace]

The stack you get might not be useful because of stripped symbols.  You'd need to rebuild from source to get symbols.  Also please try an build from .mozilla.org:
http://ftp.mozilla.org/pub/mozilla.org/firefox/
Keywords: crash
Version: unspecified → 1.5 Branch
v2@puppeli:/usr/lib/firefox$ export LD_LIBRARY_PATH=.
v2@puppeli:/usr/lib/firefox$ ./firefox-bin
v2@puppeli:/usr/lib/firefox$ gdb firefox-bin
GNU gdb 6.4-debian
Copyright 2005 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 "i486-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) b exit
Function "exit" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (exit) pending.
(gdb) b gdk_x_error
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 2 (gdk_x_error) pending.
(gdb) cont
The program is not being run.
(gdb) run
Starting program: /usr/lib/firefox/firefox-bin
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1221510944 (LWP 4453)]
(no debugging symbols found)
Breakpoint 3 at 0xb7396286
Pending breakpoint "exit" resolved
Breakpoint 4 at 0xb7aabce8: file gdkmain-x11.c, line 599.
Pending breakpoint "gdk_x_error" resolved
[New Thread -1221755984 (LWP 4460)]
[New Thread -1230828624 (LWP 4461)]
[New Thread -1242354768 (LWP 4462)]
[New Thread -1251501136 (LWP 4463)]
[Switching to Thread -1221510944 (LWP 4453)]

Breakpoint 4, gdk_x_error (display=0x8b05c70, error=0xbfd823dc)
    at gdkmain-x11.c:599
599     gdkmain-x11.c: No such file or directory.
        in gdkmain-x11.c
(gdb) bt
#0  gdk_x_error (display=0x8b05c70, error=0xbfd823dc) at gdkmain-x11.c:599
#1  0xb78c2460 in _XError () from /usr/X11R6/lib/libX11.so.6
#2  0xb78c3e3f in _XEventsQueued () from /usr/X11R6/lib/libX11.so.6
#3  0xb78b3b4b in XPending () from /usr/X11R6/lib/libX11.so.6
#4  0xb7a9f99c in gdk_check_xpending (display=<value optimized out>)
    at gdkevents-x11.c:148
#5  0xb7aa2381 in gdk_event_prepare (source=0x0, timeout=0x0)
    at gdkevents-x11.c:2248
#6  0xb77f3d1e in IA__g_main_context_prepare (context=0x8b23840,
    priority=0xbfd82e18) at gmain.c:2252
#7  0xb77f4440 in g_main_context_iterate (context=0x8b23840, block=1,
    dispatch=1, self=0x8bb42f8) at gmain.c:2545
#8  0xb77f4bd8 in IA__g_main_loop_run (loop=0x8ed1938) at gmain.c:2769
#9  0xb7bfbdf9 in IA__gtk_main () at gtkmain.c:991
#10 0x0825fd74 in ?? ()
#11 0x08bcbfa0 in ?? ()
#12 0x08bcdf68 in ?? ()
#13 0xbfd82ed8 in ?? ()
#14 0x087712f0 in ?? ()
#15 0x08bcbfa0 in ?? ()
#16 0x08ed0ed8 in ?? ()
#17 0x08b87a10 in ?? ()
#18 0x08cd8a48 in ?? ()
---Type <return> to continue, or q <return> to quit---
#19 0x08bcdf68 in ?? ()
#20 0x08cd8a48 in ?? ()
#21 0xbfd83198 in ?? ()
#22 0x0807bc16 in ?? ()
#23 0x08bcdf68 in ?? ()
#24 0x088e1690 in _IO_stdin_used ()
#25 0x00000000 in ?? ()
(gdb) thread apply all bt

Thread 5 (Thread -1251501136 (LWP 4463)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7dc0ffc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7e103d4 in PR_Lock () from ./libnspr4.so
#3  0xb7e1078f in PR_WaitCondVar () from ./libnspr4.so
#4  0x081043d4 in ?? ()
#5  0x08b686c0 in ?? ()
#6  0x0000ea60 in ?? ()
#7  0x08b68600 in ?? ()
#8  0xb5679418 in ?? ()
#9  0xb5679428 in ?? ()
#10 0xa10e70a1 in ?? ()
#11 0x08b68600 in ?? ()
#12 0x00008020 in ?? ()
#13 0x08b68718 in ?? ()
#14 0xb5679418 in ?? ()
#15 0xb5679428 in ?? ()
#16 0x08104c1f in ?? ()
#17 0x08b68718 in ?? ()
#18 0xb5679418 in ?? ()
#19 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---

Thread 4 (Thread -1242354768 (LWP 4462)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7dc0ffc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7e103d4 in PR_Lock () from ./libnspr4.so
#3  0xb7e1078f in PR_WaitCondVar () from ./libnspr4.so
#4  0x080e0d03 in ?? ()
#5  0x08c56530 in ?? ()
#6  0x0000ea60 in ?? ()
#7  0xb5f32428 in ?? ()
#8  0x080e0c85 in ?? ()
#9  0x08af7e10 in ?? ()
#10 0x00000001 in ?? ()
#11 0xb5f32428 in ?? ()
#12 0x08c564c0 in ?? ()
#13 0x08c564c0 in ?? ()
#14 0xa10e7a0e in ?? ()
#15 0x0000ea60 in ?? ()
#16 0xb7e20464 in ?? () from ./libnspr4.so
#17 0x08c69168 in ?? ()
#18 0x00000001 in ?? ()
#19 0xb5f32458 in ?? ()
---Type <return> to continue, or q <return> to quit---
#20 0xb7e15f5d in PR_Select () from ./libnspr4.so
#21 0xb7e15f5d in PR_Select () from ./libnspr4.so
#22 0xb7dbee70 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#23 0xb743ac6e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread -1230828624 (LWP 4461)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7dc0ffc in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7e103d4 in PR_Lock () from ./libnspr4.so
#3  0xb7e1078f in PR_WaitCondVar () from ./libnspr4.so
#4  0xb7e9ee37 in NS_NewThread () from ./libxpcom_core.so
#5  0xb7e9c4b4 in nsIThread::IsMainThread () from ./libxpcom_core.so
#6  0xb7e15f5d in PR_Select () from ./libnspr4.so
#7  0xb7dbee70 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb743ac6e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1221755984 (LWP 4460)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7430763 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e145f2 in PR_Poll () from ./libnspr4.so
#3  0x080fa810 in ?? ()
#4  0x08b67a88 in ?? ()
---Type <return> to continue, or q <return> to quit---
#5  0x00000001 in ?? ()
#6  0xffffffff in ?? ()
#7  0xa10e7a99 in ?? ()
#8  0x08b675a0 in ?? ()
#9  0xb72d7394 in ?? ()
#10 0x08b67a88 in ?? ()
#11 0x08b675a0 in ?? ()
#12 0x08b6781c in ?? ()
#13 0x08b6781c in ?? ()
#14 0xb72d73f8 in ?? ()
#15 0x080faf1f in ?? ()
#16 0x08b675a0 in ?? ()
#17 0xb72d73e8 in ?? ()
#18 0x00000001 in ?? ()
#19 0x08b675d0 in ?? ()
#20 0x08b675c4 in ?? ()
#21 0x08b675c4 in ?? ()
#22 0x08b6781c in ?? ()
#23 0x00000000 in ?? ()

Thread 1 (Thread -1221510944 (LWP 4453)):
#0  gdk_x_error (display=0x8b05c70, error=0xbfd823dc) at gdkmain-x11.c:599
#1  0xb78c2460 in _XError () from /usr/X11R6/lib/libX11.so.6
---Type <return> to continue, or q <return> to quit---
#2  0xb78c3e3f in _XEventsQueued () from /usr/X11R6/lib/libX11.so.6
#3  0xb78b3b4b in XPending () from /usr/X11R6/lib/libX11.so.6
#4  0xb7a9f99c in gdk_check_xpending (display=<value optimized out>)
    at gdkevents-x11.c:148
#5  0xb7aa2381 in gdk_event_prepare (source=0x0, timeout=0x0)
    at gdkevents-x11.c:2248
#6  0xb77f3d1e in IA__g_main_context_prepare (context=0x8b23840,
    priority=0xbfd82e18) at gmain.c:2252
#7  0xb77f4440 in g_main_context_iterate (context=0x8b23840, block=1,
    dispatch=1, self=0x8bb42f8) at gmain.c:2545
#8  0xb77f4bd8 in IA__g_main_loop_run (loop=0x8ed1938) at gmain.c:2769
#9  0xb7bfbdf9 in IA__gtk_main () at gtkmain.c:991
#10 0x0825fd74 in ?? ()
#11 0x08bcbfa0 in ?? ()
#12 0x08bcdf68 in ?? ()
#13 0xbfd82ed8 in ?? ()
#14 0x087712f0 in ?? ()
#15 0x08bcbfa0 in ?? ()
#16 0x08ed0ed8 in ?? ()
#17 0x08b87a10 in ?? ()
#18 0x08cd8a48 in ?? ()
#19 0x08bcdf68 in ?? ()
#20 0x08cd8a48 in ?? ()
---Type <return> to continue, or q <return> to quit---
#21 0xbfd83198 in ?? ()
#22 0x0807bc16 in ?? ()
#23 0x08bcdf68 in ?? ()
#24 0x088e1690 in _IO_stdin_used ()
#25 0x00000000 in ?? ()
(gdb)
(gdb) quit
The program is running.  Exit anyway? (y or n) y
v2@puppeli:/usr/lib/firefox$
I forgot to add that I couldn't find a i686 linux debug build at the url you mentioned. If you still need help to duplicate this issue, please send more exact instructions.

Btw. I'm using xorg:
X Window System Version 6.8.2 (Debian 6.8.2.dfsg.1-11 20051129054125 David Nusinow <dnusinow@debian.org>)
oops, forgot something.  invoke firefox with "--sync"

% firefox --sync

you really only need the first stack (from the main thread).  If the output is long attach it to the bug instead of pasting as a comment...
#0  gdk_x_error (display=0x8b06518, error=0xbf87bd8c) at gdkmain-x11.c:599
#1  0xb78bd460 in _XError () from /usr/X11R6/lib/libX11.so.6
#2  0xb78bdb8d in _XReply () from /usr/X11R6/lib/libX11.so.6
#3  0xb78b838a in XSync () from /usr/X11R6/lib/libX11.so.6
#4  0xb78b842e in XSync () from /usr/X11R6/lib/libX11.so.6
#5  0xb789d586 in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
#6  0xb7aa759b in IA__gdk_pixmap_new (drawable=0x8b0d008, width=10000,
    height=1, depth=24) at gdkpixmap-x11.c:194
#7  0x08205dc4 in ?? ()
#8  0x00000000 in ?? ()

Better?
yup, thanks.
the page tries to load http://www.bof.fi/pict/taustakuva.gif which is 10000x1 and gdk decides to bail when it can't allocate the memory for it, so this is a dupe of 210931

*** This bug has been marked as a duplicate of 210931 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.