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

YarpRobotLoggerDevice segsfault if YARP_ROBOT_NAME is not defined #699

Closed
davidegorbani opened this issue Jul 6, 2023 · 1 comment · Fixed by #701
Closed

YarpRobotLoggerDevice segsfault if YARP_ROBOT_NAME is not defined #699

davidegorbani opened this issue Jul 6, 2023 · 1 comment · Fixed by #701
Assignees
Labels
bug Something isn't working

Comments

@davidegorbani
Copy link
Contributor

As per title, this is the trace if the variable is not defined

(gdb) where
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:234
#1  0x00007f6479b4d238 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*) () at /lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x00007f647036af00 in BipedalLocomotion::YarpRobotLoggerDevice::setupTelemetry(std::weak_ptr<BipedalLocomotion::ParametersHandler::IParametersHandler const>, double const&)
    (this=0x55e7696c2820, params=std::weak_ptr<const BipedalLocomotion::ParametersHandler::IParametersHandler> (use count 2, weak count 1) = {...}, devicePeriod=@0x7ffeded6b840: 0.01)
    at /home/dgorbani/software/robotology-superbuild/src/bipedal-locomotion-framework/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp:452
#3  0x00007f647036927e in BipedalLocomotion::YarpRobotLoggerDevice::open(yarp::os::Searchable&) (this=0x55e7696c2820, config=...)
    at /home/dgorbani/software/robotology-superbuild/src/bipedal-locomotion-framework/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp:342
#4  0x00007f647939f680 in yarp::dev::PolyDriver::coreOpen(yarp::os::Searchable&) () at /home/dgorbani/software/robotology-superbuild/build/install/lib/libYARP_dev.so.3
#5  0x00007f64793a063b in yarp::dev::PolyDriver::open(yarp::os::Searchable&) () at /home/dgorbani/software/robotology-superbuild/build/install/lib/libYARP_dev.so.3
#6  0x00007f6479ccade2 in yarp::robotinterface::Device::open() () at /home/dgorbani/software/robotology-superbuild/build/install/lib/libYARP_robotinterface.so.3
#7  0x00007f6479cd24a3 in yarp::robotinterface::Robot::Private::openDevices() () at /home/dgorbani/software/robotology-superbuild/build/install/lib/libYARP_robotinterface.so.3
#8  0x00007f6479cd7571 in yarp::robotinterface::Robot::enterPhase(yarp::robotinterface::ActionPhase) () at /home/dgorbani/software/robotology-superbuild/build/install/lib/libYARP_robotinterface.so.3
#9  0x000055e769163cbd in yarprobotinterface::Module::configure(yarp::os::ResourceFinder&) ()
#10 0x00007f6479901847 in yarp::os::RFModule::runModule(yarp::os::ResourceFinder&) () at /home/dgorbani/software/robotology-superbuild/build/install/lib/libYARP_os.so.3
#11 0x000055e769160dbf in main ()
@davidegorbani davidegorbani changed the title YarpRobotLoggerDevice segsfault if YARP_ROBOT_NAME is note defined YarpRobotLoggerDevice segsfault if YARP_ROBOT_NAME is not defined Jul 6, 2023
@GiulioRomualdi GiulioRomualdi self-assigned this Jul 6, 2023
@GiulioRomualdi GiulioRomualdi added the bug Something isn't working label Jul 6, 2023
@GiulioRomualdi
Copy link
Member

I will open a PR as soon as possible to fix it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants