Well, I have been using this ARM cross compiled protobuf for over a year with no problems. But just today I tried using the ARM compiled protoc to compile a test file on the target device...I get the same " munmap_chunk()" error! I normally do the proto compile using the host protoc, and it seems to be fine. All my protobuf stuff is 3.6.1. My cross compile was pretty simple:
./autogen.sh
./configure
--prefix=/usr/local/protobuf-3.6.1-arm --host=arm-linux-gnueabihf
make
make
install
And I copy the installed folder to my target board (beaglebone) and protobuf works just fine. I can serialize/deserialize with no problems. I am using 4.9.3 of the linaro toolchain to do the build. Why would my xcompiled protoc compiler fail to compile a simple test on the target device with this "munmap_chunk" error?
Thanks!