[Mono-bugs] [Bug 506626] New: Crash when compiling lib without /dll argument

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 22 16:45:44 EDT 2009


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


           Summary: Crash when compiling lib without /dll argument
    Classification: Mono
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: IL assembler
        AssignedTo: jankit at novell.com
        ReportedBy: aaragoneses at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Steps to reproduce:
1. Compile this simple code to a .dll:

using System;
namespace TestLib2
{    
    public class MyClass
    {        
        public MyClass()
        {
        }
        private void TengoHambre ()
        {
        }
    }
}

2. Do 'monodis MyDll.dll > MyDll.il'
3. Do 'ilasm2 MyDll.il'.

Current results:
Assembling 'TestLib2.il' , no listing file, to exe --> 'TestLib2.exe'

Stacktrace:

  at Mono.ILASM.InstrTable.CreateInstTable () <0xffffffff>
  at Mono.ILASM.InstrTable.CreateInstTable () <0x05314>
  at Mono.ILASM.InstrTable..cctor () <0x0000a>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at Mono.ILASM.ILTokenizer.GetNextToken () <0xffffffff>
  at Mono.ILASM.ILTokenizer.GetNextToken () <0x008d3>
  at Mono.ILASM.ILTokenizer.get_NextToken () <0x00010>
  at Mono.ILASM.ScannerAdapter.advance () <0x00019>
  at Mono.ILASM.ILParser.yyparse (Mono.ILASM.yyParser.yyInput) <0x0098b>
  at Mono.ILASM.ILParser.yyparse (Mono.ILASM.yyParser.yyInput,object) <0x0008a>
  at Mono.ILASM.Driver/DriverMain.ProcessFile (string) <0x0021e>
  at Mono.ILASM.Driver/DriverMain.Run () <0x0014c>
  at Mono.ILASM.Driver.Main (string[]) <0x00058>
  at (wrapper runtime-invoke) Mono.ILASM.Driver.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    /usr/bin/mono [0x80cc3f4]
    /usr/bin/mono [0x80f6d4b]
    [0xffffe410]
    [0xb7d10066]
    [0xb749bfa3]
    [0xb74ec88a]
    /usr/bin/mono [0x8171d3d]
    /usr/bin/mono(mono_runtime_class_init+0x19) [0x81723f9]
    /usr/bin/mono [0x8063518]
    /usr/bin/mono [0x80d5275]
    [0xb7d10066]
    [0xb74b8881]
    [0xb74b885a]
    [0xb73cf98c]
    [0xb74b634b]
    [0xb74ecb4f]
    [0xb74eae15]
    [0xb7a11301]
    [0xb7a11203]
    /usr/bin/mono(mono_runtime_exec_main+0x16e) [0x816e3fe]
    /usr/bin/mono(mono_runtime_run_main+0x16d) [0x816eb1d]
    /usr/bin/mono(mono_main+0x18ea) [0x80b3dfa]
    /usr/bin/mono [0x805ae91]
    /lib/libc.so.6(__libc_start_main+0xe5) [0xb7e5a5f5]
    /usr/bin/mono [0x805adc1]

Debug info from gdb:

(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb7e43900 (LWP 15289)]
[New Thread 0xb7653b90 (LWP 15291)]
[New Thread 0xb7677b90 (LWP 15290)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xffffe430 in __kernel_vsyscall ()
  3 Thread 0xb7677b90 (LWP 15290)  0xffffe430 in __kernel_vsyscall ()
  2 Thread 0xb7653b90 (LWP 15291)  0xffffe430 in __kernel_vsyscall ()
  1 Thread 0xb7e43900 (LWP 15289)  0xffffe430 in __kernel_vsyscall ()

Thread 3 (Thread 0xb7677b90 (LWP 15290)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7fbb3e6 in nanosleep () from /lib/libpthread.so.0
#2  0x081a8488 in ?? ()
#3  0xb7fb4175 in start_thread () from /lib/libpthread.so.0
#4  0xb7f11dae in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb7653b90 (LWP 15291)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7fb9ee5 in sem_wait@@GLIBC_2.1 () from /lib/libpthread.so.0
#2  0x080faae9 in ?? ()
#3  0x08133708 in ?? ()
#4  0x081aed36 in ?? ()
#5  0x081cd985 in ?? ()
#6  0xb7fb4175 in start_thread () from /lib/libpthread.so.0
#7  0xb7f11dae in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7e43900 (LWP 15289)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7fbabab in read () from /lib/libpthread.so.0
#2  0x080cc596 in ?? ()
#3  0x080f6d4b in ?? ()
#4  <signal handler called>
#5  0x080d5398 in ?? ()
#6  0xb7d10066 in ?? ()
#7  0xb749bfa3 in ?? ()
#8  0xb74ec88a in ?? ()
#9  0x08171d3d in ?? ()
#10 0x081723f9 in mono_runtime_class_init ()
#11 0x08063518 in ?? ()
#12 0x080d5275 in ?? ()
#13 0xb7d10066 in ?? ()
#14 0xb74b8881 in ?? ()
#15 0xb74b885a in ?? ()
#16 0xb73cf98c in ?? ()
#17 0xb74b634b in ?? ()
#18 0xb74ecb4f in ?? ()
#19 0xb74eae15 in ?? ()
#20 0xb7a11301 in ?? ()
#21 0xb7a11203 in ?? ()
#22 0x0816e3fe in mono_runtime_exec_main ()
#23 0x0816eb1d in mono_runtime_run_main ()
#24 0x080b3dfa in mono_main ()
#25 0x0805ae91 in ?? ()
#26 0xb7e5a5f5 in __libc_start_main () from /lib/libc.so.6
#27 0x0805adc1 in ?? ()
#0  0xffffe430 in __kernel_vsyscall ()

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



The workaround is to use the /dll argument, but this should not crash.

-- 
Configure bugmail: http://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