Skip to content
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

OpenVPN version 3 support #410

Closed
wiz opened this issue Oct 26, 2015 · 3 comments
Closed

OpenVPN version 3 support #410

wiz opened this issue Oct 26, 2015 · 3 comments

Comments

@wiz
Copy link

wiz commented Oct 26, 2015

It looks like there is code here to support ovpn3 - did you ever get this working? Thanks

@schwabe
Copy link
Owner

schwabe commented Oct 26, 2015

Yes the code works or at least worked when I wrote it. But since OpenVPN 3 is not really officially released by OpenVPN Inc I do not build binaries with it or support it.

@schwabe schwabe closed this as completed Oct 26, 2015
@wiz
Copy link
Author

wiz commented Oct 26, 2015

I tried your ovpn3 code, but it crashes while connecting because of an attempt to detach a thread while still running code - any suggestions? Thanks.

I/DEBUG ( 4764): pid: 19860, tid: 20477, name: OpenVPNProcessT >>> de.blinkt.openvpn <<<
I/DEBUG ( 4764): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3c
I/DEBUG ( 4764): Abort message: 'sart/runtime/runtime.cc:1129] Thread[16,tid=20477,Native,Thread_=0xf4b8f800,peer=0x13110fa0,"OpenVPNProcessThread"] attempting to detach while still running code'
I/DEBUG ( 4764): backtrace:
I/DEBUG ( 4764): #00 pc 0020dfc4 /system/lib/libart.so (art::Monitor::VisitLocks(art::StackVisitor_, void ()(art::mirror::Object, void_), void_, bool)+123)
I/DEBUG ( 4764): #1 pc 00250e87 /system/lib/libart.so (art::StackDumpVisitor::VisitFrame()+374)
I/DEBUG ( 4764): #2 pc 0024bd99 /system/lib/libart.so (art::StackVisitor::WalkStack(bool)+276)
I/DEBUG ( 4764): #3 pc 00251d77 /system/lib/libart.so (art::Thread::DumpJavaStack(std::__1::basic_ostream<char, std::__1::char_traits >&) const+182)
I/DEBUG ( 4764): #4 pc 0025344f /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+166)
I/DEBUG ( 4764): #5 pc 0025cb3d /system/lib/libart.so (art::ThreadList::DumpLocked(std::__1::basic_ostream<char, std::__1::char_traits >&)+120)
I/DEBUG ( 4764): #6 pc 0024222d /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&)+272)
I/DEBUG ( 4764): #7 pc 00242477 /system/lib/libart.so (art::Runtime::Abort()+82)
I/DEBUG ( 4764): #8 pc 000ad7f1 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
I/DEBUG ( 4764): #9 pc 00241505 /system/lib/libart.so (art::Runtime::DetachCurrentThread()+148)
I/DEBUG ( 4764): #10 pc 001b460d /system/lib/libart.so (art::JII::DetachCurrentThread(JavaVM)+48)
I/DEBUG ( 4764): #11 pc 000c7577 /system/lib/libart.so (art::CheckJII::DetachCurrentThread(JavaVM)+90)
I/DEBUG ( 4764): #12 pc 00022475 /data/app/de.blinkt.openvpn-2/lib/arm/libovpncli.so
I/DEBUG ( 4764): #13 pc 0001d75d /data/app/de.blinkt.openvpn-2/lib/arm/libovpncli.so
I/DEBUG ( 4764): #14 pc 00051519 /data/app/de.blinkt.openvpn-2/lib/arm/libovpncli.so
I/DEBUG ( 4764): #15 pc 00027749 /data/app/de.blinkt.openvpn-2/lib/arm/libovpncli.so (openvpn::ClientAPI::OpenVPNClient::connect()+672)
I/DEBUG ( 4764): #16 pc 000216a5 /data/app/de.blinkt.openvpn-2/lib/arm/libovpncli.so (Java_net_openvpn_ovpn3_ovpncliJNI_ClientAPI_1OpenVPNClient_1connect+42)
I/DEBUG ( 4764): #17 pc 000f854d /data/dalvik-cache/arm/data@[email protected]@[email protected]

@schwabe
Copy link
Owner

schwabe commented Oct 26, 2015

It is entirely possible that the code does not work at all or with the new runtime (art). Keep in mind that I have written the code over 2 years ago and the openvpn 3 version was also over 2 years old. Even then the code was more a proof of concept then everything else. For all intents and purposes the code is basically abandoned since then.

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

No branches or pull requests

2 participants