1 | When 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. |
---|
2 | This is 100% reproducible. These crashes did not happen with 2.3.3. Full |
---|
3 | description has been moved to an attachment due to Trac parsing errors. |
---|
4 | |
---|
5 | The 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 |
---|
9 | Thu 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 |
---|
10 | Thu Jan 1 18:22:51 2015 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08 |
---|
11 | Thu Jan 1 18:22:51 2015 WARNING: you are using user/group/chroot/setcon without persist-tun -- this may cause restarts to fail |
---|
12 | Thu Jan 1 18:22:51 2015 WARNING: you are using user/group/chroot/setcon without persist-key -- this may cause restarts to fail |
---|
13 | Thu Jan 1 18:22:54 2015 TUN/TAP device tun0 opened |
---|
14 | Thu Jan 1 18:22:54 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 |
---|
15 | Thu Jan 1 18:22:54 2015 /bin/ip link set dev tun0 up mtu 1500 |
---|
16 | Thu Jan 1 18:22:54 2015 /bin/ip addr add dev tun0 local 10.12.0.1 peer 10.12.0.2 |
---|
17 | Thu Jan 1 18:22:54 2015 GID set to openvpn |
---|
18 | Thu Jan 1 18:22:54 2015 UID set to openvpn |
---|
19 | Thu Jan 1 18:22:54 2015 Could not determine IPv4/IPv6 protocol. Using AF_INET |
---|
20 | Thu Jan 1 18:22:54 2015 UDP link local (bound): [AF_INET][undef]:1194 |
---|
21 | Thu Jan 1 18:22:54 2015 UDP link remote: [AF_UNSPEC] |
---|
22 | Thu Jan 1 18:22:54 2015 ifconfig_pool_read(), in='adams,10.12.0.4', TODO: IPv6 |
---|
23 | Thu Jan 1 18:22:54 2015 succeeded -> ifconfig_pool_set() |
---|
24 | Thu Jan 1 18:22:54 2015 Initialization Sequence Completed |
---|
25 | Bus error |
---|
26 | ========== |
---|
27 | |
---|
28 | There is no core file and nothing in dmesg about this. |
---|
29 | |
---|
30 | I 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 |
---|
34 | GNU gdb (Gentoo 7.7.1 p1) 7.7.1 |
---|
35 | Copyright (C) 2014 Free Software Foundation, Inc. |
---|
36 | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
---|
37 | This is free software: you are free to change and redistribute it. |
---|
38 | There is NO WARRANTY, to the extent permitted by law. Type "show copying" |
---|
39 | and "show warranty" for details. |
---|
40 | This GDB was configured as "sparc-unknown-linux-gnu". |
---|
41 | Type "show configuration" for configuration details. |
---|
42 | For bug reporting instructions, please see: |
---|
43 | <http://bugs.gentoo.org/>. |
---|
44 | Find the GDB manual and other documentation resources online at: |
---|
45 | <http://www.gnu.org/software/gdb/documentation/>. |
---|
46 | For help, type "help". |
---|
47 | Type "apropos word" to search for commands related to "word"... |
---|
48 | Reading symbols from /usr/sbin/openvpn...(no debugging symbols found)...done. |
---|
49 | (gdb) run |
---|
50 | Starting 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 |
---|
51 | Thu 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 |
---|
52 | Thu Jan 1 18:39:19 2015 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08 |
---|
53 | Thu Jan 1 18:39:19 2015 WARNING: you are using user/group/chroot/setcon without persist-tun -- this may cause restarts to fail |
---|
54 | Thu Jan 1 18:39:19 2015 WARNING: you are using user/group/chroot/setcon without persist-key -- this may cause restarts to fail |
---|
55 | Thu Jan 1 18:39:22 2015 TUN/TAP device tun0 opened |
---|
56 | Thu Jan 1 18:39:22 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 |
---|
57 | Thu Jan 1 18:39:22 2015 /bin/ip link set dev tun0 up mtu 1500 |
---|
58 | Thu Jan 1 18:39:22 2015 /bin/ip addr add dev tun0 local 10.12.0.1 peer 10.12.0.2 |
---|
59 | Thu Jan 1 18:39:22 2015 GID set to openvpn |
---|
60 | Thu Jan 1 18:39:22 2015 UID set to openvpn |
---|
61 | Thu Jan 1 18:39:22 2015 Could not determine IPv4/IPv6 protocol. Using AF_INET |
---|
62 | Thu Jan 1 18:39:22 2015 UDP link local (bound): [AF_INET][undef]:1194 |
---|
63 | Thu Jan 1 18:39:22 2015 UDP link remote: [AF_UNSPEC] |
---|
64 | Thu Jan 1 18:39:22 2015 ifconfig_pool_read(), in='adams,10.12.0.4', TODO: IPv6 |
---|
65 | Thu Jan 1 18:39:22 2015 succeeded -> ifconfig_pool_set() |
---|
66 | Thu Jan 1 18:39:22 2015 Initialization Sequence Completed |
---|
67 | |
---|
68 | Program received signal SIGBUS, Bus error. |
---|
69 | 0xf7fb8470 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 ?? () |
---|
73 | Backtrace stopped: previous frame identical to this frame (corrupt stack?) |
---|
74 | ========== |
---|
75 | |
---|
76 | The 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 | |
---|
78 | The 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 |
---|