Closed Bug 113949 Opened 22 years ago Closed 22 years ago

Trunk M096 crash [@ nsFileTransport::Process] [@ nsProxyObject::Post]


(Core :: Networking, defect, P1)

Windows NT





(Reporter: jay, Assigned: darin.moz)



(Keywords: crash, topcrash, Whiteboard: [patch needs sr=])

Crash Data


(1 file)

There are a few of these crashes in recent MozillaTrunk builds.  The stack trace
is only one line, so I don't know how helpful it will be in debugging...but
here's the latest from Talkback:

[ 8   nsFileTransport::Process 5b97409e - nsFileTransport::Process ]
     Crash date range: 2001-12-03 to 2001-12-05
     Min/Max Seconds since last crash: 539 - 337595
     Min/Max Runtime: 4435 - 337595
     Keyword List :  
     Count   Platform List 
     6   Windows NT 5.0 build 2195
     2   Windows 98 4.90 build 73010104
     Count   Build Id List 
     2   2001120309
     1   2001120506
     1   2001120306
     1   2001120211
     1   2001113009
     1   2001113006
     1   2001112914
     No of Unique Users         8
 Stack trace(Frame) 

[d:\builds\seamonkey\mozilla\netwerk\base\src\nsFileTransport.cpp  line 853]  
     (66040)	URL: back 2 from
     (66040)	Comments: back from to google..first crash in a long to
     (27179)	URL: &
     (27179)	Comments: had stalled during loading  i attempted
to open a new navigator window using the QuickLaunch menu (in the taskbar) and
the browser crashed as was trying to load.
     (9781)	Comments: mapquest

I'll update this with more info as I get it.
Keywords: crash, topcrash
Doug, Darin,
 Should bbaetz be getting this bug? Who is looking at FileTransport stuff now?
-> me (i'll look into this... i recently made some changes that /might/ have
resulted in this)
one more try...
Assignee: neeti → darin
-> 0.9.7 (maybe)
Priority: -- → P1
Target Milestone: --- → mozilla0.9.7
not much of a stack trace... if only there was a line number ;)
-> moz 1.0 (until we have more info)
Target Milestone: mozilla0.9.7 → mozilla1.0
Keywords: mozilla1.0
this talkback link


gives this stack trace:

[d:\builds\seamonkey\mozilla\netwerk\base\src\nsFileTransport.cpp, line 853]
[d:\builds\seamonkey\mozilla\netwerk\base\src\nsFileTransport.cpp, line 637]
[d:\builds\seamonkey\mozilla\xpcom\threads\nsThread.cpp, line 908]
nsThread::Main [d:\builds\seamonkey\mozilla\xpcom\threads\nsThread.cpp, line 136]
_PR_NativeRunThread [../../../../../pr/src/threads/combined/pruthr.c, line 435]
msvcrt.dll + 0x27fb8 (0x77c37fb8)
kernel32.dll + 0x202ed (0x77e802ed)
i know exactly what the problem is... i fixed a similar bug in the socket
transport.  the problem is that the file transport's notification callbacks can
be cleared from the UI thread while the file transport is using them on a file
transport thread.  we just need to protect nsFileTransport::mProgressSink with
the file transport's lock.

-> 0.9.7 (patch in hand)
Target Milestone: mozilla1.0 → mozilla0.9.7
Attached patch v1.0 patchSplinter Review
this patch should fix this crash.
dougt: can you r= this patch?  thx!
Comment on attachment 60859 [details] [diff] [review]
v1.0 patch

Attachment #60859 - Flags: review+
Whiteboard: [patch needs sr=]
*** Bug 107843 has been marked as a duplicate of this bug. ***
Comment on attachment 60859 [details] [diff] [review]
v1.0 patch

sr=mscott pending the answer to my question. I couldn't quite tell from the
context of the diff why we had to add a lock on mLock in
SetNotificationsCallbacks in addtion to passing in the progress event sink each
time into ::Process
Attachment #60859 - Flags: superreview+
mscott: SetNotificationCallbacks can be called on the main thread, while Process
is running, and assignment into a COMPtr is not atomic... there's the assignment
of the pointer value (which is atomic) and then there's also the AddRef call. 
together these aren't atomic, so we need to protect all access to mProgressSink.
Closed: 22 years ago
Resolution: --- → FIXED
*** Bug 104761 has been marked as a duplicate of this bug. ***
Adding M096 and [@ nsProxyObject::Post] to summary for tracking, since bug
107843 was marked a dup.
Summary: Trunk crash [@ nsFileTransport::Process] → Trunk M096 crash [@ nsFileTransport::Process] [@ nsProxyObject::Post]
*** Bug 112729 has been marked as a duplicate of this bug. ***
*** Bug 112729 has been marked as a duplicate of this bug. ***
*** Bug 107214 has been marked as a duplicate of this bug. ***
Crash Signature: [@ nsFileTransport::Process] [@ nsProxyObject::Post]
You need to log in before you can comment on or make changes to this bug.