Ticket #497: ticket-497-description.txt

File ticket-497-description.txt, 8.4 KB (added by Samuli Seppänen, 9 years ago)

Full description of ticket 497

Line 
1When running on Linux/SPARC, OpenVPN version 2.3.6 and the most recent git master from github will crash with Bus error shortly after startup.
2This is 100% reproducible. These crashes did not happen with 2.3.3. Full
3description has been moved to an attachment due to Trac parsing errors.
4
5The console output looks like this:
6
7==========
8# /usr/sbin/openvpn --config /etc/openvpn/openvpn.conf --writepid /var/run/openvpn.pid --setenv SVCNAME openvpn --cd /etc/openvpn --user openvpn --group openvpn --setenv PEER_DNS yes
9Thu Jan  1 18:22:51 2015 OpenVPN 2.3_git [git:branch-master/c3e1809f540db16c] sparc-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH] [IPv6] built on Dec 31 2014
10Thu Jan  1 18:22:51 2015 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
11Thu Jan  1 18:22:51 2015 WARNING: you are using user/group/chroot/setcon without persist-tun -- this may cause restarts to fail
12Thu Jan  1 18:22:51 2015 WARNING: you are using user/group/chroot/setcon without persist-key -- this may cause restarts to fail
13Thu Jan  1 18:22:54 2015 TUN/TAP device tun0 opened
14Thu Jan  1 18:22:54 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
15Thu Jan  1 18:22:54 2015 /bin/ip link set dev tun0 up mtu 1500
16Thu Jan  1 18:22:54 2015 /bin/ip addr add dev tun0 local 10.12.0.1 peer 10.12.0.2
17Thu Jan  1 18:22:54 2015 GID set to openvpn
18Thu Jan  1 18:22:54 2015 UID set to openvpn
19Thu Jan  1 18:22:54 2015 Could not determine IPv4/IPv6 protocol. Using AF_INET
20Thu Jan  1 18:22:54 2015 UDP link local (bound): [AF_INET][undef]:1194
21Thu Jan  1 18:22:54 2015 UDP link remote: [AF_UNSPEC]
22Thu Jan  1 18:22:54 2015 ifconfig_pool_read(), in='adams,10.12.0.4', TODO: IPv6
23Thu Jan  1 18:22:54 2015 succeeded -> ifconfig_pool_set()
24Thu Jan  1 18:22:54 2015 Initialization Sequence Completed
25Bus error
26==========
27
28There is no core file and nothing in dmesg about this.
29
30I have tried running OpenVPN in gdb. The result looked like this:
31
32==========
33# gdb --args /usr/sbin/openvpn --config /etc/openvpn/openvpn.conf --writepid /var/run/openvpn.pid --setenv SVCNAME openvpn --cd /etc/openvpn --user openvpn --group openvpn --setenv PEER_DNS yes
34GNU gdb (Gentoo 7.7.1 p1) 7.7.1
35Copyright (C) 2014 Free Software Foundation, Inc.
36License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
37This is free software: you are free to change and redistribute it.
38There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
39and "show warranty" for details.
40This GDB was configured as "sparc-unknown-linux-gnu".
41Type "show configuration" for configuration details.
42For bug reporting instructions, please see:
43<http://bugs.gentoo.org/>.
44Find the GDB manual and other documentation resources online at:
45<http://www.gnu.org/software/gdb/documentation/>.
46For help, type "help".
47Type "apropos word" to search for commands related to "word"...
48Reading symbols from /usr/sbin/openvpn...(no debugging symbols found)...done.
49(gdb) run
50Starting program: /usr/sbin/openvpn --config /etc/openvpn/openvpn.conf --writepid /var/run/openvpn.pid --setenv SVCNAME openvpn --cd /etc/openvpn --user openvpn --group openvpn --setenv PEER_DNS yes
51Thu Jan  1 18:39:19 2015 OpenVPN 2.3_git [git:branch-master/c3e1809f540db16c] sparc-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH] [IPv6] built on Dec 31 2014
52Thu Jan  1 18:39:19 2015 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
53Thu Jan  1 18:39:19 2015 WARNING: you are using user/group/chroot/setcon without persist-tun -- this may cause restarts to fail                                                                                                             
54Thu Jan  1 18:39:19 2015 WARNING: you are using user/group/chroot/setcon without persist-key -- this may cause restarts to fail                                                                                                             
55Thu Jan  1 18:39:22 2015 TUN/TAP device tun0 opened                                                                                                                                                                                         
56Thu Jan  1 18:39:22 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0                                                                                                                                                             
57Thu Jan  1 18:39:22 2015 /bin/ip link set dev tun0 up mtu 1500                                                                                                                                                                             
58Thu Jan  1 18:39:22 2015 /bin/ip addr add dev tun0 local 10.12.0.1 peer 10.12.0.2                                                                                                                                                           
59Thu Jan  1 18:39:22 2015 GID set to openvpn                                                                                                                                                                                                 
60Thu Jan  1 18:39:22 2015 UID set to openvpn                                                                                                                                                                                                 
61Thu Jan  1 18:39:22 2015 Could not determine IPv4/IPv6 protocol. Using AF_INET                                                                                                                                                             
62Thu Jan  1 18:39:22 2015 UDP link local (bound): [AF_INET][undef]:1194                                                                                                                                                                     
63Thu Jan  1 18:39:22 2015 UDP link remote: [AF_UNSPEC]                                                                                                                                                                                       
64Thu Jan  1 18:39:22 2015 ifconfig_pool_read(), in='adams,10.12.0.4', TODO: IPv6                                                                                                                                                             
65Thu Jan  1 18:39:22 2015 succeeded -> ifconfig_pool_set()                                                                                                                                                                                   
66Thu Jan  1 18:39:22 2015 Initialization Sequence Completed                                                                                                                                                                                 
67                                                                                                                                                                                                                                           
68Program received signal SIGBUS, Bus error.                                                                                                                                                                                                 
690xf7fb8470 in _lzo_config_check () from /usr/lib/liblzo2.so.2                                                                                                                                                                               
70(gdb) bt                                                                                                                                                                                                                                   
71#0  0xf7fb8470 in _lzo_config_check () from /usr/lib/liblzo2.so.2                                                                                                                                                                           
72#1  0x0002dca8 in ?? ()                                                                                                                                                                                                                     
73Backtrace stopped: previous frame identical to this frame (corrupt stack?)
74==========
75
76The backtrace suggests that bug might be in liblzo, however, the liblzo installation on this machine hasn't been updated or changed in about half a year. (Also, just because it's the last entry on the stack doesn't necessarily mean that that's where the bug is...)
77
78The linux distribution in use is Gentoo. There is a downstream bug report about the same bug here: https://bugs.gentoo.org/show_bug.cgi?id=532088