Hi Jesse,
Le 01/09/2015 23:09, Jesse Hathaway a écrit :
I received the same segfault on two different hosts with the following
sanitized config. I am not sure how to debug further at this point, any advice
would be appreciated.
(...)
gdb backtrace:
Program terminated with signal 11, Segmentation fault.
#0 http_end_txn_clean_session (s=s@entry=0x140cd50) at src/proto_http.c:5164
5164 src/proto_http.c: No such file or directory.
#0 http_end_txn_clean_session (s=s@entry=0x140cd50) at src/proto_http.c:5164
prev_status = 401
fe = 0x12a6220
srv_conn = 0x0
I haven't made some tests yet, but I guess the issue is on srv_conn due
to this part of code in proto_http.c :
if (((s->txn->flags & TX_CON_WANT_MSK) != TX_CON_WANT_KAL) ||
!si_conn_ready(&s->si[1])) {
si_release_endpoint(&s->si[1]);
srv_conn = NULL;
}
[...]
if (prev_status == 401 || prev_status == 407) {
[...]
s->txn->flags |= TX_PREFER_LAST;
srv_conn->flags |= CO_FL_PRIVATE;
}
In some conditions, srv_conn is set to NULL but is then used later.
--
Cyril Bonté