Closed Bug 1215784 Opened 9 years ago Closed 9 years ago

Segfault on mozilla-central tip when using nonexistant proxies

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1214200
Tracking Status
firefox44 --- affected

People

(Reporter: manishearth, Unassigned)

References

Details

(Keywords: crash)

Attachments

(1 file)

Attached file Backtrace
STR:

 - Prefs>Advanced>Network, set a random nonexistant HTTP proxy (ensure that you set a port).
 - Open websites. Firefox will crash.

Top of backtrace (full bt attached):


#0  0x00007fffe8af9bfc in fetch_sub (__m=std::memory_order_seq_cst, __i=1, this=this@entry=0x8)
    at /usr/include/c++/4.9/bits/atomic_base.h:628
#1  sub (aVal=1, aPtr=...) at ../../dist/include/mozilla/Atomics.h:259
#2  dec (aPtr=...) at ../../dist/include/mozilla/Atomics.h:291
#3  mozilla::detail::AtomicBaseIncDec<unsigned long, (mozilla::MemoryOrdering)2>::operator-- (this=this@entry=0x8)
    at ../../dist/include/mozilla/Atomics.h:565
#4  0x00007fffe8b88710 in operator-- (this=0x8) at ../../dist/include/nsISupportsImpl.h:353
#5  nsProxyInfo::Release (this=0x0) at /home/manishearth/Mozilla/mozilla-central/netwerk/base/nsProxyInfo.cpp:11
#6  0x00007fffe8b88983 in nsProtocolProxyService::PruneProxyInfo (this=0x7fffdb71f600, info=..., 
    list=0x7fffffff99d0) at /home/manishearth/Mozilla/mozilla-central/netwerk/base/nsProtocolProxyService.cpp:2011
#7  0x00007fffe8b88b5e in nsProtocolProxyService::ApplyFilters (this=0x7fffdb71f600, channel=0x7fffccdffa50, 
    info=..., list=0x7fffffff99d0)
    at /home/manishearth/Mozilla/mozilla-central/netwerk/base/nsProtocolProxyService.cpp:1930
#8  0x00007fffe8b8ebe0 in nsProtocolProxyService::ApplyFilters (this=<optimized out>, channel=<optimized out>, 
    info=..., proxyInfo=...) at /home/manishearth/Mozilla/mozilla-central/netwerk/base/nsProtocolProxyService.h:253
#9  0x00007fffe8b8bdf5 in nsProtocolProxyService::AsyncResolveInternal (this=0x7fffdb71f600, 
    channel=0x7fffccdffa50, flags=0, callback=0x7fffffff9a30, result=0x7fffccdffed0, isSyncOK=5)
    at /home/manishearth/Mozilla/mozilla-central/netwerk/base/nsProtocolProxyService.cpp:1273


I had been editing nsProtocolProxyService.cpp, but I did an hg qpop, and a clean (not even clobber, deleted the objdir) build of nightly and it still happens.
Keywords: crash
Summary: Segfault on mozilla-central tip when using proxies → Segfault on mozilla-central tip when using nonexistant proxies
This happens on the downloadable nightly too. I'm on linux.
:capella verified that the same thing crashes on his machine too (nightly build).

Bogus proxy needs to be something like `foo.bar`, just setting a random IP address won't work.


20151013030225
https://hg.mozilla.org/mozilla-central/rev/607a236c229994df99766c005f9ec729532d7747

is another crashing nightly

20150929102827
https://hg.mozilla.org/mozilla-central/rev/ccee6614fd9d18a31f263fbcfe9676b224d851aa


isn't.

I'm going to bisect.
Depends on: 1121800
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: