Routing service crash when trying to dynamically create a new session

2 posts / 0 new
Last post
Offline
Last seen: 4 years 8 months ago
Joined: 08/25/2015
Posts: 32
Routing service crash when trying to dynamically create a new session

Hi,

when I try to create a new session via rtirssh, the routing service is crashing. It does not happen when there's no publisher in the subsribing domain.

A small test can be done with two rti shapesdemo instances - one in domain 0 and one in 1. The routing service can be started with the default config (rtiroutingservice -cfgName default) which routes traffic from domain 0 to domain 1.

With rtirssh I can retrieve some information via 'get default' and can also remove the session with 'delete default DefaultDomainRoute::DefaultSession'

After this when I try to readd the session (and the shapes demo in domain 0 is publishing) I get a crash with this bt:

Thread 9 "rtiroutingservi" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffed8c8700 (LWP 144563)]
0x000000000042b201 in ROUTERSession_publishSessionData ()
(gdb) bt
#0  0x000000000042b201 in ROUTERSession_publishSessionData ()
#1  0x000000000042d708 in ROUTERSession_matchTopicRoute ()
#2  0x000000000042de09 in ROUTERSession_enableAutoTopicRoute ()
#3  0x000000000042e551 in ROUTERSession_createAutoTopicRoute ()
#4  0x000000000043058a in ROUTERSession_new ()
#5  0x0000000000431bd5 in ROUTERDomainRoute_createSession ()
#6  0x0000000000435e8d in ROUTERRemoteService_createEntity ()
#7  0x0000000000439a67 in ROUTERRemoteService_onCreateEntity ()
#8  0x000000000043b544 in ROUTERRemoteService_executeCommand ()
#9  0x000000000043b7d3 in ROUTERRemoteService_onLegacyCommandRequest ()
#10 0x0000000000579c93 in ROUTERLegacyCommandHandler_onConditionTrigger ()
#11 0x00000000005b9a2f in ROUTERWaitSetReactorThread_onWakeUp ()
#12 0x00007ffff769d792 in DDS_WaitSetControlledThread_run () from /opt/RTI/lib/x64Linux3gcc4.8.2/libnddsc.so
#13 0x00007ffff7282ee6 in RTIOsapiThreadChild_onSpawned () from /opt/RTI/lib/x64Linux3gcc4.8.2/libnddscore.so
#14 0x00007ffff6281734 in start_thread () from /lib64/libpthread.so.0
#15 0x00007ffff5db7d3d in clone () from /lib64/libc.so.6

When there's no publisher in domain 0, the route is created without a crash...

create command:

create default session DefaultDomainRoute str://"<session name="DefaultSession"><auto_topic_route name="RouteAll"><input participant="1"><deny_topic_name_filter>rti/*</deny_topic_name_filter><creation_mode>ON_DOMAIN_AND_ROUTE_MATCH</creation_mode></input><output participant="2"><deny_topic_name_filter>rti/*</deny_topic_name_filter><creation_mode>ON_DOMAIN_AND_ROUTE_MATCH</creation_mode></output></auto_topic_route></session>"

Is it not allowed to create a new session when there are already publishers?

 

Thx,

Christian

asanchez's picture
Offline
Last seen: 4 years 6 months ago
Joined: 11/16/2011
Posts: 50

Hi Christian,

This has been identified as an issue reported in our issue database with ID ROUTING-451. It will be addressed in the next major release.

Best,

Antonio