[Mono-bugs] [Bug 600305] New: SIGABRT with mono --aot ERROR:(aot-compiler.c:4845):emit_got_info: assertion failed: (p - buf <= buf_size)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 27 18:31:16 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=600305

http://bugzilla.novell.com/show_bug.cgi?id=600305#c0


           Summary: SIGABRT with mono --aot
                    ERROR:(aot-compiler.c:4845):emit_got_info: assertion
                    failed: (p - buf <= buf_size)
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86-64
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: diakopter at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3 (.NET CLR 4.0.20506)

I have attached two assemblies.  One (Sprixel.exe) generates the other
(perlesque.exe), and perlesque.exe depends on Sprixel.exe.  Mono --aot is able
to AOT Sprixel.exe just fine, but dies with the following error messages when
trying to AOT perlesque.exe:


**
** ERROR:(aot-compiler.c:4845):emit_got_info: assertion failed: (p - buf <=
buf_size)
Mono Ahead of Time compiler - compiling assembly
/home/p6eval/perlesque/trunk/Sprixel/bin/Release/perlesque.exe
Stacktrace:


Native stacktrace:

        mono [0x48b0e0]
        /lib/libpthread.so.0 [0x2b070ec4ca80]
        /lib/libc.so.6(gsignal+0x35) [0x2b070f10eed5]
        /lib/libc.so.6(abort+0x183) [0x2b070f1103f3]
        /lib/libc.so.6 [0x2b070f14b3a8]
        /lib/libc.so.6 [0x2b070f150948]
        /lib/libc.so.6 [0x2b070f15317c]
        /lib/libc.so.6(__libc_malloc+0x98) [0x2b070f154a78]
        /usr/lib/libglib-2.0.so.0(g_realloc+0x2e) [0x2b070e5aeace]
        /usr/lib/libglib-2.0.so.0 [0x2b070e5c87b4]
        /usr/lib/libglib-2.0.so.0(g_string_sized_new+0x4a) [0x2b070e5c996a]
        /usr/lib/libglib-2.0.so.0 [0x2b070e5cba3c]
        /usr/lib/libglib-2.0.so.0(g_assertion_message+0xf7) [0x2b070e5cbff7]
        /usr/lib/libglib-2.0.so.0 [0x2b070e5cc4a2]
        mono [0x4785fc]
        mono [0x47a0bf]
        mono(mono_main+0x61f) [0x46aadf]
        /lib/libc.so.6(__libc_start_main+0xe6) [0x2b070f0fb1a6]
        mono(g_ascii_strcasecmp+0xb1) [0x417d99]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0x2b070f659b40 (LWP 8485)]
[New Thread 0x41a29950 (LWP 8491)]
[New Thread 0x41828950 (LWP 8490)]
[New Thread 0x41814950 (LWP 8489)]
[New Thread 0x41013950 (LWP 8488)]
[New Thread 0x40812950 (LWP 8487)]
0x00002b070ec4b7db in read () from /lib/libpthread.so.0
  6 Thread 0x40812950 (LWP 8487)  0x00002b070ec48d29 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  5 Thread 0x41013950 (LWP 8488)  0x00002b070ec48d29 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  4 Thread 0x41814950 (LWP 8489)  0x00002b070ec48d29 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  3 Thread 0x41828950 (LWP 8490)  0x00002b070ec4c0e1 in nanosleep () from
/lib/libpthread.so.0
  2 Thread 0x41a29950 (LWP 8491)  0x00002b070ec4abd1 in sem_wait () from
/lib/libpthread.so.0
  1 Thread 0x2b070f659b40 (LWP 8485)  0x00002b070ec4b7db in read () from
/lib/libpthread.so.0

Thread 6 (Thread 0x40812950 (LWP 8487)):
#0  0x00002b070ec48d29 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#1  0x00000000005cb62f in GC_wait_marker () at pthread_support.c:1785
#2  0x00000000005c21f8 in GC_help_marker (my_mark_no=2) at mark.c:1116
#3  0x00000000005ca37c in GC_mark_thread (id=0x0) at pthread_support.c:548
#4  0x00002b070ec44fc7 in start_thread () from /lib/libpthread.so.0
#5  0x00002b070f1ac5ad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x41013950 (LWP 8488)):
#0  0x00002b070ec48d29 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#1  0x00000000005cb62f in GC_wait_marker () at pthread_support.c:1785
#2  0x00000000005c21f8 in GC_help_marker (my_mark_no=2) at mark.c:1116
#3  0x00000000005ca37c in GC_mark_thread (id=0x1) at pthread_support.c:548
#4  0x00002b070ec44fc7 in start_thread () from /lib/libpthread.so.0
#5  0x00002b070f1ac5ad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x41814950 (LWP 8489)):
#0  0x00002b070ec48d29 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#1  0x00000000005cb62f in GC_wait_marker () at pthread_support.c:1785
#2  0x00000000005c21f8 in GC_help_marker (my_mark_no=2) at mark.c:1116
#3  0x00000000005ca37c in GC_mark_thread (id=0x2) at pthread_support.c:548
#4  0x00002b070ec44fc7 in start_thread () from /lib/libpthread.so.0
#5  0x00002b070f1ac5ad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x41828950 (LWP 8490)):
#0  0x00002b070ec4c0e1 in nanosleep () from /lib/libpthread.so.0
#1  0x0000000000591a92 in collection_thread (unused=<value optimized out>) at
collection.c:34
#2  0x00002b070ec44fc7 in start_thread () from /lib/libpthread.so.0
#3  0x00002b070f1ac5ad in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x41a29950 (LWP 8491)):
#0  0x00002b070ec4abd1 in sem_wait () from /lib/libpthread.so.0
#1  0x0000000000501718 in finalizer_thread (unused=<value optimized out>) at
gc.c:1022
#2  0x0000000000579388 in start_wrapper (data=<value optimized out>) at
threads.c:661
#3  0x00000000005ab31b in thread_start_routine (args=0x935fb8) at
wthreads.c:286
#4  0x00000000005cb2c2 in GC_start_routine (arg=0x2aaaaaad0e70) at
pthread_support.c:1390
#5  0x00002b070ec44fc7 in start_thread () from /lib/libpthread.so.0
#6  0x00002b070f1ac5ad in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x2b070f659b40 (LWP 8485)):
#0  0x00002b070ec4b7db in read () from /lib/libpthread.so.0
#1  0x000000000048b269 in mono_handle_native_sigsegv (signal=<value optimized
out>, ctx=<value optimized out>) at mini-exceptions.c:1818
#2  <signal handler called>
#3  0x00002b070f10eed5 in raise () from /lib/libc.so.6
#4  0x00002b070f1103f3 in abort () from /lib/libc.so.6
#5  0x00002b070f14b3a8 in ?? () from /lib/libc.so.6
#6  0x00002b070f150948 in ?? () from /lib/libc.so.6
#7  0x00002b070f15317c in ?? () from /lib/libc.so.6
#8  0x00002b070f154a78 in malloc () from /lib/libc.so.6
#9  0x00002b070e5aeace in g_realloc () from /usr/lib/libglib-2.0.so.0
#10 0x00002b070e5c87b4 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x00002b070e5c996a in g_string_sized_new () from /usr/lib/libglib-2.0.so.0
#12 0x00002b070e5cba3c in ?? () from /usr/lib/libglib-2.0.so.0
#13 0x00002b070e5cbff7 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#14 0x00002b070e5cc4a2 in g_assertion_message_expr () from
/usr/lib/libglib-2.0.so.0
#15 0x00000000004785fc in emit_got_info (acfg=0x95d410) at aot-compiler.c:4845
#16 0x000000000047a0bf in mono_compile_assembly (ass=<value optimized out>,
opts=<value optimized out>, aot_options=<value optimized out>) at
aot-compiler.c:5589
#17 0x000000000046aadf in mono_main (argc=3, argv=<value optimized out>) at
driver.c:979
#18 0x00002b070f0fb1a6 in __libc_start_main () from /lib/libc.so.6
#19 0x0000000000417d99 in _start ()
#0  0x00002b070ec4b7db in read () from /lib/libpthread.so.0

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



Reproducible: Always

Steps to Reproduce:
1. download the two assemblies I've attached
2. using mono 2.6.3 on linux 64-bit, run:  mono --aot perlesque.exe
3.
Actual Results:  
the above error

Expected Results:  
no error

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


More information about the mono-bugs mailing list