[Mono-dev] Latest mono --aot from trunk + FSharp.Compiler.dll
Zoltan Varga
vargaz at gmail.com
Tue Aug 3 21:40:48 EDT 2010
Hi,
This should be fixed now.
Zoltan
On Tue, Aug 3, 2010 at 8:31 PM, damageboy <dans at houmus.org> wrote:
>
> Hi,
> I'm trying to generate an aot image of F#.
>
> When I run mon --aot FSharp.Compiler.dll I get this:
> [mono.trunk] ~/fsharp/bin @ mono --aot FSharp.Compiler.dll
> Mono Ahead of Time compiler - compiling assembly
> /home/dans/fsharp/bin/FSharp.Compiler.dll
> Could not load file or assembly 'ISymWrapper, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
> dependencies.
> Could not load file or assembly 'ISymWrapper, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
> dependencies.
> Executing opt: opt -f -simplifycfg -domtree -domfrontier -scalarrepl
> -instcombine -simplifycfg -basiccg -prune-eh -inline -functionattrs
> -domtree
> -domfrontier -scalarrepl -simplify-libcalls -instcombine -simplifycfg
> -instcombine -simplifycfg -reassociate -domtree -loops -loopsimplify
> -domfrontier -loopsimplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch
> -instcombine -scalar-evolution -loopsimplify -lcssa -iv-users -indvars
> -loop-deletion -loopsimplify -lcssa -loop-unroll -instcombine -memdep -gvn
> -memdep -memcpyopt -sccp -instcombine -domtree -memdep -dse -adce -gvn
> -simplifycfg -preverify -domtree -verify -o temp.opt.bc temp.bc
> Executing llc: llc -relocation-model=pic -unwind-tables -o temp.s
> temp.opt.bc
> Stacktrace:
>
>
> Native stacktrace:
>
> mono() [0x49204b]
> mono() [0x4f35ef]
> /lib/libpthread.so.0(+0xf8f0) [0x7f7b7b0d88f0]
> /lib/libc.so.6(+0x7a1c3) [0x7f7b7aba91c3]
> /lib/libc.so.6(cfree+0x73) [0x7f7b7abace53]
> mono() [0x5e08ef]
> mono() [0x47ec9e]
> mono() [0x47f748]
> mono(mono_main+0x13d7) [0x4709d7]
> /lib/libc.so.6(__libc_start_main+0xfd) [0x7f7b7ab4dc4d]
> mono() [0x418ab9]
>
> Debug info from gdb:
>
> Mono support loaded.
> [Thread debugging using libthread_db enabled]
> [New Thread 0x7f7b74d83710 (LWP 30574)]
> [New Thread 0x7f7b7bcec710 (LWP 30573)]
> [New Thread 0x7f7b77b28710 (LWP 30572)]
> [New Thread 0x7f7b78329710 (LWP 30571)]
> [New Thread 0x7f7b78b2a710 (LWP 30570)]
> [New Thread 0x7f7b7932b710 (LWP 30569)]
> [New Thread 0x7f7b79b2c710 (LWP 30568)]
> [New Thread 0x7f7b7a32d710 (LWP 30567)]
> [New Thread 0x7f7b7ab2e710 (LWP 30566)]
> 0x00007f7b7b0d793d in read () from /lib/libpthread.so.0
> 10 Thread 0x7f7b7ab2e710 (LWP 30566) 0x00007f7b7b0d485c in
> pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> 9 Thread 0x7f7b7a32d710 (LWP 30567) 0x00007f7b7b0d485c in
> pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> 8 Thread 0x7f7b79b2c710 (LWP 30568) 0x00007f7b7b0d485c in
> pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> 7 Thread 0x7f7b7932b710 (LWP 30569) 0x00007f7b7b0d485c in
> pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> 6 Thread 0x7f7b78b2a710 (LWP 30570) 0x00007f7b7b0d485c in
> pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> 5 Thread 0x7f7b78329710 (LWP 30571) 0x00007f7b7b0d485c in
> pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> 4 Thread 0x7f7b77b28710 (LWP 30572) 0x00007f7b7b0d485c in
> pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> 3 Thread 0x7f7b7bcec710 (LWP 30573) 0x00007f7b7b0d811d in nanosleep ()
> from /lib/libpthread.so.0
> 2 Thread 0x7f7b74d83710 (LWP 30574) 0x00007f7b7b0d6b50 in sem_wait ()
> from /lib/libpthread.so.0
> * 1 Thread 0x7f7b7be7f760 (LWP 30565) 0x00007f7b7b0d793d in read () from
> /lib/libpthread.so.0
>
> Thread 10 (Thread 0x7f7b7ab2e710 (LWP 30566)):
> #0 0x00007f7b7b0d485c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #1 0x00000000005efd58 in GC_wait_marker () at pthread_support.c:1785
> #2 0x00000000005f23ba in GC_help_marker (my_mark_no=9) at mark.c:1116
> #3 0x00000000005ee994 in GC_mark_thread (id=0x0) at pthread_support.c:548
> #4 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #5 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #6 0x0000000000000000 in ?? ()
>
> Thread 9 (Thread 0x7f7b7a32d710 (LWP 30567)):
> #0 0x00007f7b7b0d485c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #1 0x00000000005efd58 in GC_wait_marker () at pthread_support.c:1785
> #2 0x00000000005f23ba in GC_help_marker (my_mark_no=9) at mark.c:1116
> #3 0x00000000005ee994 in GC_mark_thread (id=0x1) at pthread_support.c:548
> #4 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #5 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #6 0x0000000000000000 in ?? ()
>
> Thread 8 (Thread 0x7f7b79b2c710 (LWP 30568)):
> #0 0x00007f7b7b0d485c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #1 0x00000000005efd58 in GC_wait_marker () at pthread_support.c:1785
> #2 0x00000000005f23ba in GC_help_marker (my_mark_no=9) at mark.c:1116
> #3 0x00000000005ee994 in GC_mark_thread (id=0x2) at pthread_support.c:548
> #4 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #5 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #6 0x0000000000000000 in ?? ()
>
> Thread 7 (Thread 0x7f7b7932b710 (LWP 30569)):
> #0 0x00007f7b7b0d485c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #1 0x00000000005efd58 in GC_wait_marker () at pthread_support.c:1785
> #2 0x00000000005f23ba in GC_help_marker (my_mark_no=9) at mark.c:1116
> #3 0x00000000005ee994 in GC_mark_thread (id=0x3) at pthread_support.c:548
> #4 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #5 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #6 0x0000000000000000 in ?? ()
>
> Thread 6 (Thread 0x7f7b78b2a710 (LWP 30570)):
> #0 0x00007f7b7b0d485c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #1 0x00000000005efd58 in GC_wait_marker () at pthread_support.c:1785
> #2 0x00000000005f23ba in GC_help_marker (my_mark_no=9) at mark.c:1116
> #3 0x00000000005ee994 in GC_mark_thread (id=0x4) at pthread_support.c:548
> #4 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #5 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #6 0x0000000000000000 in ?? ()
>
> Thread 5 (Thread 0x7f7b78329710 (LWP 30571)):
> #0 0x00007f7b7b0d485c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #1 0x00000000005efd58 in GC_wait_marker () at pthread_support.c:1785
> #2 0x00000000005f23ba in GC_help_marker (my_mark_no=9) at mark.c:1116
> #3 0x00000000005ee994 in GC_mark_thread (id=0x5) at pthread_support.c:548
> #4 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #5 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #6 0x0000000000000000 in ?? ()
>
> Thread 4 (Thread 0x7f7b77b28710 (LWP 30572)):
> #0 0x00007f7b7b0d485c in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #1 0x00000000005efd58 in GC_wait_marker () at pthread_support.c:1785
> #2 0x00000000005f23ba in GC_help_marker (my_mark_no=9) at mark.c:1116
> #3 0x00000000005ee994 in GC_mark_thread (id=0x6) at pthread_support.c:548
> #4 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #5 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #6 0x0000000000000000 in ?? ()
>
> Thread 3 (Thread 0x7f7b7bcec710 (LWP 30573)):
> #0 0x00007f7b7b0d811d in nanosleep () from /lib/libpthread.so.0
> #1 0x00000000005b3622 in collection_thread (unused=<value optimized out>)
> at collection.c:34
> #2 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #3 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #4 0x0000000000000000 in ?? ()
>
> Thread 2 (Thread 0x7f7b74d83710 (LWP 30574)):
> #0 0x00007f7b7b0d6b50 in sem_wait () from /lib/libpthread.so.0
> #1 0x00000000005c9228 in mono_sem_wait (sem=0x1189200, alertable=0) at
> mono-semaphore.c:102
> #2 0x00000000004fb5c2 in finalizer_thread (unused=<value optimized out>)
> at
> gc.c:1048
> #3 0x000000000053deaf in start_wrapper (data=<value optimized out>) at
> threads.c:747
> #4 0x00000000005c0014 in thread_start_routine (args=0x1df41c0) at
> wthreads.c:285
> #5 0x00000000005ef9bb in GC_start_routine (arg=0x7f7b7bcd6fc0) at
> pthread_support.c:1390
> #6 0x00007f7b7b0cf9ca in start_thread () from /lib/libpthread.so.0
> #7 0x00007f7b7ac156fd in clone () from /lib/libc.so.6
> #8 0x0000000000000000 in ?? ()
>
> Thread 1 (Thread 0x7f7b7be7f760 (LWP 30565)):
> #0 0x00007f7b7b0d793d in read () from /lib/libpthread.so.0
> #1 0x00000000004921d7 in read (signal=<value optimized out>, ctx=<value
> optimized out>) at /usr/include/bits/unistd.h:45
> #2 mono_handle_native_sigsegv (signal=<value optimized out>, ctx=<value
> optimized out>) at mini-exceptions.c:1931
> #3 0x00000000004f35ef in mono_arch_handle_altstack_exception
> (sigctx=0x7f7b7bd01bc0, fault_addr=<value optimized out>, stack_ovf=0) at
> exceptions-amd64.c:922
> #4 <signal handler called>
> #5 0x00007f7b7aba91c3 in ?? () from /lib/libc.so.6
> #6 0x00007f7b7abace53 in free () from /lib/libc.so.6
> #7 0x00000000005e08ef in monoeg_g_free (ptr=0x175998f0) at gmem.c:36
> #8 0x000000000047ec9e in emit_extra_methods (acfg=0x1e0dab0) at
> aot-compiler.c:5154
> #9 0x000000000047f748 in mono_compile_assembly (ass=<value optimized out>,
> opts=<value optimized out>, aot_options=<value optimized out>) at
> aot-compiler.c:6330
> #10 0x00000000004709d7 in main_thread_handler (argc=<value optimized out>,
> argv=<value optimized out>) at driver.c:976
> #11 mono_main (argc=<value optimized out>, argv=<value optimized out>) at
> driver.c:1819
> #12 0x00007f7b7ab4dc4d in __libc_start_main () from /lib/libc.so.6
> #13 0x0000000000418ab9 in _start ()
>
> =================================================================
> Got a SIGSEGV while executing native code. This usually indicates
> a fatal error in the mono runtime or one of the native libraries
> used by your application.
> =================================================================
>
> Aborted
>
> Is f# / AOT supposed to work together?
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Latest-mono-aot-from-trunk-FSharp-Compiler-dll-tp2312390p2312390.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100804/2f6dbc1d/attachment-0001.html
More information about the Mono-devel-list
mailing list