Nikola Ciprich wrote:
Hello,
we are experiencing openvpn crashes from time to time, usually few times a week.
It happens with both 2.0.9 and 2.1rc13.
I've enabled coredumps, and backtrace looks always the same:

Core was generated by `/usr/sbin/openvpn --daemon --writepid 
/var/run/openvpn/gw.lbox.cz-udp.pid --con'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002ae049938c94 in lzo1x_1_15_compress () from /usr/lib64/liblzo.so.1
(gdb) bt
#0  0x00002ae049938c94 in lzo1x_1_15_compress () from /usr/lib64/liblzo.so.1
#1  0x0000000000418b26 in lzo_compress (buf=0x704190, work={capacity = 1918, offset = 0, 
len = 0, data = 0x695350 ""},
    lzowork=0x704130, frame=<value optimized out>) at lzo.c:167
#2  0x000000000040e0a5 in encrypt_sign (c=0x703840, comp_frag=<value optimized 
out>) at forward.c:420
#3  0x000000000040ebc9 in process_incoming_tun (c=0x703840) at forward.c:961
#4  0x0000000000428e75 in multi_process_incoming_tun (m=0x7fff6192ff20, 
mpp_flags=5) at multi.c:2196
#5  0x00000000004249f7 in tunnel_server_udp (top=0x7fff61930ae0) at mudp.c:178
#6  0x000000000042b0f3 in main (argc=8, argv=0x7fff61931698) at openvpn.c:213

It seems to be happening while using either TCP, or UDP, doesn't matter.
Is somebody experiencing similar problem? Could somebody help me to hunt it 
down?
I can provide coredumps and further testing if needed.
Server we're experiencing troubles is currently running 2.6.21 x86_64 kernel.
If somebody could help me, I'd greatly appreciate it.
thanks a lot in advance
with best regards
nik

It looks like the crash is happening in the LZO compression library. Which version of LZO are you using? It would be useful to know where in LZO the crash is occurring. If you build LZO with debugging info (-g flag to gcc), you will get more useful info in the backtrace.

James



Reply via email to