[Mono-dev] mono-service2 dies with a dump

Steen Manniche stm at dbc.dk
Wed Dec 6 08:43:06 EST 2006


Hello all.

While trying to run the mono-service2 (whose /usr/local/bin shell
executes /usr/local/bin/mono
$MONO_OPTIONS /usr/local/lib/mono/2.0/mono-service.exe $args #</dev/null
>& /dev/null &), I ran into a core dump from the mono-service. I'm not
quite sure what to make of it, so if anybody has suggestions, I'm all
ears (well, eyes).

I ran mono-service2 with MONO_LOG_LEVEL="debug" and MONO_LOG_MASK="all"

Here's the output:

% mono-service2 ccservice.exe                 
Mono-INFO: Assembly Loader probing location:
'/usr/lib/mono/2.0/mscorlib.dll'.
Mono-INFO: Image addref mscorlib 0x8213320
-> /usr/lib/mono/2.0/mscorlib.dll 0x8210558: 2

Mono-INFO: AOT failed to load AOT
module /usr/lib/mono/2.0/mscorlib.dll.so: /usr/lib/mono/2.0/mscorlib.dll.so: cannot open shared object file: No such file or directory

Mono-INFO: Assembly Loader loaded assembly from location:
'/usr/lib/mono/2.0/mscorlib.dll'.
Mono-INFO: Config attempting to parse:
'/usr/lib/mono/2.0/mscorlib.dll.config'.
Mono-INFO: Config attempting to parse:
'/usr/local/etc/mono/assemblies/mscorlib/mscorlib.config'.
Mono-INFO: Config attempting to parse:
'/home/stm/.mono/assemblies/mscorlib/mscorlib.config'.
Mono-INFO: Assembly mscorlib 0x8213320 added to domain mono-service.exe,
ref_count=1

Mono-INFO: Config attempting to parse: '/usr/local/etc/mono/config'.
Mono-INFO: Config attempting to parse: '/home/stm/.mono/config'.
Mono-INFO: Assembly Loader probing location:
'/usr/local/lib/mono/2.0/mono-service.exe'.
Mono-INFO: Image addref mono-service 0x8248f18
-> /usr/local/lib/mono/2.0/mono-service.exe 0x820c4f8: 3

Mono-INFO: Assembly Ref addref mono-service 0x8248f18 -> mscorlib
0x8213320: 2

Mono-INFO: Assembly mono-service 0x8248f18 added to domain
mono-service.exe, ref_count=1

Mono-INFO: AOT failed to load AOT
module /usr/local/lib/mono/2.0/mono-service.exe.so: /usr/local/lib/mono/2.0/mono-service.exe.so: cannot open shared object file: No such file or directory

Mono-INFO: Assembly Loader loaded assembly from location:
'/usr/local/lib/mono/2.0/mono-service.exe'.
Mono-INFO: Config attempting to parse:
'/usr/local/lib/mono/2.0/mono-service.exe.config'.
Mono-INFO: Config attempting to parse:
'/usr/local/etc/mono/assemblies/mono-service/mono-service.config'.
Mono-INFO: Config attempting to parse:
'/home/stm/.mono/assemblies/mono-service/mono-service.config'.
Mono-INFO: Assembly Loader probing location:
'/usr/local/lib/mono/2.0/mono-service.exe'.
Mono-INFO: AOT failed to load AOT
module /usr/local/lib/mono/2.0/mono-service.exe.so: /usr/local/lib/mono/2.0/mono-service.exe.so: cannot open shared object file: No such file or directory

no implementation for interface method
System.Collections.Generic.IList<System.Object>::get_Item(int) in class
System.String[]
METHOD .ctor(int)

** ERROR **: file class.c: line 2087 (mono_class_setup_vtable_general):
should not be reached
aborting...
Stacktrace:


Native stacktrace:

        /usr/local/bin/mono [0x815a91a]
        [0xffffe440]
        /lib/tls/i686/cmov/libc.so.6(abort+0x103) [0xb7d7bef3]
        /usr/local/lib/libglib-2.0.so.0(g_logv+0x4c2) [0xb7eece02]
        /usr/local/lib/libglib-2.0.so.0(g_log+0x29) [0xb7eece39]
        /usr/local/lib/libglib-2.0.so.0(g_assert_warning+0x76)
[0xb7eeceb6]
        /usr/local/bin/mono [0x80f1aaa]
        /usr/local/bin/mono [0x80f21b1]
        /usr/local/bin/mono(mono_class_init+0x89d) [0x80f2a8d]
        /usr/local/bin/mono(mono_class_vtable+0x333) [0x8090e83]
        /usr/local/bin/mono(mono_array_new+0x35) [0x8092fe5]
        /usr/local/bin/mono(mono_runtime_run_main+0x135) [0x8093a65]
        /usr/local/bin/mono(mono_main+0xe41) [0x8058da1]
        /usr/local/bin/mono [0x8057a72]
        /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)
[0xb7d668cc]
        /usr/local/bin/mono [0x80579c1]

Debug info from gdb:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1210779968 (LWP 13626)]
[New Thread -1220097120 (LWP 13628)]
[New Thread -1214338144 (LWP 13627)]
0xffffe410 in __kernel_vsyscall ()
  3 Thread -1214338144 (LWP 13627)  0xffffe410 in __kernel_vsyscall ()
  2 Thread -1220097120 (LWP 13628)  0xffffe410 in __kernel_vsyscall ()
  1 Thread -1210779968 (LWP 13626)  0xffffe410 in __kernel_vsyscall ()

Thread 3 (Thread -1214338144 (LWP 13627)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7eb6bf6 in __nanosleep_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080f7c94 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7eb0504 in start_thread ()
from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7e1e51e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1220097120 (LWP 13628)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7eb3816 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080fa8ff in timedwait_signal_poll_cond (cond=0xb79561dc, 
    mutex=0xb79561c4, timeout=0x0, alertable=0) at handles.c:1413
#3  0x080fd11f in _wapi_handle_timedwait_signal_handle (handle=0x404, 
    timeout=0x0, alertable=0) at handles.c:1493
#4  0x080fd19c in _wapi_handle_wait_signal_handle (handle=0x404,
alertable=0)
    at handles.c:1453
#5  0x0810c91f in WaitForSingleObjectEx (handle=0x404,
timeout=4294967295, 
    alertable=0) at wait.c:200
#6  0x080a95aa in finalizer_thread (unused=0x0) at gc.c:819
#7  0x080c3b44 in start_wrapper (data=0x82381c8) at threads.c:313
#8  0x0810b72e in thread_start_routine (args=0xb78023c0) at
threads.c:253
#9  0x08121c05 in GC_start_routine (arg=0x22f40) at
pthread_support.c:1357
#10 0xb7eb0504 in start_thread ()
from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb7e1e51e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1210779968 (LWP 13626)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e17321 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7f0e370 in IA__g_spawn_sync (working_directory=0x0,
argv=0x8257108, 
    envp=0x0, flags=G_SPAWN_SEARCH_PATH, child_setup=0, user_data=0x0, 
    standard_output=0xbfcea644, standard_error=0xbfcea640, 
    exit_status=0xbfcea63c, error=0x0) at gspawn.c:299
#3  0xb7f0e73c in IA__g_spawn_command_line_sync (
    command_line=0xbfcea648 "gdb --ex 'attach 13626' --ex 'info threads'
--ex 'thread apply all bt' --batch", standard_output=0xbfcea644, 
    standard_error=0xbfcea640, exit_status=0xbfcea63c, error=0x0)
    at gspawn.c:667
#4  0x0815a9b5 in mono_handle_native_sigsegv (signal=6, ctx=0xbfceaaec)
    at mini-exceptions.c:1058
#5  <signal handler called>
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb7d7a770 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7d7bef3 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7eece02 in IA__g_logv (log_domain=<value optimized out>, 
    log_level=G_LOG_LEVEL_ERROR, 
    format=0xb7f14fd4 "file %s: line %d (%s): should not be reached", 
    args1=0xbfceb3dc "�\037\036\b'\b") at gmessages.c:497
#10 0xb7eece39 in IA__g_log (log_domain=0x0,
log_level=G_LOG_LEVEL_ERROR, 
    format=0xb7f14fd4 "file %s: line %d (%s): should not be reached")
    at gmessages.c:517
#11 0xb7eeceb6 in IA__g_assert_warning (log_domain=0x0, 
    file=0x81e1fbc "class.c", line=2087, 
    pretty_function=0x81e1f40 "mono_class_setup_vtable_general", 
    expression=0x0) at gmessages.c:552
#12 0x080f1aaa in mono_class_setup_vtable_general (class=0x824dd3c, 
    overrides=0x0, onum=0) at class.c:2087
#13 0x080f21b1 in mono_class_setup_vtable (class=0x824dd3c) at
class.c:1832
#14 0x080f2a8d in mono_class_init (class=0x824dd3c) at class.c:2567
#15 0x08090e83 in mono_class_vtable (domain=0x21ed8, class=0x824dd3c)
    at object.c:810
#16 0x08092fe5 in mono_array_new (domain=0x21ed8, eclass=0x8211d64, n=1)
    at object.c:2890
#17 0x08093a65 in mono_runtime_run_main (method=0x820cb4c, argc=2, 
    argv=0xbfcebbc8, exc=0x0) at object.c:2105
#18 0x08058da1 in mono_main (argc=2, argv=0xbfcebbc4) at driver.c:565
#19 0x08057a72 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.
=================================================================

zsh: abort (core dumped)  mono-service2 ccservice.exe


best regards,
-- 
Steen Manniche <stm at dbc.dk>
dbc





More information about the Mono-devel-list mailing list