Hi Todd,
Please find below a gdb trace of it happening with --enable-yassl-testing
This is with version 0.9-73 of our code and libcyassl-2.4.0. We have tested with versions >= 0.9-73 and the same issue happens. When we downgrade cyassl to version 2.2.0, then the problem goes away.
Many thanks,
*Joe
^C
Program received signal SIGINT, Interrupt.
0x00007ffff70b32d3 in epoll_wait () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
in ../sysdeps/unix/syscall-template.S
(gdb) break bloxx_sslbump
Breakpoint 1 at 0x40c160: file src/bloxx.c, line 786.
(gdb) c
Continuing.
Wed Jul 4 09:43:51 2012: intofiy read error, will continue
Wed Jul 4 09:44:09 2012: Accepted a connection, sent to thread 0
Wed Jul 4 09:44:09 2012: Peer is from 172.21.127.11 port 51238
Wed Jul 4 09:44:09 2012: In ReadCb
Wed Jul 4 09:44:09 2012: Checking DownStream Headers
Wed Jul 4 09:44:09 2012: End of headers at 175
Wed Jul 4 09:44:09 2012: CONNECT 173.194.67.104:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Proxy-Connection: keep-alive
Host: 173.194.67.104
Wed Jul 4 09:44:09 2012: Trying to caputre proxy auth header if there
Wed Jul 4 09:44:09 2012: Search of evbuffer failed
Wed Jul 4 09:44:09 2012: No proxy auth header, ok
Wed Jul 4 09:44:09 2012: In FirstBumpInRequest
Wed Jul 4 09:44:09 2012: In GetRequestInfo
Wed Jul 4 09:44:09 2012:
request method = CONNECT
request uri = 173.194.67.104:443
request version = HTTP/1.1
request host = 173.194.67.104
request port = 443
Wed Jul 4 09:44:09 2012: In IsCertCached
Wed Jul 4 09:44:09 2012: Starting to get peer's cert
Wed Jul 4 09:44:09 2012: Check Headers continue
Wed Jul 4 09:44:09 2012: In EventCb
Wed Jul 4 09:44:09 2012: Connected to certStream nonblocking OK
Wed Jul 4 09:44:09 2012: Calling SSL_connect cert
Wed Jul 4 09:44:09 2012: Cyassl SendCb sent
Wed Jul 4 09:44:09 2012: CyaSSL Receive Cb requesting sz = 5
Wed Jul 4 09:44:09 2012: Cyassl ReceiveCb doesn't have any data ready yet
Wed Jul 4 09:44:09 2012: SSL_connect cert continue non/blocking
Wed Jul 4 09:44:09 2012: In ReadCb
Wed Jul 4 09:44:09 2012: Calling SSL_connect cert
Wed Jul 4 09:44:09 2012: CyaSSL Receive Cb requesting sz = 5
Wed Jul 4 09:44:09 2012: Cyassl ReceiveCb got data
Wed Jul 4 09:44:09 2012: CyaSSL Receive Cb requesting sz = 74
Wed Jul 4 09:44:09 2012: Cyassl ReceiveCb got data
Wed Jul 4 09:44:09 2012: CyaSSL Receive Cb requesting sz = 5
Wed Jul 4 09:44:09 2012: Cyassl ReceiveCb got data
Wed Jul 4 09:44:09 2012: CyaSSL Receive Cb requesting sz = 1625
Wed Jul 4 09:44:09 2012: Cyassl ReceiveCb got data
Wed Jul 4 09:44:09 2012: CyaSSL Receive Cb requesting sz = 5
Wed Jul 4 09:44:09 2012: Cyassl ReceiveCb got data
Wed Jul 4 09:44:09 2012: CyaSSL Receive Cb requesting sz = 4
Wed Jul 4 09:44:09 2012: Cyassl ReceiveCb got data
Wed Jul 4 09:44:09 2012: SSL_connect cert success
Wed Jul 4 09:44:09 2012: Peer's cert is 805 bytes
Wed Jul 4 09:44:09 2012: Spoofed cert, now saving it
Wed Jul 4 09:44:09 2012: Caching spoofed cert
Wed Jul 4 09:44:09 2012: Scheduling downstream request
Wed Jul 4 09:44:09 2012: In ReadCb
Wed Jul 4 09:44:09 2012: Checking DownStream Headers
Wed Jul 4 09:44:09 2012: End of headers at 175
Wed Jul 4 09:44:09 2012: CONNECT 173.194.67.104:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Proxy-Connection: keep-alive
Host: 173.194.67.104
Wed Jul 4 09:44:09 2012: Trying to caputre proxy auth header if there
Wed Jul 4 09:44:09 2012: Search of evbuffer failed
Wed Jul 4 09:44:09 2012: No proxy auth header, ok
Wed Jul 4 09:44:09 2012: In FirstBumpInRequest
Wed Jul 4 09:44:09 2012: In GetRequestInfo
Wed Jul 4 09:44:09 2012:
request method = CONNECT
request uri = 173.194.67.104:443
request version = HTTP/1.1
request host = 173.194.67.104
request port = 443
Wed Jul 4 09:44:09 2012: In IsCertCached
Wed Jul 4 09:44:09 2012: We don't have bloxx answer yet, saving it
[Switching to Thread 0x7ffff6716700 (LWP 16392)]
Breakpoint 1, bloxx_sslbump (req=0x7ffff6705d00) at src/bloxx.c:786
786 {
(gdb) watch cert.subjectCN
Hardware watchpoint 2: cert.subjectCN
(gdb) n
Wed Jul 4 09:44:19 2012: intofiy read error, will continue
Wed Jul 4 09:44:19 2012: intofiy read error, will continue
Wed Jul 4 09:44:19 2012: intofiy read error, will continue
Wed Jul 4 09:44:19 2012: intofiy read error, will continue
787 assert(req);
(gdb)
Wed Jul 4 09:44:19 2012: intofiy read error, will continue
Wed Jul 4 09:44:19 2012: intofiy read error, will continue
788 assert(req->src);
(gdb)
Wed Jul 4 09:44:20 2012: intofiy read error, will continue
Wed Jul 4 09:44:20 2012: intofiy read error, will continue
789 assert(req->dst);
(gdb)
Wed Jul 4 09:44:20 2012: intofiy read error, will continue
Wed Jul 4 09:44:20 2012: intofiy read error, will continue
790 assert(req->cert.data);
(gdb)
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
791 assert(req->cert.len > 0);
(gdb)
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
798 DecodedCert cert = { };
(gdb)
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
Wed Jul 4 09:44:21 2012: intofiy read error, will continue
799 InitDecodedCert(&cert,
(gdb)
Wed Jul 4 09:44:23 2012: intofiy read error, will continue
Wed Jul 4 09:44:23 2012: intofiy read error, will continue
Wed Jul 4 09:44:23 2012: intofiy read error, will continue
Hardware watchpoint 2: cert.subjectCN
Old value = 0x7ffff6705c79 ""
New value = 0x0
0x00007ffff736d120 in InitDecodedCert () from /usr/lib/libcyassl.so.3
(gdb)
Single stepping until exit from function InitDecodedCert,
which has no line number information.
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
Wed Jul 4 09:44:24 2012: intofiy read error, will continue
bloxx_sslbump (req=<value optimized out>) at src/bloxx.c:803
803 if (ParseCert(&cert, CERT_TYPE, NO_VERIFY, 0) != 0)
(gdb)
Wed Jul 4 09:44:25 2012: intofiy read error, will continue
Wed Jul 4 09:44:25 2012: intofiy read error, will continue
Wed Jul 4 09:44:25 2012: intofiy read error, will continue
Wed Jul 4 09:44:25 2012: intofiy read error, will continue
Wed Jul 4 09:44:25 2012: intofiy read error, will continue
Wed Jul 4 09:44:25 2012: intofiy read error, will continue
Hardware watchpoint 2: cert.subjectCN
Old value = 0x0
New value = 0x61cf68 "www.google.com0\201\237\060\r\006\t*\206H\206\367\r\001\001\001\005"
0x00007ffff73707d4 in ?? () from /usr/lib/libcyassl.so.3
(gdb)
Cannot find bounds of current function
(gdb)