Communication bug between gvmd <-> ospd-openvas-<-> openvas

Hello,

Under GVM-11, latest release build, I’m experimenting sometimes communication bugs between gvmd and ospd-openvas. I occurs on large target scans (around 5000 IP in this case, with many IPs dead)

On Gvmd log I have the following:

md manage:WARNING:2020-04-26 04h14.40 CEST:13463: OSP get_scan 4831aff1-58b0-490f-88ca-9d056cee3239: Couldn’t send get_scans command to scanner
event task:MESSAGE:2020-04-26 04h14.51 CEST:13463: Status of task Test1 (a1d72543-539c-49ca-8429-d5452bf9560b) has changed to Stopped

On ospd-openvas side, I have the following logs:

2020-04-25 10:47:39,107 OSPD - openvas: ERROR: (ospd.server) Error sending data to the client. EOF occurred in violation of protocol (_ssl.c:2162)

Which occasionally repeat:

2020-04-25 12:20:51,067 OSPD - openvas: ERROR: (ospd.server) Error sending data to the client. EOF occurred in violation of protocol (_ssl.c:2162)

At this point if I try to resume the scan from the manager, I get the following errors:

On gvmd:
event task:MESSAGE:2020-04-26 10h27.05 CEST:13352: Status of task Test1 (a1d72543-539c-49ca-8429-d5452bf9560b) has changed to Requested
event task:MESSAGE:2020-04-26 10h27.05 CEST:13352: Test1 (a1d72543-539c-49ca-8429-d5452bf9560b) has been resumed by admin
md manage:WARNING:2020-04-26 10h27.17 CEST:13355: OSP start_scan 4831aff1-58b0-490f-88ca-9d056cee3239: Couldn’t send stop_scan command to scanner
event task:MESSAGE:2020-04-26 10h27.17 CEST:13355: Status of task Test1 (a1d72543-539c-49ca-8429-d5452bf9560b) has changed to Done

And on ospd-openvas side:

2020-04-26 07:49:49,640 OSPD - openvas: DEBUG: (ospd.ospd) Empty client stream
2020-04-26 07:50:00,850 OSPD - openvas: DEBUG: (ospd.ospd) Command error: Scan in progress

Obviously in the background openvas continue to run, and can’t be stopped unless you send kill signals.

I’m going to submit a bug on github, but wanted to know if anyone has witnesses the same issue ?

Thanks

Ref:

Note that this bug also exist with gvmd 20.08 latest stable build.