assert(this->pudpiiu) fails when using TCP name resolution

Bug #1532864 reported by mdavidsaver
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Triaged
Low
Unassigned

Bug Description

I've been seeing this assertion failure with Base 3.14.12.3-11 (epicsdeb) and gateway 2.0.6.0. The situation is accessing a single IOC via. ssh (EPICS_CA_NAME_SERVERS=localhost). I haven't figured out how to intentionally cause this issue, but it comes up a couple of times a day when working in this configuration. Unsurprisingly it seems to be associated with restarting the remote IOC, or breaking the ssh connection. As it is somewhat random, I suspect that timing of local client searches is involved.

> A call to 'assert(this->pudpiiu)'
> by thread 'CAC-TCP-send' failed in ../cac.cpp line 1225.

Revision history for this message
Ralph Lange (ralph-lange) wrote :

What are the settings for EPICS_CA_AUTO_ADDR_LIST? and EPICS_CA_ADRR_LIST?

If UDP name resolution is switched completely off, it may be legal to have no udpiiu.
(If I remember correctly, Jeff said "udpiiu" means "UDP connection to IOC in use".)

summary: - assert(this->pudpiiu)
+ assert(this->pudpiiu) fails when using TCP name resolution
Changed in epics-base:
status: New → Incomplete
Revision history for this message
mdavidsaver (mdavidsaver) wrote :

cat run-gw.sh
#/bin/sh
set -e -x

export EPICS_CA_NAME_SERVERS=localhost
export EPICS_CA_AUTO_ADDR_LIST=NO
export EPICS_CA_ADDR_LIST=localhost:5064
export EPICS_CA_MAX_ARRAY_BYTES=8388648

export EPICS_CAS_INTF_ADDR_LIST=localhost

cagateway

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

I think I've established that this happens when an ssh tunnel is active, but the far end can't connect (eg. the IOC is stopped).

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

FYI in this situation the connect() succeeds, but the connection is closed almost immediately (when the far end gets connection refused).

Changed in epics-base:
status: Incomplete → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.