Loop in casDGClient::processDG() after zero-length PV
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Confirmed
|
Medium
|
Unassigned |
Bug Description
From Shuei Yamada in http://
I have a problem with CA gateway that it runs away and all PVs
subscribing via ca-gateway become disconnected. The problem occurred 4
times in past 6 month and each time I had to restart CA gateway. I'm
using CA gataway 2.1.0 with EPICS base 3.14.12.3 on Scientific Linux
6.8 (RHEL 6.8 clone).
The log file contains following message:
====
CAS Request: ? on jkjnuc31.
psz=32 avail=4c
CAS:
Apr 20 06:29:30 !!! Errlog message received (message is above)
zero length PV name in UDP search request?
====
The machine in the logfile, jkjnuc31.ccr.jkcont (we're using private
network for accelerator control), is one of our PCs running
CS-Studio. I replaced the machine with different one, upgraded CSS
from 4.1.1 to 4.4.1, but jkjnuc31 is sure to be involved every time.
I attached to the process during the inspection and got following back-trace:
====
(gdb) bt
#0 0x00007f5a180a74e0 in outBuf::commitMsg() () from
/svjk/jk/
#1 0x00007f5a18099512 in casDGClient:
/svjk/jk/
#2 0x00007f5a1809abb3 in casDGClient:
/svjk/jk/
#3 0x00007f5a180aa16b in casDGIntfOS:
from /svjk/jk/
#4 0x00007f5a17388fa6 in fdManager:
/svjk/jk/
#5 0x0000000000412f0e in gateServer:
../gateServer.
#6 0x0000000000406830 in startEverything (prefix=
"MRCO:GW:MR-CCR01") at ../gateway.cc:685
#7 0x0000000000408c16 in main (argc=26, argv=0x7ffcd6ef
../gateway.cc:1353
====
It seems that gateway falls into an infinite loop within
casDGClient:
Related (fix in CS-Studio): https:/