On 17/01/17 13:47, 袁建鹏 wrote: > Hi Spon > > > > It’s seems that you need add some additional debug code to OpenVPN > source code. > > to locate which function hang the openvpn. >
As root, run: # gdb /full/path/to/openvpn --args /full/path/to/openvpn $OPENVPNARGS When OpenVPN hangs, hit CTRL-C and then on the gdb command prompt: (gdb) bt This will list out a backtrace of where OpenVPN was when you hit CTRL-C. No need to complicate things with additional debug code, especially when it isn't easy to know where to add this debug code in the beginning. -- kind regards, David Sommerseth > With Best Regards > > ------------------------------- > > YUAN Jianpeng > > TP-Link SOHO Router II, R&D > > Tel: +86 755 86205899-3213 > > Mobile: +86 18566230793 > > Email: yuanjianp...@tp-link.com.cn <mailto:yuanjianp...@tp-link.com.cn> > > > > > > *发件人:*Spon Spon [mailto:spon...@yahoo.com] > *发送时间:*2017年1月17日20:31 > *收件人:*袁建鹏; openvpn-users@lists.sourceforge.net > *主题:*Re: 答复: [Openvpn-users] Openvpn hangs on Hardware acceleration > > > > Hi, > > > > What debug information should I compile with ? ./Configure -DDEBUG ? Or > put messages from place to place? > > I ran openvpn with verb=7 option but once it hangs nothing came from > openvrt in log or screen > > > > Thanks > > > > ------------------------------------------------------------------------ > > *From:*袁建鹏<yuanjianp...@tp-link.com.cn > <mailto:yuanjianp...@tp-link.com.cn>> > *To:* Spon Spon <spon...@yahoo.com <mailto:spon...@yahoo.com>>; > "openvpn-users@lists.sourceforge.net > <mailto:openvpn-users@lists.sourceforge.net>" > <openvpn-users@lists.sourceforge.net > <mailto:openvpn-users@lists.sourceforge.net>> > *Sent:* Tuesday, January 17, 2017 1:17 PM > *Subject:* 答复: [Openvpn-users] Openvpn hangs on Hardware acceleration > > > > Hi Spon > > > > It’s better that add some debug information to OpenVPN and recompile it, > to see what happens. > > > > With Best Regards > > YUAN Jianpeng > > > > *发件人**:*Spon Spon [mailto:spon...@yahoo.com] > *发送时间**:*2017年1月17日14:20 > *收件人**:*openvpn-users@lists.sourceforge.net > <mailto:openvpn-users@lists.sourceforge.net> > *主题**:*[Openvpn-users] Openvpn hangs on Hardware acceleration > > > > > > Hi, > > > > I installed OpenSSL 1.0.2 having CRYPTODEV and AF_ALG compiled on an ARM > processor using kernel 3.10 that have a hardware crypto. I ran openssl > speed test using both cryptodev and af_alg successfully. in > /proc/interrupts I can see values increment for crypto driver. (However > the speed using hardware crypto is less than half comparing to not using > it but this is another story). Now I tried to use openvpn 2.3.14. I > compiled it pointing to openssl 1.0.2 and tried to check speed using > command : > time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 > --cipher aes-256-cbc > The command above works fine (it does not use hardware crypto). But as > soon as I add engine cryptrodev or engine af_alg the command hang , in > proc/interrupts I can see increment only once, and from time to time in > dmesg I received errors : waiting to came back form encrypt function > timed out. > Even kill -9 does not have any result. The only way to kill the process > is to restart the computer. > The driver implemented only asynchronous encrypt and decrypt, and maybe > openvpn use only synchronous call, and this is maybe why the command > hang. But as I understand openvpn does encryption and decryption through > openssl. And openssl works just fine, > I could not use openssl, 1.1 on 3.10 kernel. Openssl compiles fine, but > openvpn not. So maximum openssl that can be used was 1.0.2 > I checked using ldd and openvpn use correct openssl. > > So what could be the problem here? Are there any ways to force openvpn > using asynchronous calls? > > > > Thank You > >
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users