Bug 41943 - Bitcode failure of bug-82022.exe due to inability to find base type assembly
Summary: Bitcode failure of bug-82022.exe due to inability to find base type assembly
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: 4.5.X
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Alexander Kyte
URL:
Depends on:
Blocks:
 
Reported: 2016-06-17 17:18 UTC by Alexander Kyte
Modified: 2016-07-21 17:06 UTC (History)
3 users (show)

Tags: bitcode_mobile_static
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 FIXED

Description Alexander Kyte 2016-06-17 17:18:50 UTC
bug-82022.exe
=============== bug-82022.exe.stdout ===============
Could not patch ldtoken due to Could not find base type assembly:/Users/akyte/mono/mono/tests/bug-82022.exe type:FieldAttributes member:<none>

=============== EOF ===============
=============== bug-82022.exe.stderr ===============
Stacktrace:


Native stacktrace:

        0   mono                                0x0000000101d9cfae mono_handle_native_sigsegv + 334
        1   mono                                0x0000000101ea48f5 sigabrt_signal_handler + 165
        2   libsystem_platform.dylib            0x00007fff8aed0eaa _sigtramp + 26
        3   ???                                 0x00007fff6b76a8e5 0x0 + 140734996326629
        4   mono                                0x0000000102995066 abort + 22
        5   mono                                0x00000001020e05a3 monoeg_log_default_handler + 211
        6   mono                                0x00000001020e04b2 monoeg_g_logv + 114
        7   mono                                0x00000001020e0719 monoeg_g_log + 361
        8   mono                                0x0000000101c73144 mono_resolve_patch_target + 2468
        9   mono                                0x0000000101d8b751 init_method + 1041
        10  mono                                0x0000000101d8085d init_llvmonly_method + 61
        11  mono                                0x0000000101d80812 mono_aot_init_llvm_method + 50
        12  bug-82022.exe.dylib                 0x00000001033a1578 init_method + 152
        13  bug-82022.exe.dylib                 0x00000001033a165d Program_Main + 61
        14  mscorlib.dll.dylib                  0x000000010527ae8f wrapper_unknown_object_gsharedvt_out_sig_intptr_intptr_2 + 15
        15  mscorlib.dll.dylib                  0x000000010525cfd2 wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_object_intptr_intptr_intptr + 306
        16  mono                                0x0000000101c7ab06 mono_llvmonly_runtime_invoke + 1190
        17  mono                                0x0000000101c77110 mono_jit_runtime_invoke + 2512
        18  mono                                0x0000000101fd56f1 do_runtime_invoke + 193
        19  mono                                0x0000000101fcfb33 mono_runtime_try_invoke + 195
        20  mono                                0x0000000101fd97ce do_try_exec_main + 286
        21  mono                                0x0000000101fd82d9 mono_runtime_try_exec_main + 57
        22  mono                                0x0000000101fd8412 mono_runtime_try_run_main + 146
        23  mono                                0x0000000101d531ee mono_jit_exec + 302
        24  mono                                0x0000000101d56f40 main_thread_handler + 560
        25  mono                                0x0000000101d557f4 mono_main + 8180
        26  mono                                0x0000000101c60bde mono_main_with_options + 46
        27  mono                                0x0000000101c6044d main + 77
        28  libdyld.dylib                       0x00007fff97d445ad start + 1
        29  ???                                 0x0000000000000005 0x0 + 5

Debug info from gdb:

[New Thread 0x1303 of process 66180]
[New Thread 0x1403 of process 66180]
[New Thread 0x1503 of process 66180]
[New Thread 0x1603 of process 66180]

0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib
  Id   Target Id         Frame
  5    Thread 0x1603 of process 66180 0x00007fff9ceddff6 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  4    Thread 0x1503 of process 66180 0x00007fff9cedd6de in ?? () from /usr/lib/system/libsystem_kernel.dylib
  3    Thread 0x1403 of process 66180 0x00007fff9ced73c2 in sExifIFDMappings () from /usr/lib/system/libsystem_kernel.dylib
  2    Thread 0x1303 of process 66180 0x00007fff9cedceb2 in ?? () from /usr/lib/system/libsystem_kernel.dylib
* 1    Thread 0x1203 of process 66180 0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib

Thread 5 (Thread 0x1603 of process 66180):
  Id   Target Id         Frame
* 5    Thread 0x1603 of process 66180 0x00007fff9ceddff6 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  4    Thread 0x1503 of process 66180 0x00007fff9cedd6de in ?? () from /usr/lib/system/libsystem_kernel.dylib
  3    Thread 0x1403 of process 66180 0x00007fff9ced73c2 in sExifIFDMappings () from /usr/lib/system/libsystem_kernel.dylib
  2    Thread 0x1303 of process 66180 0x00007fff9cedceb2 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  1    Thread 0x1203 of process 66180 0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib

Thread 4 (Thread 0x1503 of process 66180):
  Id   Target Id         Frame
  5    Thread 0x1603 of process 66180 0x00007fff9ceddff6 in ?? () from /usr/lib/system/libsystem_kernel.dylib
* 4    Thread 0x1503 of process 66180 0x00007fff9cedd6de in ?? () from /usr/lib/system/libsystem_kernel.dylib
  3    Thread 0x1403 of process 66180 0x00007fff9ced73c2 in sExifIFDMappings () from /usr/lib/system/libsystem_kernel.dylib
  2    Thread 0x1303 of process 66180 0x00007fff9cedceb2 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  1    Thread 0x1203 of process 66180 0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib

Thread 3 (Thread 0x1403 of process 66180):
  Id   Target Id         Frame
  5    Thread 0x1603 of process 66180 0x00007fff9ceddff6 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  4    Thread 0x1503 of process 66180 0x00007fff9cedd6de in ?? () from /usr/lib/system/libsystem_kernel.dylib
* 3    Thread 0x1403 of process 66180 0x00007fff9ced73c2 in sExifIFDMappings () from /usr/lib/system/libsystem_kernel.dylib
  2    Thread 0x1303 of process 66180 0x00007fff9cedceb2 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  1    Thread 0x1203 of process 66180 0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib

Thread 2 (Thread 0x1303 of process 66180):
  Id   Target Id         Frame
  5    Thread 0x1603 of process 66180 0x00007fff9ceddff6 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  4    Thread 0x1503 of process 66180 0x00007fff9cedd6de in ?? () from /usr/lib/system/libsystem_kernel.dylib
  3    Thread 0x1403 of process 66180 0x00007fff9ced73c2 in sExifIFDMappings () from /usr/lib/system/libsystem_kernel.dylib
* 2    Thread 0x1303 of process 66180 0x00007fff9cedceb2 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  1    Thread 0x1203 of process 66180 0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib

Thread 1 (Thread 0x1203 of process 66180):
  Id   Target Id         Frame
  5    Thread 0x1603 of process 66180 0x00007fff9ceddff6 in ?? () from /usr/lib/system/libsystem_kernel.dylib
  4    Thread 0x1503 of process 66180 0x00007fff9cedd6de in ?? () from /usr/lib/system/libsystem_kernel.dylib
  3    Thread 0x1403 of process 66180 0x00007fff9ced73c2 in sExifIFDMappings () from /usr/lib/system/libsystem_kernel.dylib
  2    Thread 0x1303 of process 66180 0x00007fff9cedceb2 in ?? () from /usr/lib/system/libsystem_kernel.dylib
* 1    Thread 0x1203 of process 66180 0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib

Thread 5 (Thread 0x1603 of process 66180):
#0  0x00007fff9ceddff6 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff8e893099 in ?? () from /usr/lib/system/libdispatch.dylib
#2  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x1503 of process 66180):
#0  0x00007fff9cedd6de in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff9bc40729 in __block_descriptor_tmp28 () from /usr/lib/system/libsystem_pthread.dylib
#2  0x0001000000000000 in ?? ()
#3  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x1403 of process 66180):
#0  0x00007fff9ced73c2 in sExifIFDMappings () from /usr/lib/system/libsystem_kernel.dylib
#1  0x0000000101fca8aa in mono_os_sem_wait (sem=0x102bcdbf0, flags=MONO_SEM_FLAGS_ALERTABLE) at ../../mono/utils/mono-os-semaphore.h:72
#2  0x0000000101fca598 in mono_coop_sem_wait (sem=0x102bcdbf0, flags=MONO_SEM_FLAGS_ALERTABLE) at ../../mono/utils/mono-coop-semaphore.h:40
#3  0x0000000101fca3b3 in finalizer_thread (unused=0x0) at gc.c:767
#4  0x0000000101f8f76b in start_wrapper_internal (data=0x7fb362e03500) at threads.c:740
#5  0x0000000101f8f3e1 in start_wrapper (data=0x7fb362e03500) at threads.c:788
#6  0x00000001020d38ef in inner_start_thread (arg=0x7fff5dfa1ca0) at mono-threads-posix.c:92
#7  0x00007fff9bc40c13 in ?? () from /usr/lib/system/libsystem_pthread.dylib
#8  0x0000000000001303 in ?? ()
#9  0x0000700000284000 in ?? ()
#10 0x0000700000283f50 in ?? ()
#11 0x00007fff9bc40b90 in ?? () from /usr/lib/system/libsystem_pthread.dylib
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x1303 of process 66180):
#0  0x00007fff9cedceb2 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff9bc41150 in ?? () from /usr/lib/system/libsystem_pthread.dylib
#2  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x1203 of process 66180):
#0  0x00007fff9cedd67e in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x0000000101d9d0d2 in mono_handle_native_sigsegv (signal=6, ctx=0x7fff5dfa0f80, info=0x7fff5dfa0f18) at mini-exceptions.c:2458
#2  0x0000000101ea48f5 in sigabrt_signal_handler (_dummy=6, _info=0x7fff5dfa0f18, context=0x7fff5dfa0f80) at mini-posix.c:227
#3  <signal handler called>
#4  0x00007fff9cedd003 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#5  0x00007fff9bc425c5 in ?? () from /usr/lib/system/libsystem_pthread.dylib
#6  0x0000000000000006 in ?? ()
#7  0x00000a137aee8000 in ?? ()
#8  0x0000000000000001 in ?? ()
#9  0x00007fff5dfa2060 in ?? ()
#10 0x00007fff5dfa1070 in ?? ()
#11 0x0000000102995066 in abort ()
Backtrace stopped: frame did not save the PC

=============== EOF ===============
Comment 1 Zoltan Varga 2016-07-21 17:06:56 UTC
Fixed.