Closed
Bug 369971
Opened 19 years ago
Closed 16 years ago
XError: BadAlloc (insufficient resources for operation)
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: crash, qawanted, testcase, Whiteboard: [sg:dos])
Attachments
(5 files, 2 obsolete files)
![]() |
||
Updated•18 years ago
|
Flags: blocking1.9?
Updated•18 years ago
|
Whiteboard: [sg:critical?]
mats, are you still seeing the problem, or have any ideas on how to get jesse reproducing?
Comment 4•18 years ago
|
||
Critical security bugs need to have an owner. If you are not the correct person for this bug, please help us find someone else. Thanks.
Assignee: nobody → mats.palmgren
Flags: blocking1.9? → blocking1.9+
Comment 5•18 years ago
|
||
A minimal testcase would be great.
Comment 6•18 years ago
|
||
It is possible that this was fixed in Bug 374090.
Assignee | ||
Comment 7•18 years ago
|
||
Preserving TB data from TB29198257X:
Stack Signature 0x00000000 82ae1aa2
Product ID FirefoxTrunk
Build ID 2007020611
Trigger Time 2007-02-10 04:42:57.0
Platform LinuxIntel
Operating System Linux 2.6.17-10-generic
Module
URL visited http://www.apple.com
User Comments click Store
Since Last Crash 0 sec
Total Uptime 0 sec
Trigger Reason SIGSEGV: Segmentation Fault: (signal 11)
Source File, Line No. N/A
Stack Trace
0x00000000
PresShell::FlushPendingNotifications() [mozilla/layout/base/nsPresShell.cpp, line 4684]
nsGfxScrollFrameInner::FireScrollPortEvent() [mozilla/layout/generic/nsGfxScrollFrame.cpp, line 362]
nsThread::ProcessNextEvent() [mozilla/xpcom/threads/nsThread.cpp, line 483]
NS_ProcessNextEvent_P() [mozilla/xpcom/build/nsThreadUtils.cpp, line 225]
nsBaseAppShell::Run() [mozilla/widget/src/xpwidgets/nsBaseAppShell.cpp, line 153]
nsAppStartup::Run() [mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 172]
XRE_main() [mozilla/toolkit/xre/nsAppRunner.cpp, line 2751]
main() [mozilla/browser/app/nsBrowserApp.cpp, line 62]
Assignee | ||
Comment 8•18 years ago
|
||
The results are a bit different now. I can't reproduce the
original crash on Linux, but it still doesn't run for long.
Results:
SeaMonkey and Firefox trunk *debug* builds, Linux:
XError: BadAlloc (insufficient resources for operation)
which results in a call to exit().
see "trunk stack" attachment.
Minefield 20070427 nightly build, Linux:
does not hit that XError for some reason...
and no crash
1.8 branch debug build on Linux:
hangs in some X related operation which never finish
see "1.8 branch stack" attachment
1 [review].8.0 branch debug build on Linux:
crashes, but not the original crash (possibly unrelated bug)
see "1.8.0 branch stack" attachment
(likely using freed frame or content)
Firefox 2.0.0.4-rc1 on MacOSX 10.4 (Intel):
silent crash (or exit?) - no Crash Report dialog was opened.
Assignee | ||
Comment 9•18 years ago
|
||
Assignee | ||
Comment 10•18 years ago
|
||
Assignee | ||
Comment 11•18 years ago
|
||
Assignee | ||
Comment 12•18 years ago
|
||
I'd still like to keep this bug open for a while to track those XErrors -
the trunk stack data doesn't seem to have obscenely large values so I'm
puzzled why the BadAlloc occurs...
We need to test Windows builds also...
Summary: Crash [@ PresShell::FlushPendingNotifications] → XError: BadAlloc (insufficient resources for operation)
Assignee | ||
Comment 13•18 years ago
|
||
(In reply to comment #8)
> Firefox 2.0.0.4-rc1 on MacOSX 10.4 (Intel):
> silent crash (or exit?) - no Crash Report dialog was opened.
Running from a terminal window I get these messages:
pure virtual method called
terminate called without an active exception
which usually means we're using freed memory.
Comment 14•18 years ago
|
||
Those new stacks look very different. Would it be better to open a new bug for those (and close this one). Is the testcase even the same anymore (I mean the minimal testcase).
Comment 15•18 years ago
|
||
oh, I didn't notice you already changed the summary.
minimal testcase would be still great.
Comment 16•18 years ago
|
||
I can't reproduce this in a debug build running inside a Fedora 7 VM. The original problem doesn't occur, and I don't seem to crash "early"; I have it running at 111000+ right now and haven't crashed. I get the usual stream of assertions, but this bug WFM.
Comment 17•18 years ago
|
||
I've asked qa to verify this one.
Comment 18•18 years ago
|
||
It's also worksforme on windows, using a build from 2007-06-20, I had it running till 50000 or so.
With a Linux (Ubuntu on VMWare) I keep hanging at 4732 with a 2007-06-20 build.
Assignee | ||
Comment 19•18 years ago
|
||
Spawned off bug 385445 which is a 1.8 branch crash on MacOSX.
Comment 20•18 years ago
|
||
Ok, so is "hanging at 4732" a security risk on linux? :)
Looks like this bug is WFM and we should start tracking in bug 385445 ? If so, can we mark as so?
Assignee | ||
Comment 21•18 years ago
|
||
The STR now causes a hang in a Firefox trunk debug Linux build, I spawned
that off as bug 387358. I can still reproduce the XError if I get past
that bug (about 1 in 6). Removing blocking flag since an XError (or hang)
when running a fuzzer isn't serious enough to block I think.
Did anyone test Windows 1.8/1.8.0 branches? If there are problems other
than the XError, please file them as separate bugs.
Flags: blocking1.9+
Whiteboard: [sg:critical?]
Comment 22•18 years ago
|
||
sounds like we should close this bug and open up new ones for any remaining problems. is that right?
Whiteboard: sg:high
Updated•18 years ago
|
Whiteboard: sg:high → [sg:high]
Assignee | ||
Comment 23•18 years ago
|
||
STR now results in 100% CPU hang, FF trunk 2008011604 Linux.
We should reduce that into a minimal testcase and spawn it off as a
separate bug. After that hang is fixed we should revisit this bug
and make sure there are no remaining problems, on any platform.
Comment 24•17 years ago
|
||
I'm currently seeing this error & crash on http://howtoforge.com, both in trunk and in FF2, using Ubuntu 8.04.
Comment 25•17 years ago
|
||
This testcase gives me a crash & this error in FF2 and in Trunk:
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 21373 error_code 11 request_code 53 minor_code 0)
Occasionally, it doesn't crash, but I still get the error output when I quit.
This testcase uses style info from
http://howtoforge.com/themes/htf_glass/style.css
Updated•17 years ago
|
Attachment #310649 -
Attachment is patch: false
Attachment #310649 -
Attachment mime type: text/plain → text/html
Comment 26•17 years ago
|
||
Can't reproduce on Fedora 7 (32bit and 64bit)
X Window System Version 1.3.0
Build ID: xorg-x11-server 1.3.0.0-16.fc7
Comment 27•17 years ago
|
||
Slightly more minimized version of previous testcase.
For some reason, it seems to matter that style.css is on the howtoforge server. If I try to use a local copy, or use a copy on my own web server, it doesn't crash or give the BadAlloc error.
Attachment #310649 -
Attachment is obsolete: true
Comment 28•17 years ago
|
||
no crashes for on the test cases using
Build identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b4) Gecko/2008030317 Firefox/3.0b4
Comment 29•17 years ago
|
||
I'm @ home now and I don't see the crash on my home Ubuntu 7.10 box -- maybe it's something specific to Ubuntu 8.04.
(In reply to comment #27)
> For some reason, it seems to matter that style.css is on the howtoforge server.
> If I try to use a local copy, or use a copy on my own web server, it doesn't
> crash or give the BadAlloc error.
Ah -- this problem was probably due to this relative URL in the stylesheet:
#header {
background: url(images/bg_header_bottom_left15.png) bottom left no-repeat;
...
}
I think the crash is related to that PNG, because I never saw it load (or realized it was supposed to be there) when I was testing on my work machine.
Comment 30•17 years ago
|
||
I can confirm not seeing the problem on a VM running Ubuntu 7.04 using firefox 3. beta 4
Comment 31•17 years ago
|
||
Here's the PNG that was triggering the bug in the previous testcases I posted. Simply loading this PNG in Firefox triggers a BadAlloc & crash on my Ubuntu 8.04 machine.
I haven't rebooted since seeing the bug for the first time, so it may be something weird in my current session...
Attachment #310654 -
Attachment is obsolete: true
Comment 32•17 years ago
|
||
(In reply to comment #31)
> I haven't rebooted since seeing the bug for the first time, so it may be
> something weird in my current session...
Cancel that -- I just rebooted, and I still see the BadAlloc & crash when loading the posted PNG (attachment 310818 [details]).
Firefox: All. (FF2, FF3b4, latest-trunk)
OS: Ubuntu Hardy 8.04
xserver-xorg-core: 2:1.4.1~git20080131-1ubuntu5
Comment 33•17 years ago
|
||
If I run Firefox inside of nxserver/nxclient (remote-desktop software from http://nomachine.com/ ) on this Ubuntu 8.04 machine, then I *don't* get a crash. Instead, it looks like the image shows corrupt memory.
When viewed in FF2, the PNG often shows correctly the first time I load it. But when I click/move/resize the window, the image turns black, or shows gibberish.
When viewed in FF3 / latest-trunk, the PNG just looks completely white
Comment 34•17 years ago
|
||
Here's a screenshot of what I'm seeing in FF2 within nxclient.
Assignee | ||
Comment 35•17 years ago
|
||
Daniel, I can't reproduce the problem with your testcase,
does the branch patch in bug 424333 help?
Comment 36•17 years ago
|
||
Can't test the branch patch, as I haven't been able to successfully build branch on Ubuntu 8.04 yet.
I also see this error & crash on FF2 & FF3 at http://tech.yahoo.com/blogs/
Comment 37•17 years ago
|
||
I think I'm actually running into Bug 390768 (crash if I open large PNG [XError calls exit on "BadAlloc (insufficient resources for operation)"]), as my earlier crash used a very wide PNG from HowToForge.
I'll direct any further issues I have about this to that bug.
Comment 38•17 years ago
|
||
Does this bug page still need to be marked security-sensitive?
I'm asking because two other bugs that trigger the same error / crash as this bug (bug 390768 and bug 424333) are currently *not* marked as security-sensitive.
Or, looking at it from the other direction, should those two other bugs be marked as security-sensitive?
Assignee | ||
Comment 39•17 years ago
|
||
(In reply to comment #38)
> Does this bug page still need to be marked security-sensitive?
The XError thing is not security-sensitive in itself -- technically
it's not a crash, it's a call to exit() with no security implications
other than sg:dos. This bug was marked SS because of the original
@FlushPendingNotifications crash which I *think* is WFM now,
at least on trunk and 1.8, it's unclear what the status is for 1.8.0
(comment 8). A later SS crash spawned bug 385445 for the same STR,
I don't know if that bug still occurs.
> Or, looking at it from the other direction, should those two other bugs be
> marked as security-sensitive?
No, they look like clean XError exit() bugs to me.
Comment 40•17 years ago
|
||
Making public based on the last few comments.
Group: core-security
Whiteboard: [sg:high] → [sg:low]
Comment 41•16 years ago
|
||
dholbert's testcases don't make Firefox trunk crash for me. (Ubuntu 9.10)
Comment 42•16 years ago
|
||
No crash here either, using Ubuntu 9.10 with these builds:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.16pre) Gecko/2009110204 GranParadiso/3.0.16pre
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20091114 Minefield/3.7a1pre
Resolving as WFM.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Comment 44•16 years ago
|
||
This might be a dup of bug 424333. At least one bug mentioning howtoforge was duped there.
Assignee | ||
Comment 47•16 years ago
|
||
WFM too, on 1.9.0, 1.9.1 and m-c. Testcases and STR. Kubuntu 9.04 x86-64.
You need to log in
before you can comment on or make changes to this bug.
Comment 3
•