-
Notifications
You must be signed in to change notification settings - Fork 98
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
Breaks when running under Python 3.10 #46
Comments
Can confirm. I have also been able to track this down to a segfault in "codecmodule.c":
Next that happens in Server here is a current Arch Linux with CPython 3.10.2, tested with MikroTik ROS 7.1.3 client. ...well, since it's also working again with CPython 3.11, I guess it's nothing truly related to this package. 🤷♂️ |
Is there any workaround we can apply beyond creating a new environment for python 3.11 since this one is not GA yet? I am running Ubuntu 22.04 which comes with 3.10 by default and I don't think it's possible for me to downport to 3.9. Ideally there would be a patch to allow compatibility with 3.10 as well. Thanks in advance |
I happened to come back to this and decided to try to analyze it a little more in-depth myself. I'm not really a Python programmer, but I'm pretty experienced with other languages, so I did some breakpointing and debugging and found the exact instruction where the program was crashing. After a little trial and error (and perusing the Python developer docs a bit), I came up with this patch, which seems to correct the problem when running on Python 3.10.8 (which I'm currently using) after rebuilding the sstp-server package from source:
|
then why not opening a pull request ? |
Oh, I suppose I could. I'm kinda new to that end of the process, but I'll read through the documentation on pull requests and see if I can get one going. |
Any tips for installing python 3.11 in a way that it works with the sstpd command on Arch? Been struggling to set it up |
sstp-server segfaults immediately after accepting and setting up a connection when running under Python 3.10. The segfault seems to happen within the context of codecmodule.c.
The text was updated successfully, but these errors were encountered: