Robotics StackExchange | Archived questions

malloc error when running roscd and rospack

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 mallocerrorbreak to debug rosstack(77029) malloc: *** error for object 0x10dbf34a0: pointer being freed was not allocated *** set a breakpoint in mallocerrorbreak 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 mallocerrorbreak 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/boost1470/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v2/src/v2operations.o" - no debug information available for "v2_operations.cpp".

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

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

warning: Could not find object file "/private/tmp/boost-HXkH/boost147_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/boost147_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/boost147_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/boost1470/bin.v2/libs/filesystem/build/darwin-4.2.1/release/threading-multi/v3/src/codecvterrorcategory.o" - no debug information available for "codecvterror_category.cpp".

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

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

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

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

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

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

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

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

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

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

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

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

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

warning: Could not find object file "/private/tmp/boost-HXkH/boost1470/bin.v2/libs/system/build/darwin-4.2.1/release/threading-multi/errorcode.o" - no debug information available for "error_code.cpp".

..... done**

Or when I run the following command:

$ sudo dtruss rospack

I get the following message:

dyld: Library not loaded: librospack.dylib

Referenced from: /opt/ros/groovy/bin/rospack

Reason: image not found

SYSCALL(args) = return

open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0

pread(0x3, "\312\376\272\276\0", 0x1000, 0x0) = 4096 0

pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x6000) = 4096 0

mmap(0x1008F0000, 0x2000, 0x5, 0x12, 0x3, 0x6000) = 0x8F0000 0

mmap(0x1008F2000, 0x1000, 0x3, 0x12, 0x3, 0x8000) = 0x8F2000 0

mmap(0x1008F3000, 0x1FF0, 0x1, 0x12, 0x3, 0x9000) = 0x8F3000 0

close(0x3) = 0 0

stat64("librospack.dylib\0", 0x7FFF5F317400, 0x7FFF5F318300) = -1 Err#2

stat64("/Users/giu/lib/librospack.dylib\0", 0x7FFF5F317BB0, 0x7FFF5F318300) = -1 Err#2

stat64("/usr/local/lib/librospack.dylib\0", 0x7FFF5F317BB0, 0x7FFF5F318300) = -1 Err#2

stat64("/usr/lib/librospack.dylib\0", 0x7FFF5F317BC0, 0x7FFF5F318300) = -1 Err#2

write(0x2, "dyld: Library not loaded: libros\0", 0x20) = 32 0

write(0x2, "pack.dylib\n Referenced from: /o\0", 0x20) = 32 0

write(0x2, "pt/ros/groovy/bin/rospack\n Reas\0", 0x20) = 32 0

write(0x2, "on: image not found\n\0", 0x14) = 20 0

issetugid(0x1008E7000, 0x1, 0x7FFF5F318B00) = 0 0

geteuid(0x1008E7000, 0x1, 0x0) = 0 0

csops(0x0, 0x0, 0x7FFF5F318624) = 0 0

sharedregioncheck_np(0x7FFF5F316578, 0x2, 0x7FFF5F316578) = 0 0

stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF5F3176C0, 0x7FFF5F318690 = 0 0

Asked by giacaglia on 2013-05-31 12:44:06 UTC

Comments

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

Asked by rand on 2013-10-09 08:19:41 UTC

Answers