Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Tests segfault if GAZEBO_PLUGIN_PATH isn't set #2

Closed
osrf-migration opened this issue Jul 13, 2012 · 10 comments
Closed

Tests segfault if GAZEBO_PLUGIN_PATH isn't set #2

osrf-migration opened this issue Jul 13, 2012 · 10 comments
Labels
all bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).


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)
}}}

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • Edited issue description* changed assignee from "None (Bitbucket: None)" to "hsu (Bitbucket: hsu, GitHub: hsu)"
  • set assignee_account_id to "557058:f3968cd3-4910-4384-8349-482a6c7889ec"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed priority from "major" to "critical"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed assignee_account_id from "557058:f3968cd3-4910-4384-8349-482a6c7889ec" to "557058:095b1e12-74ed-4e20-b44f-2f0745b616e0"
  • changed assignee from "hsu (Bitbucket: hsu, GitHub: hsu)" to "nkoenig (Bitbucket: nkoenig, GitHub: nkoenig)"

@osrf-migration
Copy link
Author

Original comment by John Hsu (Bitbucket: hsu, GitHub: hsu).


  • changed priority from "critical" to "major"

downgrading given test system is working on jenkin.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


The segfault no longer happens for me. Please confirm.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "new" to "resolved"

Resolved in default

@osrf-migration
Copy link
Author

Original comment by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).


  • changed state from "resolved" 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.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "open" to "resolved"

Fixed in pull request #143

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

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

No branches or pull requests

1 participant