Skip to content

Conversation

@liodot
Copy link
Contributor

@liodot liodot commented Jun 29, 2017

#2220

When ATS is configured to use a hosts file (via proxy.config.hostdb.host_file.path) and fails to open it, there's a crash:
#0 0x00000000006e4ccc in std::_Rb_tree<ts::ConstBuffer, std::pair<ts::ConstBuffer const, IpAddr>, std::_Select1st<std::pair<ts::ConstBuffer const, IpAddr> >, CmpConstBuffferCaseInsensitive, std::allocator<std::pair<ts::ConstBuffer const, IpAddr> > >::_M_begin (this=0x10) at /usr/include/c++/4.9/bits/stl_tree.h:518
#1 0x00000000006e4f05 in std::_Rb_tree<ts::ConstBuffer, std::pair<ts::ConstBuffer const, IpAddr>, std::_Select1st<std::pair<ts::ConstBuffer const, IpAddr> >, CmpConstBuffferCaseInsensitive, std::allocator<std::pair<ts::ConstBuffer const, IpAddr> > >::find (this=0x10, __k=...) at /usr/include/c++/4.9/bits/stl_tree.h:1913
#2 0x00000000006e48a9 in std::map<ts::ConstBuffer, IpAddr, CmpConstBuffferCaseInsensitive, std::allocator<std::pair<ts::ConstBuffer const, IpAddr> > >::find (this=0x10, __x=...)
at /usr/include/c++/4.9/bits/stl_map.h:860
#3 0x00000000006dd237 in HostDBContinuation::do_dns (this=0x7f8e1a9d65e0) at HostDB.cc:1993
#4 0x00000000006dcd91 in HostDBContinuation::probeEvent (this=0x7f8e1a9d65e0, e=0x7f8df0252b00) at HostDB.cc:1932
#5 0x000000000050ce28 in Continuation::handleEvent (this=0x7f8e1a9d65e0, event=2, data=0x7f8df0252b00) at ../iocore/eventsystem/I_Continuation.h:153
#6 0x00000000007b7d11 in EThread::process_event (this=0x7f8e16c0a010, e=0x7f8df0252b00, calling_code=2) at UnixEThread.cc:148
#7 0x00000000007b8120 in EThread::execute (this=0x7f8e16c0a010) at UnixEThread.cc:230
#8 0x00000000007b72bb in spawn_thread_internal (a=0x1612870) at Thread.cc:86
#9 0x00007f8e193eb6ba in start_thread (arg=0x7f8e161ff700) at pthread_create.c:333
#10 0x00007f8e1867582d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Found on ATS 6.2.1 but looks applicable to current master.

@zwoop zwoop requested a review from bryancall June 29, 2017 16:35
@zwoop zwoop added the DNS label Jun 29, 2017
@zwoop zwoop modified the milestones: 7.1.1, 7.1.0 Jun 29, 2017
@zwoop zwoop added the HostDB label Jun 29, 2017
@zwoop
Copy link
Contributor

zwoop commented Jun 29, 2017

[approve ci].

@zwoop
Copy link
Contributor

zwoop commented Jun 29, 2017

Please run "make clang-format" and push the updated changes (squash the commits as well, so you will have to force push).

@liodot liodot force-pushed the null_hosts_file_ptr branch from 6d25693 to 2be4a64 Compare June 29, 2017 16:54
@liodot
Copy link
Contributor Author

liodot commented Jun 29, 2017

I've done a forced push after running "make clang-format"

@zwoop
Copy link
Contributor

zwoop commented Jun 29, 2017

[approve ci].

Copy link
Contributor

@zwoop zwoop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@zwoop zwoop merged commit 0564042 into apache:master Jun 29, 2017
@zwoop
Copy link
Contributor

zwoop commented Jun 29, 2017

Cherry picked to 7.0.x

@liodot liodot deleted the null_hosts_file_ptr branch June 30, 2017 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants