ReClassNET/ReClass.NET

Reclass does not attach to process on linux (Ubuntu 22.04/ Debian 11 / Arch linux) (Freezes)

AIVDNL opened this issue · 11 comments

Reclass runs correctly after building for linux x64, and runs correctly using mono /bin/Release/x64/ReClass.NET.exe

However, attaching to a process causes Reclass to freeze. I've tried rebuilding the solution and different VMs, but the result persists. It will not attach and immediately freeze.

FWIW /proc/sys/kernel/yama/ptrace_scope is set to 0. (I've tried different values)

Also, after building on linux 20.04 using docker gives me Failed to load native functions! Couldn't find at location x64/x86 NativeCore.so while the file is clearly there. maybe something to do with mono?

Anyway I cannot get reclass to function correctly either because it does not run *20.04 or because it won't attach to a process (immediately freezes) * 22.04

NativeCore.so exception might be related to #241
i don't have any issue at all with the x64 version.
Also mono compiled with multilib didn't make any difference to it either.

You use Ubuntu 22.04? I've tried different tools that attach to processes (GameConqueror) and they attached just fine. not sure where the issue lies. If you have any idea if and where there are log files, I'd be happy to post them.

I also tried Debian 11 now, same error as Ubuntu 20.04. After installing with docker I cannot run ReClass. both x32 and x64 versions give #241
-- I opened a seperate issue for the NativeCore.so error, I think it's unrelated to the freezing on Ubuntu 22.04

Following #47 to build on Debian 11 works, but this will also freeze when trying to attach to a process. getting really confused here.

Running with gdb attached gives the following error when attaching to a process (Both on Ubuntu 22.04 and Debian 11):

thread 4 "mono" received signal SIG35, Real-time event 35.
[Switching to Thread 0x7fffec9e7640 (LWP 14724)]
__futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7fffec9e6be0, op=137, expected=0, futex_word=0x5555559fd888) at ./nptl/futex-internal.c:57
57	./nptl/futex-internal.c: No such file or directory.

If I ignore SIG35 i get the following error (please note that I have no idea what I'm doing -- i'm just trying to get reclass to work on linux.. :/)

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6fff700 (LWP 7910)]
[New Thread 0x7ffff765b700 (LWP 7911)]
[New Thread 0x7fffecae7700 (LWP 7915)]
[New Thread 0x7fffec8e6700 (LWP 7916)]
[New Thread 0x7fffec6e5700 (LWP 7917)]

Thread 1 "mono" received signal SIG36, Real-time event 36.
0x00007ffff7a9712a in __GI___sigsuspend (set=0x5555559f2ae0)
    at ../sysdeps/unix/sysv/linux/sigsuspend.c:26
26	../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
(gdb) 

Is there really no one else who has ran into this error? Pretty sure these are the two most popular linux builds out there.

Also tried on Arch Linux - also freezes.

huh2
the issue above is identical on Debian and Ubuntu.

Same problem here, but on Manjaro.

Build the current version of this repo.

qb-0 commented

Same here. PopOs

Same problem on Arch Linux.

Anyone got the solution for this? I also having this issue on Ubuntu 22.04

Same on Fedora 37