Bug 50635 - mono(86633,0x7fff78526000) malloc: *** error for object 0x7fbe28e196f0: pointer being freed was not allocated
Summary: mono(86633,0x7fff78526000) malloc: *** error for object 0x7fbe28e196f0: point...
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: 4.8.0 (C9)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
Depends on:
Reported: 2016-12-22 10:08 UTC by Marek Safar
Modified: 2016-12-22 12:11 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Marek Safar 2016-12-22 10:08:11 UTC
mono(86633,0x7fff78526000) malloc: *** error for object 0x7fbe28e196f0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Native stacktrace:

	0   mono                                0x0000000102b84c45 mono_handle_native_crash + 277
	1   libsystem_platform.dylib            0x00007fff9898d52a _sigtramp + 26
	2   ???                                 0x0000000000000000 0x0 + 0
	3   libsystem_c.dylib                   0x00007fff871046df abort + 129
	4   libsystem_malloc.dylib              0x00007fff877b1041 szone_size + 0
	5   mono                                0x0000000102d59770 monoeg_g_free + 32
	6   mono                                0x0000000102b6a6ab load_aot_module + 4619
	7   mono                                0x0000000102bf86fa mono_assembly_load_from_full + 1306
	8   mono                                0x0000000102bf8168 mono_assembly_open_full + 1048
	9   mono                                0x0000000102b4d6b9 mono_main + 7257
	10  mono                                0x0000000102ad14c4 main + 1860
	11  libdyld.dylib                       0x00007fff8c1955ad start + 1

Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.mbO4DF'
Executing commands in '/tmp/mono-gdb-commands.mbO4DF'.

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
Comment 2 Zoltan Varga 2016-12-22 12:11:15 UTC
Should be fixed.