[Mono-list] System.Web.Security.Membership causes an exception on mono platform

Olli Heiskanen ohjelmistoarkkitehti at gmail.com
Fri Jan 23 12:22:43 UTC 2015


Thanks Martin, I'll be happy to hear if you find anything.

I tried to compile the latest mono from source, so far no luck, I get
either "The compiler 'mcs' doesn't appear to be usable." error or the
following, when the compiler is making the runtime:
(command make EXTERNAL_MCS=/usr/bin/mcs causes this. I also tried with the
basic.exe under the mono latest directory but got the not usable error
above)
The branch versions do compile and install fine after the submodule update,
and my current mono version on the testing server is 3.12.0.


Making all in runtime
make[2]: Entering directory `/usr/local/src/monogit-latest/mono/runtime'
if test -w /usr/local/src/monogit-latest/mono/mcs; then :; else chmod -R +w
/usr/local/src/monogit-latest/mono/mcs; fi
cd /usr/local/src/monogit-latest/mono/mcs && make --no-print-directory -s
NO_DIR_CHECK=1 PROFILES='net_4_0 net_4_5 xbuild_12 xbuild_14   ' CC='gcc'
all-profiles
Bootstrap compiler: Mono C# compiler version 3.12.0.0
MCS     [build] mscorlib.dll
* Assertion at tramp-amd64.c:1115, condition `code - buf <= tramp_size' not
met

Stacktrace:

  at <unknown> <0xffffffff>
  at System.Console..cctor () <0x00127>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at Mono.CSharp.Driver.Main (string[]) <0x00071>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x4a5d55]
        /lib64/libpthread.so.0(+0xf710) [0x7f751e734710]
        /lib64/libc.so.6(gsignal+0x35) [0x7f751e3c3625]
        /lib64/libc.so.6(abort+0x175) [0x7f751e3c4e05]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x621d49]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x621dd7]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x621e97]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x4ff899]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x4a81a9]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x418b45]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x4e396c]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x41815c]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x41bbfd]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x41d061]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x41daeb]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x4a9b68]
        /usr/local/src/monogit-latest/mono/mono/mini/mono() [0x4aa65d]
        [0x41002166]

Debug info from gdb:

[New LWP 2023]
[Thread debugging using libthread_db enabled]
0x00007f751e7342ad in waitpid () from /lib64/libpthread.so.0
  2 Thread 0x7f751c6ea700 (LWP 2023)  0x00007f751e732930 in sem_wait ()
from /lib64/libpthread.so.0
* 1 Thread 0x7f751f1e3760 (LWP 2010)  0x00007f751e7342ad in waitpid () from
/lib64/libpthread.so.0

Thread 2 (Thread 0x7f751c6ea700 (LWP 2023)):
#0  0x00007f751e732930 in sem_wait () from /lib64/libpthread.so.0
#1  0x00000000006172c8 in mono_sem_wait (sem=0x963ba0, alertable=1) at
mono-semaphore.c:101
#2  0x000000000059cccd in finalizer_thread (unused=<value optimized out>)
at gc.c:1077
#3  0x000000000057ce7b in start_wrapper_internal (data=<value optimized
out>) at threads.c:664
#4  start_wrapper (data=<value optimized out>) at threads.c:711
#5  0x000000000061ca16 in inner_start_thread (arg=<value optimized out>) at
mono-threads-posix.c:92
#6  0x00007f751e72c9d1 in start_thread () from /lib64/libpthread.so.0
#7  0x00007f751e4798fd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f751f1e3760 (LWP 2010)):
#0  0x00007f751e7342ad in waitpid () from /lib64/libpthread.so.0
#1  0x00000000004a5de8 in mono_handle_native_sigsegv (signal=<value
optimized out>, ctx=<value optimized out>, info=<value optimized out>) at
mini-exceptions.c:2347
#2  <signal handler called>
#3  0x00007f751e3c3625 in raise () from /lib64/libc.so.6
#4  0x00007f751e3c4e05 in abort () from /lib64/libc.so.6
#5  0x0000000000621d49 in monoeg_log_default_handler (log_domain=<value
optimized out>, log_level=G_LOG_LEVEL_ERROR, message=<value optimized out>,
unused_data=<value optimized out>) at goutput.c:232
#6  0x0000000000621dd7 in monoeg_g_logv (log_domain=0x0,
log_level=G_LOG_LEVEL_ERROR, format=<value optimized out>, args=<value
optimized out>) at goutput.c:113
#7  0x0000000000621e97 in monoeg_assertion_message (format=<value optimized
out>) at goutput.c:133
#8  0x00000000004ff899 in mono_arch_create_monitor_enter_trampoline
(info=0x7fffd4ae3ac8, is_v4=1, aot=<value optimized out>) at
tramp-amd64.c:1115
#9  0x00000000004a81a9 in mono_create_monitor_enter_v4_trampoline () at
mini-trampolines.c:1696
#10 0x0000000000418b45 in mono_resolve_patch_target (method=0x1dc2fb8,
domain=0x1d1cf80, code=0x41126040 "UH\213\354H\201\354\200",
patch_info=0x1dd0b00, run_cctors=<value optimized out>) at mini.c:3675
#11 0x00000000004e396c in mono_arch_patch_code (method=0x1dc2fb8,
domain=0x1d1cf80, code=0x41126040 "UH\213\354H\201\354\200", ji=<value
optimized out>, dyn_code_mp=<value optimized out>, run_cctors=1) at
mini-amd64.c:6403
#12 0x000000000041815c in mono_codegen (cfg=0x1dc0fd0) at mini.c:4119
#13 0x000000000041bbfd in mini_method_compile (method=0x1dc2fb8,
opts=370239999, domain=0x1d1cf80, flags=<value optimized out>, parts=0) at
mini.c:5583
#14 0x000000000041d061 in mono_jit_compile_method_inner (method=0x1dc2fb8,
opt=370239999, ex=0x7fffd4ae4018) at mini.c:5898
#15 mono_jit_compile_method_with_opt (method=0x1dc2fb8, opt=370239999,
ex=0x7fffd4ae4018) at mini.c:6177
#16 0x000000000041daeb in mono_jit_compile_method (method=0x1dc2fb8) at
mini.c:6214
#17 0x00000000004a9b68 in common_call_trampoline (regs=0x7fffd4ae43e8,
code=0x41125f18 "H\213\320H\213\312\270
\262\331\001H\211\020\270\030\262\331\001H\211\bH\213<%\030\262\331\001H\213\064%
\262\331\001I\273M_\022A", m=0x1dc2fb8, tramp=<value optimized out>,
vt=0x0, vtable_slot=<value optimized out>, need_rgctx_tramp=0) at
mini-trampolines.c:590
#18 0x00000000004aa65d in mono_magic_trampoline (regs=<value optimized
out>, code=<value optimized out>, arg=<value optimized out>, tramp=<value
optimized out>) at mini-trampolines.c:710
#19 0x0000000041002166 in ?? ()
#20 0x00007f751f1f3188 in _r_debug ()
#21 0x00007f751f1e50f0 in ?? ()
#22 0x0000000094a8b0b0 in ?? ()
#23 0x00007f751efdbf0a in _dl_lookup_symbol_x () from
/lib64/ld-linux-x86-64.so.2
#24 0x0000000041125f18 in ?? ()
#25 0x0000000000000000 in ?? ()

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

/bin/sh: line 1:  2010 Aborted
MONO_PATH="./../../class/lib/basic:$MONO_PATH"
/usr/local/src/monogit-latest/mono/runtime/mono-wrapper
./../../class/lib/basic/basic.exe /codepage:65001 -unsafe -nostdlib
-nowarn:612,618 -d:INSIDE_CORLIB -d:LIBC -d:FEATURE_PAL,GENERICS_WORK
-d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MONO
-d:DISABLE_CAS_USE -nowarn:1699 -nostdlib -lib:./../../class/lib/build
-optimize /noconfig -d:FEATURE_PAL,GENERICS_WORK
-resource:resources/collation.core.bin
-resource:resources/collation.tailoring.bin
-resource:resources/collation.cjkCHS.bin
-resource:resources/collation.cjkCHT.bin
-resource:resources/collation.cjkJA.bin
-resource:resources/collation.cjkKO.bin
-resource:resources/collation.cjkKOlv2.bin --runtime:v4 -target:library
-out:../../class/lib/build/mscorlib.dll @corlib.dll.sources
make[8]: *** [../../class/lib/build/mscorlib.dll] Error 134
make[7]: *** [do-all] Error 2
make[6]: *** [all-recursive] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [profile-do--build--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/usr/local/src/monogit-latest/mono/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/monogit-latest/mono'
make: *** [all] Error 2






2015-01-20 21:18 GMT+02:00 Martin Thwaites <monoforum at my2cents.co.uk>:

> I'll try and take a look tonight, no promises though.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20150123/20134b70/attachment.html>


More information about the Mono-list mailing list