Closed Bug 596291 Opened 14 years ago Closed 12 years ago

Crash opening url with included username [@ mozalloc_abort | NS_DebugBreak_P]

Categories

(Core :: Networking: HTTP, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: wesj, Unassigned)

References

Details

(Keywords: crash)

Crash Data

Fennec crashes when navigting to: http://username@intranet.mozilla.org Error: ###!!! ABORT: HttpChannelParentListener::GetInterface: interface UUID={a63f70c0-148b-11d3-9333-00104ba0fd40} not yet supported! Use 'grep -ri UUID <mozilla_src>' to find the name of the interface, check http://tinyurl.com/255ojvu to see if a bug has already been filed, and if not, add one and make it block bug 516730. Thanks! (set NECKO_ERRORS_ARE_FATAL=0 in your environment to convert this error into a warning.): file /home/wes/src/mozilla-central/netwerk/protocol/http/HttpChannelParentListener.cpp, line 184 Stack: #0 0x00007ffff4064a75 in raise () from /lib/libc.so.6 #1 0x00007ffff40685c0 in abort () from /lib/libc.so.6 #2 0x00007ffff77b80ae in mozalloc_abort (msg=<value optimized out>) at /home/wes/src/mozilla-central/memory/mozalloc/mozalloc_abort.cpp:75 #3 0x00007ffff5f74327 in Abort (aSeverity=3, aStr=<value optimized out>, aExpr=<value optimized out>, aFile=0x7ffff640f670 "/home/wes/src/mozilla-central/netwerk/protocol/http/HttpChannelParentListener.cpp", aLine=<value optimized out>) at /home/wes/src/mozilla-central/xpcom/base/nsDebugImpl.cpp:379 #4 NS_DebugBreak_P (aSeverity=3, aStr=<value optimized out>, aExpr=<value optimized out>, aFile=0x7ffff640f670 "/home/wes/src/mozilla-central/netwerk/protocol/http/HttpChannelParentListener.cpp", aLine=<value optimized out>) at /home/wes/src/mozilla-central/xpcom/base/nsDebugImpl.cpp:366 #5 0x00007ffff51e6734 in mozilla::net::HttpChannelParentListener::GetInterface (this=<value optimized out>, aIID=..., result=0x7fffffffd640) at /home/wes/src/mozilla-central/netwerk/protocol/http/HttpChannelParentListener.cpp:184 #6 0x00007ffff51dd306 in NS_QueryNotificationCallbacks (this=0x7fffd3362de0, bundleKey=<value optimized out>, doYesNoPrompt=1) at ../../../dist/include/nsNetUtil.h:1266 #7 nsHttpChannelAuthProvider::ConfirmAuth (this=0x7fffd3362de0, bundleKey=<value optimized out>, doYesNoPrompt=1) at /home/wes/src/mozilla-central/netwerk/protocol/http/nsHttpChannelAuthProvider.cpp:1175 #8 0x00007ffff51dd73d in nsHttpChannelAuthProvider::CheckForSuperfluousAuth ( this=0x7fffd3362de0) at /home/wes/src/mozilla-central/netwerk/protocol/http/nsHttpChannelAuthProvider.cpp:245 #9 0x00007ffff51d8d5e in nsHttpChannel::ProcessResponse (this=0x7fffd34d2400) at /home/wes/src/mozilla-central/netwerk/protocol/http/nsHttpChannel.cpp:1056 #10 0x00007ffff513f9a0 in nsInputStreamPump::OnStateStart (this=0x7fffd33f2980) at /home/wes/src/mozilla-central/netwerk/base/src/nsInputStreamPump.cpp:441 #11 0x00007ffff5140a93 in nsInputStreamPump::OnInputStreamReady ( this=0x7fffd33f2980, stream=0x42fc) at /home/wes/src/mozilla-central/netwerk/base/src/nsInputStreamPump.cpp:397 #12 0x00007ffff5f5055e in nsInputStreamReadyEvent::Run() () from /home/wes/src/mobile-x86_64-unknown-linux-gnu/linux/dist/bin/libxul.so #13 0x00007ffff5f6a49d in nsThread::ProcessNextEvent (this=0x7fffec428700, mayWait=1, result=<value optimized out>) at /home/wes/src/mozilla-central/xpcom/threads/nsThread.cpp:547 #14 0x00007ffff5f20c76 in NS_ProcessNextEvent_P (thread=0x42fc, mayWait=17148) at nsThreadUtils.cpp:250 #15 0x00007ffff5e3bfa0 in mozilla::ipc::MessagePump::Run (this=0x7fffe6e23900, aDelegate=0x7fffe6e136a0) at /home/wes/src/mozilla-central/ipc/glue/MessagePump.cpp:134 #16 0x00007ffff5fa5e64 in MessageLoop::RunInternal (this=0x7fffe6e136a0) at /home/wes/src/mozilla-central/ipc/chromium/src/base/message_loop.cc:219 #17 0x00007ffff5fa5f12 in MessageLoop::RunHandler (this=0x42fc) at /home/wes/src/mozilla-central/ipc/chromium/src/base/message_loop.cc:202 #18 MessageLoop::Run (this=0x42fc) at /home/wes/src/mozilla-central/ipc/chromium/src/base/message_loop.cc:176 #19 0x00007ffff5d50e44 in nsBaseAppShell::Run (this=0x7fffe4095280) at /home/wes/src/mozilla-central/widget/src/xpwidgets/nsBaseAppShell.cpp:180 #20 0x00007ffff5b9f51f in nsAppStartup::Run (this=0x7fffe40c7650) at /home/wes/src/mozilla-central/toolkit/components/startup/src/nsAppStartup.cpp:191 #21 0x00007ffff5122323 in XRE_main (argc=<value optimized out>, argv=<value optimized out>, aAppData=<value optimized out>) at /home/wes/src/mozilla-central/toolkit/xre/nsAppRunner.cpp:3665 #22 0x0000000000401f13 in main (argc=1, argv=0x7fffffffe368) at /home/wes/src/mozilla-central/mobile/app/nsBrowserApp.cpp:155
According to MXR, a63f70c0-148b-11d3-9333-00104ba0fd40 is nsIPrompt.
Blocks: fennecko
Component: General → Networking: HTTP
Product: Fennec → Core
QA Contact: general → networking.http
Thanks Josh. I can't reproduce this with a nightly, so maybe its something in my build.
If I'm correct, to solve the crash, when HttpChannelParentListener is GI'ed for nsIPrompt it has to forward to TabParent through either GetItnerface or some new method, that implements following code (snippet from nsWindowWatcher): NS_IMETHODIMP nsWindowWatcher::GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval) { // This is for backwards compat only. Callers should just use the prompt service directly. nsresult rv; nsCOMPtr<nsIPromptFactory> factory = do_GetService("@mozilla.org/prompter;1", &rv); NS_ENSURE_SUCCESS(rv, rv); return factory->GetPrompt(aParent, NS_GET_IID(nsIPrompt), reinterpret_cast<void**>(_retval)); } TabParent already has the nsIDOMWindow, we just have to make sure it is correct for this purpose, see TabParent::GetAuthPrompt.
Severity: normal → critical
Keywords: crash
Summary: Crash opening url with included username → Crash opening url with included username [@ mozalloc_abort | NS_DebugBreak_P]
Crash Signature: [@ mozalloc_abort | NS_DebugBreak_P]
I also can't reproduce this. In fact, the prompts are working perfectly for me. WORKSFORME since Wes also couldn't reproduce, and this bug is old.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.