malloc error when running roscd and rospack [closed]
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 ...
I'm having the same issue - did you ever find a solution?