genivi-ipc@lists.genivi.org

Development list for inter process communication (IPC) related topics

View all threads

[PATCH] Add missing variable initialization

CM
Cencora, Maciej
Thu, Jan 26, 2017 11:22 AM

Hi,

Attached patch fixes following UBSAN warning:

/home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/Deployable.hpp:31:16: runtime error: load of value 160, which is not a valid value for type 'bool'
#0 0x7fd6e5275c19 in CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment>::operator=(CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> const&) /home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/Deployable.hpp:31
#1 0x7fd6e5272c27 in std::_Tuple_impl<0ul, CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >& std::_Tuple_impl<0ul, CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >::operator=CommonAPI::EmptyDeployment*(std::_Tuple_impl<0ul, CommonAPI::EmptyDeployment*>&&) /usr/include/c++/5/tuple:446
#2 0x7fd6e526fe33 in std::tuple<CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >& std::tuple<CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >::operator=<CommonAPI::EmptyDeployment*, void>(std::tupleCommonAPI::EmptyDeployment*&&) /usr/include/c++/5/tuple:575
#3 0x7fd6e43c2ed7 in void CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<v1::com::ihu::tuner::amfmStub, std::tuple<bool>, std::tuple<>, std::tupleCommonAPI::EmptyDeployment, std::tuple<> >::initialize<0>(CommonAPI::DBus::index_sequence<0>, std::tupleCommonAPI::EmptyDeployment*&) /home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/DBus/DBusStubAdapterHelper.hpp:407
#4 0x7fd6e43a9ac9 in CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<v1::com::ihu::tuner::amfmStub, std::tuple<bool>, std::tuple<>, std::tupleCommonAPI::EmptyDeployment, std::tuple<> >::DBusMethodWithReplyStubDispatcher(void (v1::com::ihu::tuner::amfmStub::)(std::shared_ptrCommonAPI::ClientId, bool, std::function<void ()>), char const, std::tupleCommonAPI::EmptyDeployment*, std::tuple<>) /home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/DBus/DBusStubAdapterHelper.hpp:382

Regards,
Maciej Cencora
**************************************************************************************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. ***************************************************************************************

Hi, Attached patch fixes following UBSAN warning: /home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/Deployable.hpp:31:16: runtime error: load of value 160, which is not a valid value for type 'bool' #0 0x7fd6e5275c19 in CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment>::operator=(CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> const&) /home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/Deployable.hpp:31 #1 0x7fd6e5272c27 in std::_Tuple_impl<0ul, CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >& std::_Tuple_impl<0ul, CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >::operator=<CommonAPI::EmptyDeployment*>(std::_Tuple_impl<0ul, CommonAPI::EmptyDeployment*>&&) /usr/include/c++/5/tuple:446 #2 0x7fd6e526fe33 in std::tuple<CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >& std::tuple<CommonAPI::Deployable<bool, CommonAPI::EmptyDeployment> >::operator=<CommonAPI::EmptyDeployment*, void>(std::tuple<CommonAPI::EmptyDeployment*>&&) /usr/include/c++/5/tuple:575 #3 0x7fd6e43c2ed7 in void CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<v1::com::ihu::tuner::amfmStub, std::tuple<bool>, std::tuple<>, std::tuple<CommonAPI::EmptyDeployment>, std::tuple<> >::initialize<0>(CommonAPI::DBus::index_sequence<0>, std::tuple<CommonAPI::EmptyDeployment*>&) /home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/DBus/DBusStubAdapterHelper.hpp:407 #4 0x7fd6e43a9ac9 in CommonAPI::DBus::DBusMethodWithReplyStubDispatcher<v1::com::ihu::tuner::amfmStub, std::tuple<bool>, std::tuple<>, std::tuple<CommonAPI::EmptyDeployment>, std::tuple<> >::DBusMethodWithReplyStubDispatcher(void (v1::com::ihu::tuner::amfmStub::)(std::shared_ptr<CommonAPI::ClientId>, bool, std::function<void ()>), char const, std::tuple<CommonAPI::EmptyDeployment*>, std::tuple<>) /home/delphi/jenkins/genivi_deps/lib/cmake/CommonAPI-3.1.5/../../../include/CommonAPI-3.1/CommonAPI/DBus/DBusStubAdapterHelper.hpp:382 Regards, Maciej Cencora **************************************************************************************** Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. ***************************************************************************************