malloc error when running roscd and rospack [closed]

asked 2013-05-31 12:44:06 -0600

giacaglia gravatar image

updated 2013-06-03 08:53:33 -0600

I tried to install the ros under Mac OS Version 10.8.3. I foolowed the instructions in the wiki for installation using Macports

And then, because I was having problems because CMake was linking a newer version of boost than the one required (1.47). So I followed the steps described below to install the older version of boost:

$ find_package(boost 1.47 EXACT)

Then when I tried to build the packages running:

$ make VERBOSE=1

It said that the library installed was not the one required, it was a new one in /usr/local/.

So I installed an older version of the library with homebrew. Using the following commands:

$ brew versions $ git checkout 57665ff /usr/local/Library/Formula/boost.rb $ brew install boost $ git checkout master

After installing and running make install and when running:

$ which roscore

getting the following response:

/opt/ros/groovy/bin/roscore

When I run the following command:

$ roscd roscpp_tut<<< now push the TAB key >>>

I get the following error:

rospack(77026) malloc: * error for object 0x10bdc54a0: pointer being freed was not allocated set a breakpoint in malloc_error_break to debug rosstack(77029) malloc: error for object 0x10dbf34a0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug

When I run the following command:

$ rospack find roscpp

I get the following response:

rospack(77036) malloc: * error for object 0x1063334a0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Abort trap: 6

So I'm guessing there is a problem with the rospack command. And I would probably guess it's a problem with the boost library, but I'm not sure what is causing this problem.

When I run the following command:

$ gdb rospack

I get the following message:

**warning: Could not find object file "/private/tmp/boost-HXkH/boost_1_47_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v2/src/v2_operations.o" - no debug information available for "v2_operations.cpp".

warning: Could not find object file "/private/tmp/boost-HXkH/boost_1_47_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v2/src/v2_path.o" - no debug information available for "v2_path.cpp".

warning: Could not find object file "/private/tmp/boost-HXkH/boost_1_47_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v2/src/v2_portability.o" - no debug information available for "v2_portability.cpp".

warning: Could not find object file "/private/tmp/boost-HXkH/boost_1_47_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v3/src/operations.o" - no debug information available for "operations.cpp".

warning: Could not find object file "/private/tmp/boost-HXkH/boost_1_47_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v3/src/path.o" - no debug information available for "path.cpp".

warning: Could not find object file "/private/tmp/boost-HXkH/boost_1_47_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v3/src/portability.o" - no debug information available for "portability.cpp".

warning: Could not find object file "/private/tmp/boost-HXkH/boost_1_47_0/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v3/src/codecvt_error_category ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-06-27 13:31:38.568580

Comments

I'm having the same issue - did you ever find a solution?

rand gravatar image rand  ( 2013-10-09 08:19:41 -0600 )edit