[Mono-bugs] [Bug 466853] New: Crash when mono runs under different users at same time

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 16 11:01:40 EST 2009


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


           Summary: Crash when mono runs under different users at same
                    time
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: dick at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


1. run mono app under root, e.g. 'sudo make install' in /mono
2. run mono under normal user, e.g. make run-test in /mcs/tests

Mono crashes with

** (./../class/lib/net_2_0/compiler-tester.exe:27116): CRITICAL **:
_wapi_shm_file_open: shared file
[/home/marek/svn/mono/runtime/.wapi/shared_data-m-6400-Linux-i686-312-12-0]
open error: Permission denied

** (./../class/lib/net_2_0/compiler-tester.exe:27116): CRITICAL **:
_wapi_shm_attach: shared file
[/home/marek/svn/mono/runtime/.wapi/shared_data-m-6400-Linux-i686-312-12-0]
open error
**
ERROR:shared.c:349:shm_semaphores_init: assertion failed: (tmp_shared != NULL)

** (./../class/lib/net_2_0/compiler-tester.exe:27116): WARNING **: Thread (nil)
may have been prematurely finalized
Stacktrace:


** (./../class/lib/net_2_0/compiler-tester.exe:27116): WARNING **: Thread (nil)
may have been prematurely finalized

** (./../class/lib/net_2_0/compiler-tester.exe:27116): WARNING **: Thread (nil)
may have been prematurely finalized

Native stacktrace:

    /home/marek/svn/mono/mono/mini/mono [0x80cb954]
    [0x4001a410]
    /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0x4016d248]
    /usr/lib/libglib-2.0.so.0(g_assertion_message+0x123) [0x4009cb73]
    /usr/lib/libglib-2.0.so.0 [0x4009d09d]
    /home/marek/svn/mono/mono/mini/mono [0x81abd44]
    /home/marek/svn/mono/mono/mini/mono [0x81ae0f5]
    /home/marek/svn/mono/mono/mini/mono(mono_once+0x6b) [0x81ac23b]
    /home/marek/svn/mono/mono/mini/mono [0x81ae044]
    /home/marek/svn/mono/mono/mini/mono [0x81987d0]
    /home/marek/svn/mono/mono/mini/mono [0x81435f0]
    /home/marek/svn/mono/mono/mini/mono(mono_runtime_init+0x2d) [0x8110cfd]
    /home/marek/svn/mono/mono/mini/mono [0x805d479]
    /home/marek/svn/mono/mono/mini/mono(mono_main+0x398) [0x80b25c8]
    /home/marek/svn/mono/mono/mini/mono [0x805af61]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0x40156685]
    /home/marek/svn/mono/mono/mini/mono [0x805ae91]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0x402c8e30 (LWP 27116)]
0x4001a430 in __kernel_vsyscall ()
  1 Thread 0x402c8e30 (LWP 27116)  0x4001a430 in __kernel_vsyscall ()

Thread 1 (Thread 0x402c8e30 (LWP 27116)):
#0  0x4001a430 in __kernel_vsyscall ()
#1  0x4010e0e3 in __read_nocancel () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080cbaf6 in mono_handle_native_sigsegv (signal=6, ctx=0xbfeefedc) at
/usr/include/bits/unistd.h:45
#3  <signal handler called>
#4  0x4001a430 in __kernel_vsyscall ()
#5  0x4016b880 in raise () from /lib/tls/i686/cmov/libc.so.6
#6  0x4016d248 in abort () from /lib/tls/i686/cmov/libc.so.6
#7  0x4009cb73 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#8  0x4009d09d in g_assertion_message_expr () from /usr/lib/libglib-2.0.so.0
#9  0x081abd44 in _wapi_shm_semaphores_init () at shared.c:349
#10 0x081ae0f5 in shared_init () at handles.c:246
#11 0x081ac23b in mono_once (once=0x82925b8, once_init=0x81ae0a0 <shared_init>)
at mono-mutex.c:80
#12 0x081ae044 in _wapi_handle_new (type=WAPI_HANDLE_SEM,
handle_specific=0xbfef0538) at handles.c:499
#13 0x081987d0 in sem_create (security=<value optimized out>, initial=0,
max=2147483647)
    at semaphores.c:181
#14 0x081435f0 in mono_thread_pool_init () at threadpool.c:1075
#15 0x08110cfd in mono_runtime_init (domain=0x25ee0, start_cb=0x805c190
<mono_thread_start_cb>, 
    attach_cb=0x805c270 <mono_thread_attach_cb>) at appdomain.c:173
#16 0x0805d479 in mini_init (filename=0xbfef1330
"./../class/lib/net_2_0/compiler-tester.exe", 
    runtime_version=0x0) at mini.c:5325
#17 0x080b25c8 in mono_main (argc=14, argv=0xbfef07d4) at driver.c:1535
#18 0x0805af61 in main (argc=0, argv=0x0) at main.c:34
#0  0x4001a430 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
make: *** [run-test-local] Error 134

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