Closed Bug 570704 Opened 14 years ago Closed 14 years ago

[E10S] Fennec+electrolysis crashes when it tries to access non-responding port

Categories

(Core :: IPC, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 569044

People

(Reporter: tero.koskinen, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fi-FI; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Build Identifier: 

Fennec+electrolysis crashes when I try to open address which does not respond.

Reproducible: Always

Steps to Reproduce:
1. Make sure no-one is listening port localhost:8899
2. Open Fennec+Electrolysis
3. Open URL http://localhost:8899/
Actual Results:  
Crash.

Expected Results:  
Error message about invalid address.

Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0xb6161cc2 in nsTArray_base::Length() const () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
(gdb) bt
#0  0xb6161cc2 in nsTArray_base::Length() const () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#1  0xb705aef9 in IPC::ParamTraits<nsTArray<nsHttpHeaderArray::nsEntry> >::Write(IPC::Message*, nsTArray<nsHttpHeaderArray::nsEntry> const&) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#2  0xb705a152 in void IPC::WriteParam<nsTArray<nsHttpHeaderArray::nsEntry> >(IPC::Message*, nsTArray<nsHttpHeaderArray::nsEntry> const&) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#3  0xb705a5a3 in IPC::ParamTraits<nsHttpHeaderArray>::Write(IPC::Message*, nsHttpHeaderArray const&) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#4  0xb705a16c in void IPC::WriteParam<nsHttpHeaderArray>(IPC::Message*, nsHttpHeaderArray const&) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#5  0xb705a5bd in IPC::ParamTraits<nsHttpResponseHead>::Write(IPC::Message*, nsHttpResponseHead const&) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#6  0xb705a1fc in void IPC::WriteParam<nsHttpResponseHead>(IPC::Message*, nsHttpResponseHead const&) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#7  0xb705ad54 in void mozilla::net::PHttpChannelParent::Write<nsHttpResponseHead>(nsHttpResponseHead const&, IPC::Message*) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#8  0xb7058c0d in mozilla::net::PHttpChannelParent::SendOnStartRequest(nsHttpResponseHead const&) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#9  0xb6259f0a in mozilla::net::HttpChannelParent::OnStartRequest(nsIRequest*, nsISupports*) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#10 0xb6246ba3 in nsHttpChannel::CallOnStartRequest() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#11 0xb6252a3c in nsHttpChannel::OnStartRequest(nsIRequest*, nsISupports*) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#12 0xb6197096 in nsInputStreamPump::OnStateStart() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#13 0xb6196f8e in nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#14 0xb714d40a in nsInputStreamReadyEvent::Run() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#15 0xb7170343 in nsThread::ProcessNextEvent(int, int*) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#16 0xb711e5aa in NS_ProcessNextEvent_P(nsIThread*, int) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#17 0xb7013357 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#18 0xb71d5036 in MessageLoop::RunInternal() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#19 0xb71d5001 in MessageLoop::RunHandler() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#20 0xb71d4fa5 in MessageLoop::Run() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#21 0xb6ef40ee in nsBaseAppShell::Run() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#22 0xb6d0db98 in nsAppStartup::Run() () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#23 0xb6171971 in XRE_main () from /work/tkoskine/mobile/mobilebase-a/mobile/dist/bin/xulrunner/libxul.so
#24 0x0804a3e3 in main ()
(gdb)

Operating system: Ubuntu 10.04/i386

Used revisions:
 ae03b58ae488 from http://hg.mozilla.org/projects/electrolysis
 2bdaf91d4f4d from http://hg.mozilla.org/users/pavlov_mozilla.com/mobile-e10s

Used mozconfig:
# Options for client.mk.
mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mobilebase-a

# Global options
ac_add_options --disable-debug
ac_add_options --disable-optimize
ac_add_options --enable-tests
ac_add_options --disable-crashreporter

# XULRunner options
ac_add_app_options xulrunner --enable-application=xulrunner
ac_add_app_options xulrunner --disable-javaxpcom

# mobile options
ac_add_app_options mobile --enable-application=mobile
ac_add_app_options mobile --with-libxul-sdk=../xulrunner/dist

ac_add_app_options mobile --enable-chrome-format=flat

ac_add_options --enable-ipc

export MOZ_MAKE_FLAGS=-j9
mk_add_options MOZ_MAKE_FLAGS=-j9
##END
Attached patch fixes the crash for me and shows "Unable to connect" message.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: