Bug 52563 - * Assertion at mono/mono/metadata/image.c:538, condition `image->heap_guid.data' not met
Summary: * Assertion at mono/mono/metadata/image.c:538, condition `image->heap_guid.da...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2017-02-16 10:15 UTC by Marek Safar
Modified: 2017-03-14 18:04 UTC (History)
3 users (show)

Tags: 2017-02
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:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Marek Safar 2017-02-16 10:15:53 UTC
Xamarin.MTouch.ScriptedTests : Xamarin.Tests.TestExecutionException : /Applications/Xcode82.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -mno-thumb -miphoneos-version-min=10.2 -isysroot /Applications/Xcode82.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -Wall  -g  -c select-native-compiler/native.cpp -o select-native-compiler/libNative.a
mkdir -p select-native-compiler/SelectNativeCompiler.app
/Users/builder/data/lanes/4343/fd3ac91e/source/xamarin-macios/_ios-build//Library/Frameworks/Xamarin.iOS.framework/Versions/git/bin/btouch-native select-native-compiler/binding.cs --link-with=select-native-compiler/libNative.a,Native -s:select-native-compiler/managed.cs -o:select-native-compiler/binding.dll
/Library/Frameworks/Mono.framework/Versions/Current/bin/mcs select-native-compiler/app.cs -r:/Users/builder/data/lanes/4343/fd3ac91e/source/xamarin-macios/_ios-build//Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -r:select-native-compiler/binding.dll -out:select-native-compiler/app.exe
/Users/builder/data/lanes/4343/fd3ac91e/source/xamarin-macios/_ios-build//Library/Frameworks/Xamarin.iOS.framework/Versions/git/bin/mtouch -r:select-native-compiler/binding.dll select-native-compiler/app.exe --abi=armv7  -sdk "10.2"  -dev:select-native-compiler/SelectNativeCompiler.app -sdkroot /Applications/Xcode82.app/Contents/Developer -r:/Users/builder/data/lanes/4343/fd3ac91e/source/xamarin-macios/_ios-build//Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
Xamarin.iOS 10.5.0 using framework: /Applications/Xcode82.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk
warning MT0030: The executable name (app) and the app name (SelectNativeCompiler.app) are different, this may prevent crash logs from getting symbolicated properly.
AOT Compilation exited with code 134, command:
MONO_PATH=/private/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/mtouch.cache/odh5ymh5.1iq/Build /Users/builder/data/lanes/4343/fd3ac91e/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/bin/arm-darwin-mono-sgen --debug -O=gsharedvt  --aot=mtriple=armv7-ios,data-outfile=/private/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/mtouch.cache/odh5ymh5.1iq/System.Core.armv7.aotdata,static,asmonly,direct-icalls,full,nodebug,dwarfdebug,direct-pinvoke,msym-dir=/private/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/mtouch.cache/odh5ymh5.1iq/Build/Msym,outfile=/private/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/mtouch.cache/odh5ymh5.1iq/System.Core.dll.armv7.s "/private/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/mtouch.cache/odh5ymh5.1iq/Build/System.Core.dll"
Unknown heap type: 

* Assertion at /Users/builder/data/lanes/4343/fd3ac91e/source/xamarin-macios/external/mono/mono/metadata/image.c:538, condition `image->heap_guid.data' not met


error MT3001: Could not AOT the assembly '/private/var/folders/9t/bhhqghxd4131b5k43v0yk7yc0000gn/T/mtouch.cache/odh5ymh5.1iq/Build/System.Core.dll'
make[5]: *** [select-native-compiler] Error 1

  at Xamarin.Tests.ExecutionHelper.Execute (System.String fileName, System.String arguments, System.Boolean throwOnError, System.Collections.Generic.Dictionary`2[TKey,TValue] environmentVariables, System.Boolean hide_output, System.Nullable`1[T] timeout) [0x00056] in :0 
  at Xamarin.MTouch.ScriptedTests () [0x0003f] in :0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <64ed7624cc7e44f29307f84a68a205ea>:0
Comment 1 Zoltan Varga 2017-02-16 21:57:26 UTC
How can I repro this ?
Comment 2 Rodrigo Kumpera 2017-02-22 17:00:59 UTC
Zoltan,

Probably by running the xamarin-macios test suite.
Comment 3 Zoltan Varga 2017-03-06 18:59:40 UTC
Can't reproduce using the 'mono-master' branch and system mono:

Mono JIT compiler version 4.9.2 (2017-02/e6409c5 Mon Mar  6 11:48:20 EST 2017)
Comment 4 Marek Safar 2017-03-14 18:04:39 UTC
I don't have the repro anymore