Closed
Bug 361773
Opened 18 years ago
Closed 18 years ago
Crash [@ nsXMLHttpRequest::StreamReaderFunc]
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: stevee, Assigned: MatsPalmgren_bugz)
References
()
Details
(Keywords: crash, regression, testcase)
Crash Data
Attachments
(5 files, 1 obsolete file)
(deleted),
text/html
|
Details | |
(deleted),
application/xml
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
text/plain
|
Details | |
(deleted),
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20061124 Minefield/3.0a1 ID:2006112404 [cairo] 1. New profile, start firefox 2. Load www.wbeta.com 3. Click on a link on the left hand side, under 'XML News Aggrigator' 4. Crash! TB26448788Q Incident ID: 26448788 Stack Signature nsXMLHttpRequest::StreamReaderFunc 3da4e921 Product ID FirefoxTrunk Build ID 2006112404 Trigger Time 2006-11-24 12:43:46.0 Platform Win32 Operating System Windows NT 5.0 build 2195 Module firefox.exe + (00164897) URL visited http://www.wbeta.com User Comments 1.new profile 2. load url 3. click link on left hand side 4. crash! Since Last Crash 15185 sec Total Uptime 15185 sec Trigger Reason Access violation Source File, Line No. e:\builds\tinderbox\fx-trunk\winnt_5.2_depend\mozilla\content\base\src\nsxmlhttprequest.cpp, line 1170 Stack Trace nsXMLHttpRequest::StreamReaderFunc [mozilla\content\base\src\nsxmlhttprequest.cpp, line 1170] nsInputStreamTee::WriteSegmentFun [mozilla\xpcom\io\nsinputstreamtee.cpp, line 103] nsPipeInputStream::ReadSegments [mozilla\xpcom\io\nspipe3.cpp, line 764] nsInputStreamTee::ReadSegments [mozilla\xpcom\io\nsinputstreamtee.cpp, line 157] nsXMLHttpRequest::OnDataAvailable [mozilla\content\base\src\nsxmlhttprequest.cpp, line 1201] nsStreamListenerTee::OnDataAvailable [mozilla\netwerk\base\src\nsstreamlistenertee.cpp, line 97] nsHttpChannel::OnDataAvailable [mozilla\netwerk\protocol\http\src\nshttpchannel.cpp, line 4118] nsInputStreamPump::OnStateTransfer [mozilla\netwerk\base\src\nsinputstreampump.cpp, line 503] nsInputStreamPump::OnInputStreamReady [mozilla\netwerk\base\src\nsinputstreampump.cpp, line 394] nsOutputStreamReadyEvent::Run [mozilla\xpcom\io\nsstreamutils.cpp, line 112] NS_ProcessNextEvent_P [mozilla\xpcom\build\nsthreadutils.cpp, line 225] nsXULWindow::ShowModal [mozilla\xpfe\appshell\src\nsxulwindow.cpp, line 402] nsContentTreeOwner::ShowAsModal [mozilla\xpfe\appshell\src\nscontenttreeowner.cpp, line 503]
Reporter | ||
Comment 1•18 years ago
|
||
Exception is thrown in a dialog as firefox goes down: [Exception... "Component returned failure code: 0x804b000f [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x804b000f (<unknown>)" location: "JS frame :: http://www.wbeta.com/index.js :: sendReq :: line 232" data: no]
Reporter | ||
Comment 2•18 years ago
|
||
Website works fine on Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.1pre) Gecko/2006112405 BonEcho/2.0.0.1pre, so this is a regression.
Keywords: regression
Reporter | ||
Updated•18 years ago
|
Product: Firefox → Core
QA Contact: general → general
Reporter | ||
Comment 3•18 years ago
|
||
Works: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060504 Minefield/3.0a1 ID:2006050405 [cairo] Busted (No actual crash, but continual exception throwing in dialog): Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060505 Minefield/3.0a1 ID:2006050511 [cairo] http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=PhoenixTinderbox&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-05-04+04&maxdate=2006-05-05+12&cvsroot=%2Fcvsroot
Comment 4•18 years ago
|
||
The crash doesn't happen in a 2006-11-07 build, but it does happen in a 2006-11-08 build: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-11-07+05&maxdate=2006-11-08+06&cvsroot=%2Fcvsroot Maybe somehow a regression from bug 319654?
Comment 5•18 years ago
|
||
Sorry, the regression range from comment 4 is wrong, the 2006-11-07 build is also crashing for me. I get a regression range between 2006-11-06 and 2006-11-07: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-11-06+05%3A00%3A00&maxdate=2006-11-07+06%3A00%3A00&cvsroot=%2Fcvsroot
Comment 6•18 years ago
|
||
This crashes for me when loading.
Comment 7•18 years ago
|
||
Ok, to get the crash, you need to download the testcase locally and then change this: req.open('get', 'https://bugzilla.mozilla.org/show_bug.cgi?id=361773', true); into this: req.open('get', window.location, true); And with testcase, it makes clear that the regression range from comment 5 is incorrect also (sorry, will look for it further in a little while).
Comment 8•18 years ago
|
||
Ok, the crash regression range is between 2006-05-09 and 2006-05-10, so that makes it very likely to be a regression from bug 326273 (the threadmanager patch).
Attachment #246524 -
Attachment is obsolete: true
Assignee | ||
Comment 9•18 years ago
|
||
Assignee | ||
Comment 10•18 years ago
|
||
Assignee | ||
Comment 11•18 years ago
|
||
(Martjin's testcase have the basically the same trace data too)
Assignee | ||
Comment 12•18 years ago
|
||
This fixes the crash for all the testcases + URL. The URL and Martjin's testcase still generates infinite recursive loads, but they are limited by the JS engine after while: "JavaScript error: , line 0: too much recursion"
Assignee | ||
Comment 13•18 years ago
|
||
The reason the URL works in IE7 is that the onreadystatechange handler (load_item() in this case) is called without arguments, so for one link click in IE7 we have: 1st call to load_item: from the onclick handler of the link ('id' is non-null and indicates which link it is) 2nd call to load_item: 'id' is null. (readyState==2) 3nd call to load_item: 'id' is null. (readyState==3) 4th call to load_item: 'id' is null. (readyState==4) In Firefox we call the onreadystatechange handler with the event as argument, which is why load_item() opens new URLs ad infinitum. Build 2006-05-04-04 and earlier does not call an onreadystatechange handler or load handler at all. I guess bug 198595 and/or bug 312213 fixed that (they were checked in at the same time). The remaining problem with the recursive loading of new URLs could be Evangelism, depending on how compatible we want to be... (I got the site working locally so it shouldn't be hard to fix.)
Assignee | ||
Updated•18 years ago
|
Attachment #246534 -
Flags: review?(bzbarsky)
Comment 14•18 years ago
|
||
(In reply to comment #13) > The remaining problem with the recursive loading of new URLs could be > Evangelism, depending on how compatible we want to be... > (I got the site working locally so it shouldn't be hard to fix.) Yeah, the remaining problem was filed as bug 361811.
Comment 15•18 years ago
|
||
Comment on attachment 246534 [details] [diff] [review] wip Seems reasonable, yeah. Nice catch! r+sr=bzbarsky
Attachment #246534 -
Flags: superreview+
Attachment #246534 -
Flags: review?(bzbarsky)
Attachment #246534 -
Flags: review+
Updated•18 years ago
|
Assignee: nobody → general
Component: General → DOM: Mozilla Extensions
QA Contact: general → ian
Updated•18 years ago
|
Assignee: general → mats.palmgren
Flags: blocking1.9?
Assignee | ||
Comment 16•18 years ago
|
||
Checked in to trunk at 2006-11-28 05:56 PST -> FIXED
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: blocking1.9?
Resolution: --- → FIXED
Updated•13 years ago
|
Crash Signature: [@ nsXMLHttpRequest::StreamReaderFunc]
Updated•11 years ago
|
Component: DOM: Mozilla Extensions → DOM
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•