Closed Bug 20464 Opened 25 years ago Closed 25 years ago

browser crashes on data: URLs

Categories

(Core :: Networking, defect, P3)

Sun
Solaris
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: mhw, Assigned: jud)

References

()

Details

(Keywords: crash)

The browser crashes when loading a document which contains data: URLs, such as the one given above. Apparently this worked at one point. The first bit of the stack backtrace is: Program received signal SIGSEGV, Segmentation fault. 0xec3a9798 in nsDataChannel::AsyncRead (this=0x52c0a8, startPosition=0, readCount=-1, ctxt=0x0, aListener=0x50f7ec) at nsDataChannel.cpp:306 306 NS_RELEASE(eventQ); (gdb) where #0 0xec3a9798 in nsDataChannel::AsyncRead (this=0x52c0a8, startPosition=0, readCount=-1, ctxt=0x0, aListener=0x50f7ec) at nsDataChannel.cpp:306 #1 0xee281124 in nsUnicharStreamLoader::Init (this=0x50f7e8, aURL=0x4d2e70, observer=0x536f38, aGroup=0x9dfc0, notificationCallbacks=0x0, loadAttributes=0) at nsUnicharStreamLoader.cpp:65 #2 0xecb44268 in NS_NewUnicharStreamLoader (result=0xefffd2fc, uri=0x4d2e70, observer=0x536f38, loadGroup=0x9dfc0, notificationCallbacks=0x0, loadAttributes=0) at ../../../../dist/include/nsNetUtil.h:242 #3 0xec932664 in CSSLoaderImpl::LoadSheet (this=0x6972b0, aKey=@0xefffd3a0, aData=0x536f38) at nsCSSLoader.cpp:1101 The code around http://lxr.mozilla.org/seamonkey/source/netwerk/protocol/data/src/nsDataChannel.cpp#306 looks wrong to me: eventQ is never initialised, so I'm not surprised it dumps core. Removing line 306 fixes things for me, but generates new warnings when running the browser, so I think there may be other problems.
Assignee: gagan → valeski
Status: NEW → ASSIGNED
I have a fix for this. awaiting open tree.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fix checked in 12/2/99 2:03pm pac time.
Bulk move of all Networking-Core (to be deleted component) bugs to new Networking component.
Adding crash keyword
Keywords: crash
verif.
Status: RESOLVED → VERIFIED
linking to meta bug for the data URL
Blocks: 144766
You need to log in before you can comment on or make changes to this bug.