Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forwarding State #550

Open
lorenzopivetta opened this issue May 9, 2019 · 1 comment

Comments

2 participants
@lorenzopivetta
Copy link

commented May 9, 2019

Hi,
is there any issue with forwarding the State attribute? Consider the following scenario:

  • device "lorenzo/uno/uno" provides attribute "uno" (DevDouble,rw) and "anotherState" (DevState,rw).
  • device "lorenzo/due/due" is configured with the following forwarded attirbutes:
    1. unoFwd with __root_attr lorenzo/uno/uno/uno
    2. anotherStateFwd with __root_attr lorenzo/uno/uno/anotherState
    3. unoStateFwd with __root_attr lorenzo/uno/uno/State

Reading the forwarded attribute from device "lorenzo/due/due" works for case 1 and 2; events work too.
Reading forwarded attribute from device "lorenzo/due/due" for case 3 results in a segmentation:

...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb0dfab70 (LWP 16669)]
0xb7d549ae in void Tango::FwdAttribute::set_local_attributeTango::DevVarStateArray(Tango::DeviceAttribute&, Tango::DevVarStateArray*&) ()
from /usr/local/tango-9.3.3-debug/lib/libtango.so.9

Tests with Tango 9.3.3, OmniORB 4.2.3, ZeroMQ 4.0.8

@bourtemb bourtemb added the bug label May 10, 2019

@bourtemb

This comment has been minimized.

Copy link
Member

commented May 10, 2019

Hi @lorenzopivetta

Thank you very much for the bug report. I can reproduce the problem.
This bug does not occur when forwarding a DevState Read Only or RW scalar attribute which is different than the attribute named "State".

bourtemb added a commit to bourtemb/cppTango that referenced this issue May 13, 2019

bourtemb added a commit to bourtemb/cppTango that referenced this issue May 14, 2019

bourtemb added a commit to bourtemb/cppTango that referenced this issue May 14, 2019

@bourtemb bourtemb added this to To Be Reviewed in Tango 9 Long Term Support May 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.