mhttpd multithread crash
Issue #293
resolved
There is a bug in the new mhttpd multithreading code. It does not happen often, but it causes mhttpd to send http esponses to the wrong socket. This is difficult to debug. To protect against this, I have an extra check for correct socket number and this check appears to be working. With luck I have a core dump and find the root cuase of this problem.
Indication that others see this problem is these messages in midas.log followed by a crash of mhttpd.
22:01:39.449 2020/10/19 [mhttpd,ERROR] [mhttpd.cxx:18873:on_work_complete,ERROR] Should not send response to request from socket 27 to socket 22, abort!
K.O.
Comments (2)
-
reporter -
reporter - changed status to resolved
fixed in merge buffer_mutex branch. K.O.
- Log in to comment
see https://daq00.triumf.ca/elog-midas/Midas/2364