1. OpenSourceRoboticsFoundation
  2. Simulation
  3. gazebo
  4. Issues
Issue #2 closed

Tests segfault if GAZEBO_PLUGIN_PATH isn't set

Brian Gerkey
created an issue

No GAZEBO_PLUGIN_PATH:

cd build
GAZEBO_RESOURCE_PATH=`pwd`/../ ./test/regression/common
[==========] Running 11 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 11 tests from CommonTest
[ RUN      ] CommonTest.Image
Error [Image.cc:141] Unable to open image file[/file/shouldn/never/exist.png]
[       OK ] CommonTest.Image (48 ms)
[ RUN      ] CommonTest.Paths
Segmentation fault (core dumped)

Arbitrary GAZEBO_PLUGIN_PATH:

cd build
GAZEBO_PLUGIN_PATH=/foobar GAZEBO_RESOURCE_PATH=`pwd`/../ ./test/regression/common
(everything works)

Comments (10)

  1. Brian Gerkey reporter
    • changed status to open

    I'm still seeing it on default. Repro:

    cd build
    . <install>/share/gazebo-1.2/setup.sh
    unset GAZEBO_PLUGIN_PATH
    ./test/regression/common
    

    I get:

    [==========] Running 11 tests from 1 test case.
    [----------] Global test environment set-up.
    [----------] 11 tests from CommonTest
    [ RUN      ] CommonTest.Image
    Error [Image.cc:64] Image filename is empty.
    Error [SystemPaths.cc:357] File or path does not
    exist[/file/shouldn/never/exist.png]
    Error [Image.cc:113] Unable to open image file[], check your
    GAZEBO_RESOURCE_PATH settings.
    [       OK ] CommonTest.Image (28 ms)
    [ RUN      ] CommonTest.Paths
    Segmentation fault (core dumped)
    

    It doesn't happen for all tests (e.g., factory runs OK).

    Still low-priority.

  2. Log in to comment