cmu-rss-lab / rosdiscover

Apache License 2.0
14 stars 1 forks source link

[Autoware-01] AST merging #185

Open tobiasduerschmid opened 2 years ago

tobiasduerschmid commented 2 years ago

It seems like AST merging is still an issue, as the recovery of node xbeeCoordinator in package autorally_core shows. Directly after saying built 3 ASTs the analysis fails with RuntimeError: static recovery process failed buggy.system-recovery.log

ChrisTimperley commented 2 years ago
building ASTs..
In file included from /ros_ws/src/autorally/autorally_core/src/xbee/XbeeCoordinator.cpp:1:
In file included from /ros_ws/src/autorally/autorally_core/src/xbee/XbeeCoordinator.h:11:
In file included from /ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.h:19:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/SerialInterfaceThreaded.h:37:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/SerialCommon.h:37:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/Diagnostics.h:37:
In file included from /opt/ros/indigo/include/diagnostic_updater/diagnostic_updater.h:45:
In file included from /ros_ws/devel/include/diagnostic_msgs/DiagnosticArray.h:16:
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:42:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, const M& value)
                                                   ^
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:54:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, int8_t value)
                                                   ^
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:64:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, uint8_t value)
                                                   ^
In file included from /ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:41:
In file included from /ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.h:19:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/SerialInterfaceThreaded.h:37:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/SerialCommon.h:37:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/Diagnostics.h:37:
In file included from /opt/ros/indigo/include/diagnostic_updater/diagnostic_updater.h:45:
In file included from /ros_ws/devel/include/diagnostic_msgs/DiagnosticArray.h:16:
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:42:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, const M& value)
                                                   ^
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:54:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, int8_t value)
                                                   ^
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:64:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, uint8_t value)
                                                   ^
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:262:71: warning: adding 'const char' to a string does not append to the string [-Wstring-plus-int]
      m_port.diag_warn("Xbee: transmit error (likely wrong address):" + message[5]);
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:262:71: note: use array indexing to silence this warning
      m_port.diag_warn("Xbee: transmit error (likely wrong address):" + message[5]);
                                                                      ^
                       &                                              [           ]
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:494:66: warning: adding 'char' to a string does not append to the string [-Wstring-plus-int]
        m_port.diag_error("Xbee: hexToString Invalid hex digit:" + a);
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:494:66: note: use array indexing to silence this warning
        m_port.diag_error("Xbee: hexToString Invalid hex digit:" + a);
                                                                 ^
                          &                                      [  ]
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:502:67: warning: adding 'char' to a string does not append to the string [-Wstring-plus-int]
        m_port.diag_error("Xbee:  hexToString Invalid hex digit:" + b);
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:502:67: note: use array indexing to silence this warning
        m_port.diag_error("Xbee:  hexToString Invalid hex digit:" + b);
                                                                  ^
                          &                                       [  ]
In file included from /ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:41:
In file included from /ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.h:19:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/SerialInterfaceThreaded.h:37:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/SerialCommon.h:37:
In file included from /ros_ws/src/autorally/autorally_core/include/autorally_core/Diagnostics.h:37:
In file included from /opt/ros/indigo/include/diagnostic_updater/diagnostic_updater.h:45:
In file included from /ros_ws/devel/include/diagnostic_msgs/DiagnosticArray.h:16:
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:42:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, const M& value)
                                                   ^
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:54:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, int8_t value)
                                                   ^
/ros_ws/src/roscpp_core/roscpp_traits/include/ros/message_operations.h:64:52: warning: unused parameter 'indent' [-Wunused-parameter]
  static void stream(Stream& s, const std::string& indent, uint8_t value)
                                                   ^
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:262:71: warning: adding 'const char' to a string does not append to the string [-Wstring-plus-int]
      m_port.diag_warn("Xbee: transmit error (likely wrong address):" + message[5]);
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:262:71: note: use array indexing to silence this warning
      m_port.diag_warn("Xbee: transmit error (likely wrong address):" + message[5]);
                                                                      ^
                       &                                              [           ]
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:494:66: warning: adding 'char' to a string does not append to the string [-Wstring-plus-int]
        m_port.diag_error("Xbee: hexToString Invalid hex digit:" + a);
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:494:66: note: use array indexing to silence this warning
        m_port.diag_error("Xbee: hexToString Invalid hex digit:" + a);
                                                                 ^
                          &                                      [  ]
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:502:67: warning: adding 'char' to a string does not append to the string [-Wstring-plus-int]
        m_port.diag_error("Xbee:  hexToString Invalid hex digit:" + b);
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/ros_ws/src/autorally/autorally_core/src/xbee/XbeeInterface.cpp:502:67: note: use array indexing to silence this warning
        m_port.diag_error("Xbee:  hexToString Invalid hex digit:" + b);
                                                                  ^
                          &                                       [  ]
built 3 ASTs
importing decls from translation unit [1/2]
ChrisTimperley commented 2 years ago

It looks like there's no problem building the ASTs. Some unspecified failure occurs during AST merging. I'll run this with gdb later to figure out what's happening.