The request finishes successfully (the client gets the results) but then cntlm goes down with a SIGSEGV:
Connection => close
Content-Length => 93
Proxy-Authenticate => NTLM
Sending headers (5)...
Body included. Length: 93
data_send: read 93 of 93 / 93 of 93 (errno = ok)
data_send: wrote 93 of 93
Body sent.
PROXY CLOSING CONNECTION
forward_request: palive=0, authok=0, ntlm=0, closed=1
Thread finished.
proxy_thread: request rc = 0xffffffffffffffff
Joined thread 70366707252944; rc: 0
In gdb, I'm seeing this, it appears to be a NULL pointer dereference, likely associated wioth the -1 return from proxy_thread()
:
Thread finished.
proxy_thread: request rc = 0xffffffffffffffff
[LWP 16317 exited]
Joined thread 70367536021200; rc: 0
Thread 1 "cntlm" received signal SIGSEGV, Segmentation fault.
0x0000000010002b08 in main ()
(gdb)
(gdb) x/4i $pc
=> 0x10002b08 <main+10568>: lxvd2x vs0,0,r9
0x10002b0c <main+10572>: stxvd2x vs0,r1,r10
0x10002b10 <main+10576>: bl 0x1013408c <select+8>
0x10002b14 <main+10580>: nop
(gdb) i r vs0 r9
vs0 {uint128 = 0x00000000000000000000000000000000, v2_double = {0x0, 0x0}, v4_float = {0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}}
r9 0x0 0
(gdb) bt
#0 0x0000000010002b08 in main ()
(gdb)
I'll look into this more as I get a chance. If you prefer, you can close the issue here and I can open it on my fork