rdotnet/rClr

Failed to load package on mono sgen 4.0.2, R 3.2.1, Debian.

jmp75 opened this issue · 2 comments

jmp75 commented

Update on repro, still issue with Mono 4.0.2, Debian 64.

library(rClr)

fails apparently while or as soon as the appdomain is created.

Assembly '/home/per202/R/rClr/libs/ClrFacade.dll' doesn't have an entry point.
* Assertion at sgen-alloc.c:774, condition `tlab_next_addr_offset != -1' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at System.Reflection.Binder..cctor () <0x00014>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at <unknown> <0xffffffff>
  at Rclr.ClrFacade..cctor () <0x00010>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    /usr/lib/libmonosgen-2.0.so.1(+0xd053f) [0x7ff2e4b4b53f]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0) [0x7ff2f77e38d0]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7ff2f7460107]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7ff2f74614e8]
    /usr/lib/libmonosgen-2.0.so.1(+0x250db9) [0x7ff2e4ccbdb9]
    /usr/lib/libmonosgen-2.0.so.1(+0x250fc7) [0x7ff2e4ccbfc7]
    /usr/lib/libmonosgen-2.0.so.1(+0x251116) [0x7ff2e4ccc116]
    /usr/lib/libmonosgen-2.0.so.1(+0x212d04) [0x7ff2e4c8dd04]
    /usr/lib/libmonosgen-2.0.so.1(+0xbe14c) [0x7ff2e4b3914c]
    /usr/lib/libmonosgen-2.0.so.1(+0xbfdd4) [0x7ff2e4b3add4]
    /usr/lib/libmonosgen-2.0.so.1(+0xc5bc0) [0x7ff2e4b40bc0]
    /usr/lib/libmonosgen-2.0.so.1(+0xd26ed) [0x7ff2e4b4d6ed]
    [0x40728fb2]
ebug info from gdb:

[New LWP 3124]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007ff2f77e34c9 in __libc_waitpid (pid=3125, stat_loc=0x7ffdd06a094c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40  ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
  Id   Target Id         Frame 
  2    Thread 0x7ff2e26c7700 (LWP 3124) "Finalizer" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
* 1    Thread 0x7ff2f83bf780 (LWP 3104) "R" 0x00007ff2f77e34c9 in __libc_waitpid (pid=3125, stat_loc=0x7ffdd06a094c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40

Thread 2 (Thread 0x7ff2e26c7700 (LWP 3124)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1  0x00007ff2e4cbf8c8 in mono_sem_wait () from /usr/lib/libmonosgen-2.0.so.1
#2  0x00007ff2e4c46a2a in ?? () from /usr/lib/libmonosgen-2.0.so.1
#3  0x00007ff2e4c2b46c in ?? () from /usr/lib/libmonosgen-2.0.so.1
#4  0x00007ff2e4cc5076 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#5  0x00007ff2f77dc0a4 in start_thread (arg=0x7ff2e26c7700) at pthread_create.c:309
#6  0x00007ff2f751107d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ff2f83bf780 (LWP 3104)):
#0  0x00007ff2f77e34c9 in __libc_waitpid (pid=3125, stat_loc=0x7ffdd06a094c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1  0x00007ff2e4b4b5cb in ?? () from /usr/lib/libmonosgen-2.0.so.1
#2  <signal handler called>
#3  0x00007ff2f7460107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#4  0x00007ff2f74614e8 in __GI_abort () at abort.c:89
#5  0x00007ff2e4ccbdb9 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#6  0x00007ff2e4ccbfc7 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#7  0x00007ff2e4ccc116 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#8  0x00007ff2e4c8dd04 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#9  0x00007ff2e4b3914c in ?? () from /usr/lib/libmonosgen-2.0.so.1
#10 0x00007ff2e4b3add4 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#11 0x00007ff2e4b40bc0 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#12 0x00007ff2e4b4d6ed in ?? () from /usr/lib/libmonosgen-2.0.so.1
#13 0x0000000040728fb2 in ?? ()
#14 0x0000000000002b84 in ?? ()
#15 0x0000000002ab0230 in ?? ()
#16 0x00000000019f2610 in ?? ()
#17 0x00007ff2e4be7983 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#18 0x00007ff2e4bbfdd4 in ?? () from /usr/lib/libmonosgen-2.0.so.1
#19 0x402b000000000000 in ?? ()
#20 0x4036000000000000 in ?? ()
#21 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.
=================================================================

Hi, running into the same issue (i.e., Assertion at sgen-alloc.c:558, condition `tlab_next_addr_offset != -1' not met) with Debian, mono 4.2.2, R 3.2.4. Have you had any luck with figuring this one out?

xvrdm commented

Same error here, trying to install rClr on ubuntu 14.04.4, R 3.2.4, mono 4.2.3. Has anybody found a solution?

[...]
** building package indices
** installing vignettes
** testing if installed package can be loaded
* Assertion at sgen-alloc.c:558, condition `tlab_next_addr_offset != -1' not met

Native stacktrace:

    /usr/lib/libmonosgen-2.0.so.1(+0xcf0ff) [0x7f346b62d0ff]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f3470cc0340]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f3470921cc9]
[...]
Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
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 (core dumped)