[R5.0-93]- agent crash at HttpServer::HttpServer(EventManager*, SslConfig const&, unsigned char)

Bug #1776627 reported by alok kumar on 2018-06-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Won't Fix
Low
Ashok Singh
Trunk
New
Low
Ashok Singh

Bug Description

(gdb) bt
#0 0x00007f7efcb31277 in raise () from /lib64/libc.so.6
#1 0x00007f7efcb32968 in abort () from /lib64/libc.so.6
#2 0x00007f7efcb2a096 in __assert_fail_base () from /lib64/libc.so.6
#3 0x00007f7efcb2a142 in __assert_fail () from /lib64/libc.so.6
#4 0x0000000000e87ee2 in TaskEntry::~TaskEntry() ()
#5 0x0000000000e87fc1 in TaskGroup::~TaskGroup() ()
#6 0x0000000000e88647 in TaskScheduler::~TaskScheduler() ()
#7 0x0000000000e8e081 in boost::scoped_ptr<TaskScheduler>::~scoped_ptr() ()
#8 0x00007f7efcb34bd9 in __run_exit_handlers () from /lib64/libc.so.6
#9 0x00007f7efcb34c27 in exit () from /lib64/libc.so.6
#10 0x0000000000d9524a in HttpServer::HttpServer(EventManager*, SslConfig const&, unsigned char) ()
#11 0x0000000000daa50f in SandeshHttp::Init(EventManager*, std::string, short, boost::function<int (SandeshRequest*)>, int*, SandeshConfig const&) ()
#12 0x0000000000da0ffb in Sandesh::Initialize(Sandesh::SandeshRole::type, std::string const&, std::string const&, std::string const&, std::string const&, EventManager*, unsigned short, SandeshContext*, SandeshConfig const&) ()
#13 0x0000000000da131e in Sandesh::InitGenerator(std::string const&, std::string const&, std::string const&, std::string const&, EventManager*, unsigned short, std::vector<std::string, std::allocator<std::string> > const&, SandeshContext*, std::map<std::string, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > > > >, SandeshConfig const&) ()
#14 0x0000000000d4b987 in Agent::InitCollector() ()
#15 0x0000000001457f6d in AgentInit::InitCollectorBase() ()
#16 0x0000000001458c7a in AgentInit::SetResourceManagerReady() ()
#17 0x0000000000d72ccc in ResourceManager::ResourceManager(Agent*) ()
#18 0x0000000001458cf3 in AgentInit::CreateResourceManager() ()
#19 0x0000000001458d80 in AgentInit::InitBase() ()
#20 0x0000000000e92cd7 in TaskTrigger::WorkerTask::Run() ()
#21 0x0000000000e8c8cf in TaskImpl::execute() ()
#22 0x00007f7efd7088ca in ?? ()
#23 0x01017f7e00000000 in ?? ()
#24 0x00007f7ef71b3f40 in ?? ()
#25 0x0000000000000001 in ?? ()
#26 0x00007f7ef67dec08 in ?? ()
#27 0x00007f7ef71b3f28 in ?? ()
#28 0x0000000000000000 in ?? ()

core is seen during agent docker restart in SSL introspect testing.
testcase: test_introspect_cert_without_cn

core and binary are at /cs-shared/bugs/<bugId>

alok kumar (kalok) wrote :

[root@nodec18 ~]# uname -a
Linux nodec18 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@nodec18 ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

contrail-version: ocata-5.0-93

Ashok Singh (ashoksr) wrote :

Crash happens at https://github.com/Juniper/contrail-controller/blame/R4.1/src/http/http_server.cc#L44

When loading of CA certificate file specified in SSL config fails, we hit the assert.

Ashok Singh (ashoksr) wrote :

This is a negative test-case, tested with invalid CA certificate file.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers