[Mono-bugs] [Bug 415373] New: Mono crashes when non-root user uses it after crash under root user
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Aug 7 05:23:46 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=415373
Summary: Mono crashes when non-root user uses it after crash
under root user
Product: Mono: Runtime
Version: SVN
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. compile Mono mcs using root/sudo user
2. break the compilation
3. compile Mono mcs using normal user
MONO CRASHES WITH
** (../class/lib/basic/mcs.exe:23622): 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/basic/mcs.exe:23622): 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:346):shm_semaphores_init: assertion failed: (tmp_shared !=
NULL)
** (../class/lib/basic/mcs.exe:23622): WARNING **: Thread (nil) may have been
prematurely finalized
Stacktrace:
** (../class/lib/basic/mcs.exe:23622): WARNING **: Thread (nil) may have been
prematurely finalized
** (../class/lib/basic/mcs.exe:23622): WARNING **: Thread (nil) may have been
prematurely finalized
Native stacktrace:
/home/marek/svn/mono/mono/mini/mono [0x806df9a]
[0x4001c440]
/lib/tls/i686/cmov/libc.so.6(abort+0x101) [0x40161a01]
/usr/lib/libglib-2.0.so.0(g_assertion_message+0x121) [0x40095751]
/usr/lib/libglib-2.0.so.0 [0x40095cad]
/home/marek/svn/mono/mono/mini/mono [0x8150c4e]
/home/marek/svn/mono/mono/mini/mono [0x8152670]
/home/marek/svn/mono/mono/mini/mono(mono_once+0x96) [0x8151116]
/home/marek/svn/mono/mono/mini/mono [0x81523ac]
/home/marek/svn/mono/mono/mini/mono [0x813eb9e]
/home/marek/svn/mono/mono/mini/mono [0x813ef84]
/home/marek/svn/mono/mono/mini/mono [0x80ecf27]
/home/marek/svn/mono/mono/mini/mono(mono_runtime_init+0x26) [0x80bba06]
/home/marek/svn/mono/mono/mini/mono [0x817493e]
/home/marek/svn/mono/mono/mini/mono(mono_main+0x3b2) [0x805b732]
/home/marek/svn/mono/mono/mini/mono [0x805ade2]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0x4014b450]
/home/marek/svn/mono/mono/mini/mono [0x805ad51]
Debug info from gdb:
Cannot access memory at address 0x5c46
[Thread debugging using libthread_db enabled]
[New Thread 0x402c5960 (LWP 23622)]
0x4001c410 in __kernel_vsyscall ()
1 Thread 0x402c5960 (LWP 23622) 0x4001c410 in __kernel_vsyscall ()
Thread 1 (Thread 0x402c5960 (LWP 23622)):
#0 0x4001c410 in __kernel_vsyscall ()
#1 0x40104973 in __read_nocancel () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0806e111 in mono_handle_native_sigsegv (signal=6, ctx=0xbff7259c) at
mini-exceptions.c:1329
#3 <signal handler called>
#4 0x4001c410 in __kernel_vsyscall ()
#5 0x40160085 in raise () from /lib/tls/i686/cmov/libc.so.6
#6 0x40161a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#7 0x40095751 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#8 0x40095cad in g_assertion_message_expr () from /usr/lib/libglib-2.0.so.0
#9 0x08150c4e in _wapi_shm_semaphores_init () at shared.c:346
#10 0x08152670 in shared_init () at handles.c:233
#11 0x08151116 in mono_once (once=0x82d7518, once_init=0x8152620 <shared_init>)
at mono-mutex.c:80
#12 0x081523ac in _wapi_handle_new (type=WAPI_HANDLE_SEM,
handle_specific=0xbff72c58) at handles.c:413
#13 0x0813eb9e in sem_create (security=<value optimized out>, initial=0,
max=2147483647)
at semaphores.c:181
#14 0x0813ef84 in CreateSemaphore (security=0x0, initial=0, max=2147483647,
name=0x0) at semaphores.c:353
#15 0x080ecf27 in mono_thread_pool_init () at threadpool.c:989
#16 0x080bba06 in mono_runtime_init (domain=0x34ea0, start_cb=0x8173af0
<mono_thread_start_cb>,
attach_cb=0x8173b40 <mono_thread_attach_cb>) at appdomain.c:142
#17 0x0817493e in mini_init (filename=0xbff73301 "../class/lib/basic/mcs.exe",
runtime_version=0x0)
at mini.c:15319
#18 0x0805b732 in mono_main (argc=13, argv=0xbff73054) at driver.c:1427
#19 0x0805ade2 in main (argc=) at main.c:30
#0 0x4001c410 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