Summary: I get a malloc() memory corruption error from CSharp.Gen.Exe when trying to build CppSharp under Ubuntu 16.04.
Setup:
* Ubuntu 16.04, updated as of today
* Latest mono packages from
download.mono-project.com (Mono JIT compiler version 4.2.3 (Stable
4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
** Same error occurred with Ubuntu default mono version
* gcc 5.3.1
Steps:
* git clone
* ./premake5-linux-64 --file=scripts/LLVM.lua download_llvm
* ./premake5-linux-64 gmake
* make -C gmake config=release_x64
Output at point of error:
==== Building CSharp.CSharp (release_x64) ====
Running prebuild commands
mono --debug "../lib/Release_x64/CSharp.Gen.exe"
Generating bindings for CSharp (CSharp)
Looking for tests in: /home/wew/dev/netprojects/CppSharp/tests/CSharp
*** Error in `mono': malloc(): memory corruption: 0x0000000002f4c5c0 ***
(actual memory address varies between runs).
As suggested in another thread, I re-ran with
$ MONO_LOG_LEVEL=debug mono --debug "../lib/Release_x64/CSharp.Gen.exe"
and full output can be found in:
http://pastebin.com/7n19gyfWAny help appreciated!
Thanks,
William