[Mono-bugs] [Bug 346828] New: AOT crashes with vbnc.exe

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 7 11:29:03 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=346828


           Summary: AOT crashes  with vbnc.exe
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


rolf at linux:~/test> mono --version
Mono JIT compiler version 1.2.6 (/trunk/ r90941)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none

rolf at linux:~/test> wget
http://anonsvn.mono-project.com/viewcvs/*checkout*/trunk/mono-basic/class/lib/bootstrap/vbnc.exe
(...)
17:27:25 (112.33 KB/s) - `vbnc.exe' saved [963584]

rolf at linux:~/test> mono --aot vbnc.exe
Mono Ahead of Time compiler - compiling assembly /home/rolf/test/vbnc.exe

** ERROR **: file aot-compiler.c: line 1705 (encode_method_ref): assertion
failed: (ji)
aborting...
Stacktrace:


Native stacktrace:

        mono [0x817ad1f]
        [0xffffe440]
        /lib/libc.so.6(abort+0x101) [0xb7d561e1]
        /usr/lib/libglib-2.0.so.0(g_logv+0x47a) [0xb7ed726a]
        /usr/lib/libglib-2.0.so.0(g_log+0x29) [0xb7ed72a9]
        /usr/lib/libglib-2.0.so.0(g_assert_warning+0x70) [0xb7ed7320]
        mono [0x805fe8b]
        mono [0x80614a8]
        mono [0x8062521]
        mono [0x8062ce3]
        mono(mono_main+0x134c) [0x805bacc]
        mono [0x805a272]
        /lib/libc.so.6(__libc_start_main+0xe0) [0xb7d40fe0]
        mono [0x805a1e1]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d2a8f0 (LWP 29021)]
[New Thread 0xb7308b90 (LWP 29023)]
[New Thread 0xb7f72b90 (LWP 29022)]
0xffffe410 in __kernel_vsyscall ()
  3 Thread 0xb7f72b90 (LWP 29022)  0xffffe410 in __kernel_vsyscall ()
  2 Thread 0xb7308b90 (LWP 29023)  0xffffe410 in __kernel_vsyscall ()
  1 Thread 0xb7d2a8f0 (LWP 29021)  0xffffe410 in __kernel_vsyscall ()

Thread 3 (Thread 0xb7f72b90 (LWP 29022)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e90846 in nanosleep () from /lib/libpthread.so.0
#2  0x0810e761 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7e89192 in start_thread (arg=0xb7f72b90) at pthread_create.c:296
#4  0xb7dee02e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb7308b90 (LWP 29023)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e8d566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so0
#2  0x0811142f in timedwait_signal_poll_cond (cond=0xb78021dc,
    mutex=0xb78021c4, timeout=0x0, alertable=0) at handles.c:1443
#3  0x08113e9d in _wapi_handle_timedwait_signal_handle (handle=0x404,
    timeout=0x0, alertable=0) at handles.c:1523
#4  0x08113f0c in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
    at handles.c:1483
#5  0x081258ba in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
    alertable=0) at wait.c:200
#6  0x080b3ffa in finalizer_thread (unused=0x0) at gc.c:888
#7  0x080d5b04 in start_wrapper (data=0x8257da8) at threads.c:569
#8  0x08123b52 in thread_start_routine (args=0xb76afe90) at threads.c:264
#9  0x0813b4c5 in GC_start_routine (arg=0x22f40) at pthread_support.c:1369
#10 0xb7e89192 in start_thread (arg=0xb7308b90) at pthread_create.c:296
#11 0xb7dee02e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7d2a8f0 (LWP 29021)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7db99a9 in __libc_fork ()
    at ../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:127
#2  0xb7e927b4 in __fork () at ../nptl/sysdeps/unix/sysv/linux/pt-fork.c:26
#3  0xb7efef49 in fork_exec_with_pipes (intermediate_child=0,
    working_directory=0x0, argv=0x8b9b8c8, envp=0x0, close_descriptors=1,
    search_path=1, stdout_to_null=0, stderr_to_null=0, child_inherits_stdin=0,
    file_and_argv_zero=0, child_setup=0, user_data=0x0, child_pid=0xbfef0f70,
    standard_input=0x0, standard_output=0xbfef0f78, standard_error=0xbfef0f74,
    error=0x0) at gspawn.c:1117
#4  0xb7effb6d in IA__g_spawn_sync (working_directory=0x0, argv=0x8b9b8c8,
    envp=0x0, flags=G_SPAWN_LEAVE_DESCRIPTORS_OPEN, child_setup=0,
    user_data=0x0, standard_output=0xbfef1898, standard_error=0xbfef1894,
    exit_status=0xbfef1890, error=0x0) at gspawn.c:249
#5  0xb7f0003c in IA__g_spawn_command_line_sync (
    command_line=0xbfef1004 "gdb --ex 'attach 29021' --ex 'info threads' --ex
'thread apply all bt' --batch", standard_output=0xbfef1898,
    standard_error=0xbfef1894, exit_status=0xbfef1890, error=0x0)
    at gspawn.c:672
#6  0x0817adb1 in mono_handle_native_sigsegv (signal=6, ctx=0xbfef193c)
    at mini-exceptions.c:1061
#7  <signal handler called>
#8  0xffffe410 in __kernel_vsyscall ()
#9  0xb7d548f5 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#10 0xb7d561e1 in *__GI_abort () at abort.c:88
#11 0xb7ed726a in IA__g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR,
    format=0xb7f22a20 "file %s: line %d (%s): assertion failed: (%s)",
    args1=0xbfef223c "\t\234\031\b�\006") at gmessages.c:497
#12 0xb7ed72a9 in IA__g_log (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR,
    format=0xb7f22a20 "file %s: line %d (%s): assertion failed: (%s)")
    at gmessages.c:517
#13 0xb7ed7320 in IA__g_assert_warning (log_domain=0x0,
    file=0x8199c09 "aot-compiler.c", line=1705,
    pretty_function=0x819a278 "encode_method_ref", expression=0x8200124 "ji")
    at gmessages.c:552
#14 0x0805fe8b in encode_method_ref (acfg=0x826f500,
    method=<value optimized out>, buf=0x8ba2221 "", endbuf=0xbfef22b8)
    at aot-compiler.c:1705
#15 0x080614a8 in encode_patch (acfg=0x826f500, patch_info=0x8447164,
    buf=0x715d "", endbuf=0xbfef2318, shared=1) at aot-compiler.c:2021
#16 0x08062521 in emit_info (acfg=0x826f500) at aot-compiler.c:2280
#17 0x08062ce3 in mono_compile_assembly (ass=0x8250000, opts=13724159,
    aot_options=0x0) at aot-compiler.c:3479
#18 0x0805bacc in mono_main (argc=3, argv=0xbfef2574) at driver.c:878
#19 0x0805a272 in main (argc=0, argv=0x0) at main.c:6
#0  0xffffe410 in __kernel_vsyscall ()


=================================================================
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.
=================================================================

Aborted


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list