Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AIVDNL opened this issue Nov 4, 2022 · 11 comments · Fixed by #260
Closed

Comments

@AIVDNL
Copy link

AIVDNL commented Nov 4, 2022

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)

@AIVDNL
Copy link
Author

AIVDNL commented Nov 4, 2022

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

@ihateadmins
Copy link

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.

@AIVDNL
Copy link
Author

AIVDNL commented Nov 5, 2022

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

@AIVDNL
Copy link
Author

AIVDNL commented Nov 5, 2022

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

@AIVDNL
Copy link
Author

AIVDNL commented Nov 6, 2022

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.

@AIVDNL AIVDNL changed the title Reclass does not attach to process on linux (Ubuntu 22.04) (Freezes) Reclass does not attach to process on linux (Ubuntu 22.04/ Debian 11 / Arch linux) (Freezes) Nov 6, 2022
@AIVDNL
Copy link
Author

AIVDNL commented Nov 6, 2022

Also tried on Arch Linux - also freezes.

huh2
the issue above is identical on Debian and Ubuntu.

@nekiter
Copy link

nekiter commented Nov 23, 2022

Same problem here, but on Manjaro.

Build the current version of this repo.

@qb-0
Copy link

qb-0 commented Jan 31, 2023

Same here. PopOs

@cassanof
Copy link

cassanof commented Mar 9, 2023

Same problem on Arch Linux.

@EricYoong
Copy link

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

@damajor
Copy link

damajor commented May 4, 2023

Same on Fedora 37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants