プロジェクト

全般

プロフィール

バグ #3708

SimpleIOサンプルのConnectorComp.cppにおける初期化処理の修正

n.kawauchi7年以上前に追加. ほぼ5年前に更新.

ステータス:
解決
優先度:
通常
担当者:
対象バージョン:
-
開始日:
2016/11/15
期日:
進捗率:

100%

予定工数:

説明

下記投稿への対応

[openrtm-users 03328] Ubuntu 14.04,OpenRTM C++ 1.1.xでSimpleIO ConnectorCompを実行するとinvalid pointerコアダンプが発生する

環境:
Ubuntu 14.04.5 LTS Linux 4.4.0-36-generic gcc 4.8.4 omniORB 4.1.6-2
OpenRTM-aist C++版 ソースコード OpenRTM-aist-1.1.2.tar.gz
をベースに記述いたします.
初回コンパイルを終えると,
examples/SimpleIO/以下で./run.shを実行するとサンプルプログラムが実行されるかと思います.
このときConnectorCompの実行時に, Name Server: localhost:9876
Subscription Type: flush push policy: skip count: connect: ConsoleIn ->
ConsoleOut *** Error in `(略)/examples/SimpleIO/.libs/lt-ConnectorComp':
free(): invalid pointer: 0x000000000040864b *** のようにinvalid
pointerエラーが発生します.
具体的には,ConnectorComp.cppの275行目, ReturnCode_t ret; if
(connect_origin == "in") { ret = pin[(CORBA::ULong)0]->connect(prof); }
のconnect時にエラーが発生しています.
表面的な原因を調査しましたところ, OpenRTM-aist
1.0.2でSimpleIOを実行した際にはエラーは発生せず,
同226行目 prof.connector_id = (char*)""; の部分が,OpenRTM-aist
1.0.xでは, prof.connector_id = ""; となっていました.
1.1.0や1.1.2でも同じく(char*)を削除するとエラーなく実行できました.

関係しているリビジョン

リビジョン 2800 (差分)
kawauchi が7年以上前に追加

Initialization of connector_id was corrected. refs #3708

リビジョン 2800 (差分)
kawauchi が7年以上前に追加

[compat,bugfix,->RELENG_1_2] Initialization of connector_id was corrected. refs #3708

リビジョン 3097 (差分)
n-ando6年以上前に追加

merged changes from trunk/OpenRTM-aist r2795 during 2016-11
[incompat,bugfix,EC,->RELENG_1_2] EC activation bug for multiple RTCs when they activated from participants RTCs. refs #3697
[incompat,bugfix,EC,->RELENG_1_2] Return code was added. refs #3697
[incompat,bugfix,EC,->RELENG_1_2]Modified for ExtTrigExecutionContext. #3697
[compat,bugfix,->RELENG_1_2]refs #3703
[compat,bugfix,->RELENG_1_2] Initialization of connector_id was corrected. refs #3708
[compat,->RELENG_1_2] ExtTrigger sample has been added in windows source package. refs #3709
[compat,1.2,->RELENG_1_2] Version number updated.
[incompat,->RELENG_1_2] CPU affinity setting has been added. refs #3711
[incompat,->RELENG_1_2] CPU affinity setting for ExecutionContext (only PeriodicEC) has been added. refs #3711
[incompat,->RELENG_1_2] CPU affinity setting for ExecutionContext (only PeriodicEC) has been added. refs #3711

リビジョン 3097 (差分)
n-ando6年以上前に追加

merged changes from trunk/OpenRTM-aist r2795 during 2016-11
[incompat,bugfix,EC,->RELENG_1_2] EC activation bug for multiple RTCs when they activated from participants RTCs. refs #3697
[incompat,bugfix,EC,->RELENG_1_2] Return code was added. refs #3697
[incompat,bugfix,EC,->RELENG_1_2]Modified for ExtTrigExecutionContext. #3697
[compat,bugfix,->RELENG_1_2]refs #3703
[compat,bugfix,->RELENG_1_2] Initialization of connector_id was corrected. refs #3708
[compat,->RELENG_1_2] ExtTrigger sample has been added in windows source package. refs #3709
[compat,1.2,->RELENG_1_2] Version number updated.
[incompat,->RELENG_1_2] CPU affinity setting has been added. refs #3711
[incompat,->RELENG_1_2] CPU affinity setting for ExecutionContext (only PeriodicEC) has been added. refs #3711
[incompat,->RELENG_1_2] CPU affinity setting for ExecutionContext (only PeriodicEC) has been added. refs #3711

履歴

#1 n.kawauchi7年以上前に更新

  • 進捗率0 から 100 に変更

connector_idは、構造体 RTC::ConnectorProfile の UniqueIdentifier型のメンバ変数で、下記定義よりstring型のため、
CORBA::string_dupを使って初期化した。

typedef SDOPackage::UniqueIdentifier RTC::UniqueIdentifier
typedef string SDOPackage::UniqueIdentifier

#2 n.kawauchiほぼ5年前に更新

  • ステータス新規 から 解決 に変更

他の形式にエクスポート: Atom PDF