-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
L2TP connection issues, that crashes VPN server #1972
Comments
For more information, this is the dmesg record when the VPN is dropping sessions. [ 765.100798] vpnserver[1346]: segfault at 2 ip 00007522e682786d sp 00007522e5774418 error 4 in libmayaqua.so[7522e67f8000+66000] likely on CPU 0 (core 0, socket 0) |
what is used as L2TP client ? |
btw, if that's reproducible in your environment, do you mind collecting core dump and analyze it using gdb "bt" ? I can describe all steps |
iPhone 12 pro (iOS 17.4.1), iPad Pro 3rd gen (with M1, iPadOS 17.4.1) And yes, if you do not mind, could you please show me how to collect the core dump and analyze it using gdb "bt"? |
ср, 17 апр. 2024 г. в 14:06, Minpyo Kim ***@***.***>:
iPhone 12 pro (iOS 17.4.1), iPad Pro 3rd gen (with M1, iPadOS 17.4.1)
I did have a hope that it is something on Linux (and thus we could add it
to CI/CD).
ok
And yes, if you do not mind, could you please show me how to collect the
core dump and analyze it using gdb "bt"?
I'll write steps.
thanks!
… —
Reply to this email directly, view it on GitHub
<#1972 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ5KUHOYDHRGSMRGYFGSK3Y5ZQVPAVCNFSM6AAAAABFMXWSSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGEYDMNJRGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
as for collecting dump, I'd say there're two parts
sysctl part (please refer to your linux distro, there may be a wrapper)
shell part (I'd setup "ulimit -c unlimited")
(clang shows more friendly back traces, but you can try gcc as well)
after that, I'd invoke vpnserver as follow (to keep ulimit from current shell)
if you are lucky, there should be core dump.
and invoke either "bt" or "bt full" or "thread apply all bt full" |
I've provided steps with ASAN. it should produce its own trace, in such case no coredump is needed. Even better. |
Hello, sorry for the delay. While running VPNserver by I'm getting the error shown below. ================================================================= AddressSanitizer can not provide additional info. Thread T10 created by T0 here: ==6290==ABORTING |
However, I was not able to get a core dump. |
Also, during troubleshooting, I've found that this crash also occurs when I'm using the OpenVPN protocol. This is the error message when I test with OpenVPN protocol. AddressSanitizer:DEADLYSIGNAL ================================================================= AddressSanitizer can not provide additional info. Thread T2 created by T0 here: ==7589==ABORTING |
thanks! |
is it built using gcc ? can you try clang (I recall it produced more helpful info). anyway, there are enough data to have a look at |
It was built with clang. Maybe I can try to build it again to see if it is giving a different message. |
@LinearAlpha , can you try the following ? |
I tried, and still the same AddressSanitizer:DEADLYSIGNAL ================================================================= AddressSanitizer can not provide additional info. Thread T27 created by T25 here: Thread T25 created by T0 here: ==2440==ABORTING |
really helpful! despite it looks the same, it is not. |
I'll look into this, thanks |
I've updated my pr #1990 you can retest |
Based on short testing, it is running without crashing, and the problem has been resolved! When will this PR be merged into the main branch? |
I guess in a day or two, just want the latest change to be reviewed. |
Fix memory access error when IPv6 prefix reading, should resolve #1972
thank you for cooperation! |
Are you using SoftEther VPN 5.x?
Version
5.02.5182
Component
VPN Server
Operating system & version
Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-26-generic x86_64)
Architecture or Hardware model
AMD64 (on the KVM hypervisor)
Steps to reproduce
vpn_server.zip
Both connections got disconnected or the SoftetherVPN protocol disconnected first, and L2TP session disconnected 1 ~ 2 minutes later.
✔️ Expected Behavior
The VPN server can concurrently maintain sessions both from the SoftetherVPN protocol and L2TP protocol.
❌ Actual Behavior
Both of the connections are getting disconnected.
Anything else?
The VPN server setting file has been attached
vpn_server.zip
When I connected the VPN server with the L2TP protocol, another session connected by the SoftetherVPN client got disconnected.
Also, the client connected by L2TP is getting disconnected 2 minutes later.
The text was updated successfully, but these errors were encountered: