Full debug output...
daniel:~/projects/aicxx/ai-evio-testsuite/ai-evio-testsuite/src>tls_socket
WARNING : core size is limited (hard limit: 0 kb). Core dumps might be truncated!
THREADPOOL : Entering add_threads(30)
ThreadPool00 NOTICE : Thread started. Set debug margin to "ThreadPool00 ".
ThreadPool01 NOTICE : Thread started. Set debug margin to "ThreadPool01 ".
ThreadPool02 NOTICE : Thread started. Set debug margin to "ThreadPool02 ".
ThreadPool03 NOTICE : Thread started. Set debug margin to "ThreadPool03 ".
ThreadPool04 NOTICE : Thread started. Set debug margin to "ThreadPool04 ".
ThreadPool05 NOTICE : Thread started. Set debug margin to "ThreadPool05 ".
ThreadPool07 NOTICE : Thread started. Set debug margin to "ThreadPool07 ".
ThreadPool06 NOTICE : Thread started. Set debug margin to "ThreadPool06 ".
ThreadPool08 NOTICE : Thread started. Set debug margin to "ThreadPool08 ".
ThreadPool09 NOTICE : Thread started. Set debug margin to "ThreadPool09 ".
ThreadPool10 NOTICE : Thread started. Set debug margin to "ThreadPool10 ".
ThreadPool11 NOTICE : Thread started. Set debug margin to "ThreadPool11 ".
ThreadPool12 NOTICE : Thread started. Set debug margin to "ThreadPool12 ".
ThreadPool13 NOTICE : Thread started. Set debug margin to "ThreadPool13 ".
ThreadPool14 NOTICE : Thread started. Set debug margin to "ThreadPool14 ".
ThreadPool15 NOTICE : Thread started. Set debug margin to "ThreadPool15 ".
ThreadPool16 NOTICE : Thread started. Set debug margin to "ThreadPool16 ".
ThreadPool17 NOTICE : Thread started. Set debug margin to "ThreadPool17 ".
ThreadPool19 NOTICE : Thread started. Set debug margin to "ThreadPool19 ".
ThreadPool18 NOTICE : Thread started. Set debug margin to "ThreadPool18 ".
ThreadPool20 NOTICE : Thread started. Set debug margin to "ThreadPool20 ".
ThreadPool21 NOTICE : Thread started. Set debug margin to "ThreadPool21 ".
ThreadPool22 NOTICE : Thread started. Set debug margin to "ThreadPool22 ".
ThreadPool23 NOTICE : Thread started. Set debug margin to "ThreadPool23 ".
ThreadPool24 NOTICE : Thread started. Set debug margin to "ThreadPool24 ".
ThreadPool25 NOTICE : Thread started. Set debug margin to "ThreadPool25 ".
ThreadPool26 NOTICE : Thread started. Set debug margin to "ThreadPool26 ".
ThreadPool27 NOTICE : Thread started. Set debug margin to "ThreadPool27 ".
ThreadPool29 NOTICE : Thread started. Set debug margin to "ThreadPool29 ".
THREADPOOL : Entering AIThreadPool::new_queue(16, 1)
ThreadPool28 NOTICE : Thread started. Set debug margin to "ThreadPool28 ".
THREADPOOL : Returning index #0; size is now 1 for utils::Vector<AIThreadPool::PriorityQueue, utils::VectorIndex<ordering_category::QueueHandle>, std::allocator<AIThreadPool::PriorityQueue> > at 0x7ffeacb27578
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool08 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool24 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool07 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool22 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool27 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool17 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool11 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool20 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool05 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool28 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool12 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool01 THREADPOOL : Beginning of thread pool main loop (q = #0)
EVIO : Entering EventLoop::EventLoop(#0)
EVIO : Entering EventLoopThread::init(#0)
ThreadPool16 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool02 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool04 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool00 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool23 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool21 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool03 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool13 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool18 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool10 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool09 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool15 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool26 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool25 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool29 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool19 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool14 THREADPOOL : Beginning of thread pool main loop (q = #0)
EventLoopThr NOTICE : Thread started. Set debug margin to "EventLoopThr ".
EventLoopThr EVIO : Entering EventLoopThread::emain() [no indentation]
EventLoopThr SYSTEM : epoll_create1(EPOLL_CLOEXEC) = 14
EventLoopThr NOTICE : Entering Signals::unblock(sigmask, 34, 0x55a873a79ae0)
EventLoopThr NOTICE : Entering Signals::register_callback(34, 0x55a873a79ae0)
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
EVIO : Entering evio::create<evio::TLSSocket>()
EVIO : Entering InputDevice::InputDevice() [FD:0x55a875899140]
EVIO : Entering OutputDevice::OutputDevice() [FD:0x55a875899140]
EVIO : Entering Socket::Socket() [FD:0x55a875899140]
TLS : Entering TLS::TLS() [0x55a8758990a0]
TLS : Entering evio::protocol::TLS::global_tls_initialization()
TLS : wolfSSL_Init() = SSL_SUCCESS
TLS : wolfSSL_CTX_new(wolfTLS_client_method()) = 0x55a875899270
TLS : wolfSSL_CTX_SetMinVersion(0x55a875899270, WOLFSSL_TLSV1_2) = SSL_SUCCESS
TLS : wolfSSL_CTX_load_verify_locations(s_context, "/etc/ssl/cert.pem", NULL) = SSL_SUCCESS
TLS : wolfSSL_CTX_load_verify_locations(s_context, "/usr/src/AUR/wolfssl/wolfssl-examples-git/certs/ca-cert.pem", NULL) = SSL_SUCCESS
EVIO : Returning device pointer 0x55a875898fc0 [FD:0x55a875899140].
EVIO : Entering OutputDevice::set_source<>(0x7ffeacb27320) [FD:0x55a875899140]
EVIO : Entering OutputStream::create_buffer(FD:0x55a875899140, 1048320, 18446744073709551615)
IO : Entering StreamBuf(131040, 1048320, 18446744073709551615) [0x55a8758d64c0]
EVIO : StreamBufProducer::create: allocating new memory block of size 131040
EVIO : Entering InputDevice::set_sink<>(0x7ffeacb272b8) [FD:0x55a875899140]
EVIO : Entering InputDecoder::create_buffer(FD:0x55a875899140, 65280, 18446744073709551615)
IO : Entering StreamBuf(8160, 65280, 18446744073709551615) [0x55a8758d6590]
EVIO : StreamBufProducer::create: allocating new memory block of size 8160
EVIO : Entering TLS::set_device(FD:0x55a875899140, FD:0x55a875899140)
EVIO : Entering Socket::connect(127.0.0.1:11111, 0, 0, AF_UNSPEC) [FD:0x55a875899140]
SYSTEM : socket(2, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0) = 15
NOTICE : Setting receive buffer size for socket 15 to 8160 bytes.
SYSTEM : setsockopt(15, SOL_SOCKET, SO_RCVBUF, {8160}, 4) = 0
NOTICE : Setting send buffer size for socket 15 to 131040 bytes.
SYSTEM : setsockopt(15, SOL_SOCKET, SO_SNDBUF, {131040}, 4) = 0
SYSTEM : connect(15, 127.0.0.1:11111, 16) = -1: EINPROGRESS (Operation now in progress)
EVIO : Entering FileDescriptor::init(15) [FD:0x55a875899140]
EVIO : Entering InputDevice::init_input_device() [FD:0x55a875899140]
IO : Entering OutputDevice::init_output_device() [FD:0x55a875899140]
EVIO : Entering InputDevice::start_input_device({{m_flags:FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME, m_epoll_event:{events:, data:FD:0x55a875899140}}}) [FD:0x55a875899140]
EVIO : Entering EventLoopThread::start({m_flags:FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME, m_epoll_event:{events:, data:FD:0x55a875899140}}, 32, FD:0x55a875899140)
EVIO : Incremented m_active to 1
EVIO : Incremented ref count (now 4) [FD:0x55a875899140]
SYSTEM : epoll_ctl(14, EPOLL_CTL_ADD, 15, {{events:EPOLLIN|EPOLLET, data:FD:0x55a875899140}}) = 0
EVIO : Entering OutputDevice::start_output_device({m_flags:FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_R_ACTIVE, m_epoll_event:{events:EPOLLIN|EPOLLET, data:FD:0x55a875899140}}) [FD:0x55a875899140]
EVIO : Entering EventLoopThread::start({m_flags:FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_R_ACTIVE, m_epoll_event:{events:EPOLLIN|EPOLLET, data:FD:0x55a875899140}}, 128, FD:0x55a875899140)
EVIO : Incremented m_active to 2
SYSTEM : epoll_ctl(14, EPOLL_CTL_MOD, 15, {{events:EPOLLIN|EPOLLOUT|EPOLLET, data:FD:0x55a875899140}}) = 0
EVIO : Entering StreamBuf::xsputn_a("GET /\r\n", 7) [0x55a8758d64c0] = 7
EVIO : Entering TLSSocket::sync()
EventLoopThr SYSTEM : <continued> 1
TLS : m_session_state == preconnect
EventLoopThr EVIO : epoll_pwait new event(s): EPOLLOUT
IO : Decremented ref count of device FD:0x55a875899140 to 3
EVIO : Entering EventLoop::~EventLoop()
EventLoopThr EVIO : Queuing I/O event EPOLLOUT for FD:0x55a875899140 in thread pool queue #0
EVIO : Entering EventLoopThread::terminate(1)
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
EVIO : Sending wake-up signal 34
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE|FDS_W_ACTIVE
EVIO : Joining m_event_thread... <unfinished>
ThreadPool06 THREADPOOL : Not going idle.
EventLoopThr SYSTEM : <continued> -1: EINTR (Interrupted system call)
ThreadPool06 EVIO : Beginning of handling event EPOLLOUT for FD:0x55a875899140.
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
ThreadPool06 EVIO : Entering TLSSocket::write_to_fd({1}, 15) [FD:0x55a875899140]
ThreadPool06 EVIO : m_session_state == preconnect
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE|FDS_W_ACTIVE
ThreadPool06 TLS : Entering TLS::session_init("www.google.com")
ThreadPool06 TLS : wolfSSL_new(0x55a875899270) = 0x7f14bc0018d0
ThreadPool06 TLS : wolfSSL_set_fd(0x7f14bc0018d0, 15) = SSL_SUCCESS
ThreadPool06 EVIO : session_state = handshake_want_write
ThreadPool06 TLS : wolfSSL_connect(0x7f14bc0018d0) = SSL_FATAL_ERROR (WOLFSSL_ERROR_WANT_READ: non-blocking socket wants data to be read)
ThreadPool06 TLS : wolfSSL_want_read(0x7f14bc0018d0) returned true.
ThreadPool06 EVIO : Entering OutputDevice::stop_output_device({1}) [FD:0x55a875899140]
ThreadPool06 SYSTEM : epoll_ctl(14, EPOLL_CTL_MOD, 15, {{events:EPOLLIN|EPOLLET, data:FD:0x55a875899140}}) = 0
ThreadPool06 EVIO : Decremented m_active to 1
ThreadPool06 EVIO : flags are now: FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE
ThreadPool06 EVIO : session_state == handshake_want_read
ThreadPool06 TLS : Set m_session_state to session_state (handshake_want_read).
ThreadPool06 EVIO : Entering FileDescriptor::clear_pending_output_events(14, EPOLLOUT) [FD:0x55a875899140] returning new events: none
ThreadPool06 IO : Decremented ref count of device FD:0x55a875899140 to 3
ThreadPool06 THREADPOOL : task() returned 0
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
EventLoopThr SYSTEM : <continued> 1
EventLoopThr EVIO : epoll_pwait new event(s): EPOLLIN
EventLoopThr EVIO : Queuing I/O event EPOLLIN for FD:0x55a875899140 in thread pool queue #0
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
ThreadPool06 THREADPOOL : Not going idle.
ThreadPool06 EVIO : Beginning of handling event EPOLLIN for FD:0x55a875899140.
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE
ThreadPool06 EVIO : Entering TLSSocket::read_from_fd({1}, 15) [FD:0x55a875899140]
ThreadPool06 TLS : m_session_state == handshake_want_read
EventLoopThr SYSTEM : <continued> 1
EventLoopThr EVIO : epoll_pwait event(s) EPOLLIN of fd FD:0x55a875899140 ignored because the event(s) EPOLLIN is/are already being handled by the thread pool.
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE
ThreadPool06 TLS : wolfSSL_connect(0x7f14bc0018d0) = SSL_FATAL_ERROR (WOLFSSL_ERROR_WANT_READ: non-blocking socket wants data to be read)
ThreadPool06 TLS : wolfSSL_want_read(0x7f14bc0018d0) returned true.
ThreadPool06 EVIO : Entering FileDescriptor::clear_pending_input_event(14) [FD:0x55a875899140]
ThreadPool06 SYSTEM : epoll_ctl(14, EPOLL_CTL_MOD, 15, {{events:EPOLLIN|EPOLLET, data:FD:0x55a875899140}}) = 0
ThreadPool06 IO : Decremented ref count of device FD:0x55a875899140 to 3
ThreadPool06 THREADPOOL : task() returned 0
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
EventLoopThr SYSTEM : <continued> 1
EventLoopThr EVIO : epoll_pwait new event(s): EPOLLIN
EventLoopThr EVIO : Queuing I/O event EPOLLIN for FD:0x55a875899140 in thread pool queue #0
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
ThreadPool06 THREADPOOL : Not going idle.
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE
ThreadPool06 EVIO : Beginning of handling event EPOLLIN for FD:0x55a875899140.
EventLoopThr SYSTEM : <continued> 1
ThreadPool06 EVIO : Entering TLSSocket::read_from_fd({1}, 15) [FD:0x55a875899140]
EventLoopThr EVIO : epoll_pwait event(s) EPOLLIN of fd FD:0x55a875899140 ignored because the event(s) EPOLLIN is/are already being handled by the thread pool.
ThreadPool06 TLS : m_session_state == handshake_want_read
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE
ThreadPool06 TLS : wolfSSL_connect(0x7f14bc0018d0) = SSL_FATAL_ERROR (WOLFSSL_ERROR_WANT_READ: non-blocking socket wants data to be read)
ThreadPool06 TLS : wolfSSL_want_read(0x7f14bc0018d0) returned true.
ThreadPool06 EVIO : Entering FileDescriptor::clear_pending_input_event(14) [FD:0x55a875899140]
ThreadPool06 SYSTEM : epoll_ctl(14, EPOLL_CTL_MOD, 15, {{events:EPOLLIN|EPOLLET, data:FD:0x55a875899140}}) = 0
ThreadPool06 IO : Decremented ref count of device FD:0x55a875899140 to 3
ThreadPool06 THREADPOOL : task() returned 0
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
EventLoopThr SYSTEM : <continued> 1
EventLoopThr EVIO : epoll_pwait new event(s): EPOLLIN
EventLoopThr EVIO : Queuing I/O event EPOLLIN for FD:0x55a875899140 in thread pool queue #0
ThreadPool06 THREADPOOL : Beginning of thread pool main loop (q = #0)
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
ThreadPool06 THREADPOOL : Not going idle.
ThreadPool06 EVIO : Beginning of handling event EPOLLIN for FD:0x55a875899140.
ThreadPool06 EVIO : Entering TLSSocket::read_from_fd({1}, 15) [FD:0x55a875899140]
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE
ThreadPool06 TLS : m_session_state == handshake_want_read
EventLoopThr SYSTEM : <continued> 1
EventLoopThr EVIO : epoll_pwait event(s) EPOLLIN of fd FD:0x55a875899140 ignored because the event(s) EPOLLIN is/are already being handled by the thread pool.
EventLoopThr SYSTEM : epoll_pwait() = <unfinished>
EventLoopThr SYSTEM : FD:0x55a875899140: 15, FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE
ThreadPool06 TLS : wolfSSL_connect(0x7f14bc0018d0) = SSL_SUCCESS
ThreadPool06 EVIO : Entering OutputDevice::start_output_device({m_flags:FDS_RW|FDS_R_OPEN|FDS_W_OPEN|FDS_SAME|FDS_R_ADDED|FDS_W_ADDED|FDS_R_ACTIVE, m_epoll_event:{events:EPOLLIN|EPOLLET, data:FD:0x55a875899140}}, {FuzzyCondition: before: fuzzy::True, after: fuzzy::True}) [FD:0x55a875899140]
ThreadPool06 COREDUMP : /home/carlo/projects/aicxx/ai-evio-testsuite/ai-evio-testsuite/evio/OutputDevice.cxx:112: bool evio::OutputDevice::start_output_device(const state_t::wat &, const utils::FuzzyCondition &): Assertion `condition.is_transitory_true()' failed.