Closed Bug 41414 Opened 26 years ago Closed 25 years ago

Crash in [@nsProxyEventObject::GetNewOrUsedProxy()]

Categories

(Core :: XPCOM, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mozilla, Assigned: dougt)

References

Details

(Keywords: crash, Whiteboard: [nsbeta2-][dogfood-] glibc 2.1.3. problem?)

Crash Data

Attachments

(1 file)

Overview Description: Mozilla crashes sometimes on startup when trying to load the chrome. Steps to Reproduce: 1) remove .mozilla 2) remove old nightly and download latest 3) ./mozilla 4) watch it segfault Actual Results: WEBSHELL+ = 1 WEBSHELL+ = 2 CSSLoaderImpl::LoadAgentSheet: Load of URL 'file:///home/david/.mozilla/default/ >chrome/user.css' failed. Error code: 16389 CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://communicator/skin/button.css' > failed. Error code: 16389 .//run-mozilla.sh: line 29: 30683 Segmentation fault $prog ${1+"$@"} Expected Results: starts normally Reproducibility: about 60% of the time Build Date & Platform Bug Found: 2000060308 linux i686 redhat 6.2 Additional Builds and Platforms Tested On: this has been happening on earlier builds also Additional Information: each time it fails on a different file (see below) CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome: //communicator/skin/sidebar/sidebar.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 7792 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://global/skin/menulist.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 3028 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://global/skin/splitter.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 2998 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://global/skin/radio.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 1797 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://global/skin/button.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 1635 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome: //communicator/skin/formatting.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 1443 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://communicator/skin/menu.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 1251 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://communicator/skin/button.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 680 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://communicator/skin/box.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 658 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome: //communicator/skin/sidebar/sidebar.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 31830 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://global/skin/button.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 31095 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome: //communicator/skin/formatting.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 31064 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://communicator/skin/menu.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 31024 Segmentation fault $prog ${1+"$@"} CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://communicator/skin/button.css' failed. Error code: 16389 .//run-mozilla.sh: line 29: 30683 Segmentation fault $prog ${1+"$@"}
Attached file stack trace —
reassigning to XPCOM component as per the stack trace
Assignee: asa → dp
Component: Browser-General → XPCOM
Keywords: crash, dogfood, nsbeta2
QA Contact: jelwell → leger
valeski, you the right person for this? jrgm can you reproduce internally?
Assignee: dp → valeski
QA Contact: leger → jrgm
Whiteboard: [dogfood+]
probably not. I'm guessing that Ben's resource changes over the weekend are the root???
Assignee: valeski → ben
I can't reproduce with the same build 06/03, or with today's mozilla build on a RH6.1 system.
Whiteboard: [dogfood+] → [dogfood+][nsbeta2-]
Hmmm, let me a pull a tree and see if I can reporduce this ...
Priority: P3 → P1
Target Milestone: --- → M16
Actually, why don't I first attempt to spell "reproduce" correctly. :-)
OK, my build from this morning works just fine. Resolving as "WORKSFORME". Can anybody else reproduce this?
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Target Milestone: M16 → ---
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I am still noticing this on the latest nightly. Unfortuately everyone I have talked to seems unable to reproduce this. The wierd thing is that this bug only occurs part of the time. It will crash several times in a row and then suddenly load fine with no problems. My box is Redhat 6.2 with updates and nothing out of the ordinary I don't think. I have been having this problem for around a month now but have been using mozilla for a while with nothing like this before.
Ben, can you reproduce this? If not, resolve it as WORKSFORME until we can find a repeatable scenario.
Target Milestone: --- → M16
worksforme. check to see that your chrome dir is completely up to date. lots of changes have been happening recently.
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → WORKSFORME
Reopening because someone else besides me has finally reproduced it. Go SuSE!!
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
*** Bug 41696 has been marked as a duplicate of this bug. ***
Please read the comments from bug 41696. He suggests maybe a threading problem which would explain the randomness of this bug. Also, like he said you can eventually get it to start if you keep trying like 20 times. Really cuts into my ability to bugtest mozilla though. :(
Yes, this is beginning to sound like a threading issue while loading the initial bit of chrome. So far this has only been seen on RH 6.2 and Suse ---------------------------------------------------------------------- Comments from bug #41414, by Daniel Egger: Mozilla is sometimes crashing at startup time with random messages, sometimes with segmentation fault and sometimes with illegal instruction. I manage to get it working though by restarting it about 20 times. nNCL: registering deferred (0) Gdk-WARNING **: locale not supported by C library WEBSHELL+ = 1 WEBSHELL+ = 2 CSSLoaderImpl::LoadAgentSheet: Load of URL 'file: ///root/.mozilla/default/chrome/user.css' failed. Error code: 16389 CSSLoaderImpl::DidLoadStyle: Load of URL 'chrome://communicator/skin/box.css' failed. Error code: 16389 UngĂĽltiger Maschinenbefehl The last line means illegal instruction. Unfortunately I cannot further debug it because debugging builds run fine and the nondebug build is even crashing gdb (version 4.17.0.13 with threads support as well as 5.0). The crash itself is REALLY random thus I believe it's a threading problem. I tried different things like different compilers (currently gcc 2.95.2 otherwise the latest CVS version) different linux kernels, different machines, different locales and different glibc versions. This bug is there for me at least 1 month now. My normal configure options are: --disable-debug --disable-tests --disable-mailnews Changing them to other values doesn't help either. Optimized builds are even more broken and debugging builds don't crash. I'd really like to try some patch or ideas if someone steps up with something...
Assignee: ben → warren
Status: REOPENED → NEW
Removing '[dogfood+][nsbeta2-]' for reconsideration in the interim. We have not reproduced it here at Mt. View, and we'll need to do that first, or get help from Daniel or David to sort this out.
Whiteboard: [dogfood+][nsbeta2-]
Putting on [nsbeta2+][dogfood-] radar. Does not need a fix ASAP for daily work, but we should fix this for beta2.
Whiteboard: [nsbeta2+][dogfood-]
Okay, finally I can reproduce it with 100% chance. It's thread related: TestThreads shows this very clearly as randomly different numbers are missing. It only occurs on non debugging builds of libnspr.so. When I replace a normal version by one containing debugging symbols, everything runs fine (including TestThreads). I'm going to investigate further whether it's an nspr problem or a libc/libpthreads race and which systems are affected or how this one can be circumvented. As a temporary workaround I'd suggest building nspr ALWAYS with debugging...
It has been happening to me as well: once it took me 23 retries before Mozilla started... Tristan
Summary: CSSLoaderImpl::DidLoadStyle fails to load chrome → [threadsafety] CSSLoaderImpl::DidLoadStyle fails to load chrome
cc'ing rpotts and wtc as this appears to be a threading/nspr issue
I read the comments in this bug report. I don't see anything obviously wrong with NSPR. Note that TestThreads does not use NSPR directly, but rather through nsIThread and nsIThreadPool.
Does this depend on having an SMP system to reproduce? Maybe dougt should look at this since he's back now and it dies in the proxy event code.
It crashes my non SMP system. Haven't tried SMP, yet...
I second that. It crashes on my single processor system. I don't have an SMB system to test it on.
I can't reproduce this.
M16 has been out for a while now, these bugs target milestones need to be updated.
when i pull a build from mozilla.org it cannot start up on my rh6.2-linux2.2.16 box. if i pull from cvs & build it works. if i pull build from mozilla.org & replace libnspr4.so with one built locally from cvs sources it works, i think something is screwy with build process of libnspr4.so that causes this behavior - i get what others above have described when i use pure mozilla.org build w/o locally built libnspr4.so
Is there a RedHat 6.2 box at Netscape that I can use?
Yes, there is one that I have set up in the cube across from mine. However, I can run the mozilla nightly builds on it with no problem. I haven't set it up as a development system yet, but that could be done as needed. I am in cube 27012, building 21, second floor. However, it is being used on a part-time basis for the Palo Alto kids, but Claudius, can we make arrangements for wtc to make use of it for a bit?
not a problem. They're typically there from 2-6 but have other machines available to them if that one is needed in a pinch.
Whiteboard: [nsbeta2+][dogfood-] → [nsbeta2+][dogfood-] no ETA - can't reproduce on my system
Honestly, I'm not going to get to this bug. Handing it off to a linux guru --> pavlov.
Assignee: warren → pavlov
Moving from [nsbeta2+] to [nsbeta2-] per todays PDT XP Toolkit Beta2 Review mtg.
Whiteboard: [nsbeta2+][dogfood-] no ETA - can't reproduce on my system → [nsbeta2-][dogfood-] no ETA - can't reproduce on my system
It seems this bug appears only with the latest versions of glibc2 i.e. glibc 2.1.3. I can reproduce it on my own system as I can on SuSE linux 6.3, 6.4, 7.0beta. If you want to do the same feel free to ask for some packages and I'll send them to you. I checked in a workaround for SuSE Linux 7.0 which basically builds mozilla with debugging and strips it afterwards which has the slight disadvantage of having tons of debugging output, but since I don't have time to search the bug and no better idea how to get around this, this will make it into the distribution.
This bug is the same as 29182. Please merge.
*** This bug has been marked as a duplicate of 29182 ***
Status: NEW → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → DUPLICATE
verified duplicate.
Status: RESOLVED → VERIFIED
This is a root bug. I am reopening it and look at it.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
crap. Not this bug. I am going to reopen and look at another bug....
Status: REOPENED → RESOLVED
Closed: 26 years ago25 years ago
Resolution: --- → INVALID
this is the bug that I reopened: 47046. This bug and 47046 are dups.
reopening since dougt thinks that this bug is not a dup
Status: RESOLVED → REOPENED
Keywords: nsbeta3
Resolution: INVALID → ---
assigning to dougt and marking bug 47046 as dup
Assignee: pavlov → dougt
Status: REOPENED → NEW
*** Bug 47046 has been marked as a duplicate of this bug. ***
fixing summary removing old whiteboard comments also see talkbacks in bug 47046
Summary: [threadsafety] CSSLoaderImpl::DidLoadStyle fails to load chrome → Crash in [@nsProxyEventObject::GetNewOrUsedProxy()]
Whiteboard: [nsbeta2-][dogfood-] no ETA - can't reproduce on my system → [nsbeta2-][dogfood-]
Daniel Egger - can you confirm again that this is only a problem with glibc 2.13? Anyone else?
Whiteboard: [nsbeta2-][dogfood-] → [nsbeta2-][dogfood-] glibc 2.1.3. problem?
I can confirm that the problems went away after upgrading to the latest stable GLIBC from CVS two weeks ago. Thus I really suspect it's related to some weird linuxthreads bug...
Okay. Marking WONTFIX.
Status: NEW → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → WONTFIX
Take a look at bug 51164 and bug 51225.
Oh..btw.. A problem with glibc 2.1.3 is not "only". If this bug remains "wontfix", it means moz doesn't support RH6.* All RH6 versions are for now glibc-2.1.3-* after the latest errata.
? I am running rh6.2 and I can not reproduce this.
I tried this with both the upgraded glibc and the old glibc and it crashes equally as badly with either.
Chris, alot of folks are having trouble reproducing this. Did you have trouble? reopening until we have a better understanding of what is going on.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
*** Bug 51482 has been marked as a duplicate of this bug. ***
Upgrading to the latest errata of glibc from RedHat: glibc-2.1.3-21 (released on the 7th) fixed every oddity i've seen the past week, also this crash here.
sounds like i DONT have to do anything. Marking as WONTFIX.
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → WONTFIX
Crash Signature: [@nsProxyEventObject::GetNewOrUsedProxy()]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: