[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-devel] Core dump ("unaligned access") on OpenBSD3.5 (DS10 - Alpha arch)


  • Subject: [Openvpn-devel] Core dump ("unaligned access") on OpenBSD3.5 (DS10 - Alpha arch)
  • From: Christian Røsnes <csr@xxxxxxxxx>
  • Date: Thu, 16 Dec 2004 14:58:49 +0100

Hi

I'm trying to setup an OpenVPN server on a Comapq DS10 box.
The DS10 is Alph architecture, and running OpenBSD 3.5 for Alpha.
I'm using OpenVPN 2.0 rc4, both on client and server.

*******************
Problem Description
*******************

I've compiled OpenVPN 2.0 rc4 (server) on the DS10
with the following versions of gcc and OpenSSL:

gcc 2.95.3
OpenSSL 0.9.7c

The client is running Windows XP and OpenVPN 2.0 rc4.

I can connect each endpoint, but when I try to ping either endpoint of the 
vpn tunnel, the OpenVPN server dumps core and dies:

pid 17868 (openvpn): unaligned access: va=0x12012f82f pc=0x120023900 
ra=0x1200238f4 op=ldl
Bus error (core dumped)

Using gdb, I find:

# gdb /usr/local/sbin/openvpn openvpn.core
GNU gdb 4.16.1
...
This GDB was configured as "alpha-unknown-openbsd3.5"...
Core was generated by `openvpn'.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Program terminated with signal 10, Bus error.
#0  0x120023904 in mroute_extract_addr_from_packet 
(src=0x1ffffb220, dest=0x1ffffb208, buf=0x1, tunnel_type=-20292) at 
mroute.c:113
113                           memcpy (src->addr, &ip->saddr, 4);
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I think my system choke on the 'ip->saddr' address in the memcpy statement.

Question: 
---------
Any idea if I can change anything in the openvpn source to fix this ? 

Thanks 
Christian




**********************
SERVER AND CLIENT LOGS
**********************


Server startup:
---------------
Thu Dec 16 12:23:57 2004 OpenVPN 2.0_rc4 alpha-unknown-openbsd3.5 [SSL] built 
on Dec 16 2004
Thu Dec 16 12:23:57 2004 IMPORTANT: OpenVPN's default port number is now 1194, 
based on an official port number assignment by IANA.  
OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Thu Dec 16 12:23:57 2004 gw 192.168.1.3
Thu Dec 16 12:23:57 2004 /sbin/ifconfig tun1 destroy
Thu Dec 16 12:23:57 2004 /sbin/ifconfig tun1 create
Thu Dec 16 12:23:57 2004 NOTE: Tried to delete pre-existing tun/tap instance 
-- 
                         No Problem if failure
Thu Dec 16 12:23:57 2004 /sbin/ifconfig tun1 10.1.0.1 10.1.0.2 mtu 1500 
netmask 255.255.255.255 up
Thu Dec 16 12:23:57 2004 TUN/TAP device /dev/tun1 opened
                         add net 10.1.0.0: gateway 10.1.0.2
Thu Dec 16 12:23:57 2004 Listening for incoming TCP connection on [undef]:1194
Thu Dec 16 12:23:57 2004 TCPv4_SERVER link local (bound): [undef]:1194
Thu Dec 16 12:23:57 2004 TCPv4_SERVER link remote: [undef]
Thu Dec 16 12:23:57 2004 Initialization Sequence Completed



Client Startup:
---------------
Thu Dec 16 10:45:18 2004 OpenVPN 2.0_rc4 Win32-MinGW [SSL] [LZO] built on Dec 
14 2004
Thu Dec 16 10:45:18 2004 IMPORTANT: OpenVPN's default port number is now 1194, 
based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and 
earlier used 5000 as the default port.
Thu Dec 16 10:45:18 2004 WARNING: No server certificate verification method 
has been enabled.  
See http://openvpn.sourceforge.net/howto.html#mitm for more info.
Enter Private Key Password: 
Thu Dec 16 10:45:22 2004 Attempting to establish TCP connection with 
<vpnserver>:1194
Thu Dec 16 10:45:22 2004 TCP connection established with <vpnserver>:1194
Thu Dec 16 10:45:22 2004 TCPv4_CLIENT link local: [undef]
Thu Dec 16 10:45:22 2004 TCPv4_CLIENT link remote: <vpnserver>:1194
Thu Dec 16 10:45:25 2004 [<vpnserver>] Peer Connection Initiated with 
<vpnserver>:1194
Thu Dec 16 10:45:26 2004 TAP-WIN32 device [Local Area Connection 2] 
opened: \\.\Global\{F9DD4E44-5C85-4662-A35E-A45E7E515A41}.tap
Thu Dec 16 10:45:26 2004 Notified TAP-Win32 driver to set a DHCP IP/netmask of 
10.1.0.6/255.255.255.
252 on interface {F9DD4E44-5C85-4662-A35E-A45E7E515A41} [DHCP-serv: 10.1.0.5, 
lease-time: 31536000]
Thu Dec 16 10:45:26 2004 Successful ARP Flush on interface [65540] 
{F9DD4E44-5C85-4662-A35E-A45E7E51
5A41}
Thu Dec 16 10:45:31 2004 Initialization Sequence Completed


**************
CONFIGURATIONS
**************

#-------------
# server.cnf
#-------------
#
# Tunnel mode
dev tun1
# Run as a single instance server
mode server
proto tcp-server
# Server endpoint appears first, followed
# by the gateway interface ip
ifconfig 10.1.0.1 10.1.0.2
# Range of IP addresses reserved for clients
ifconfig-pool 10.1.0.4 10.1.0.254
# route setup on the server
route 10.1.0.0 255.255.255.0
# route command pushed to the client
push "route 10.1.0.1 255.255.255.255"
# Specify tls-server for certificate exchange
tls-server
# Diffie-Hellman Parameters (tls-server only)
dh /data/CA-DB/dh1024.pem
# Root certificate
ca /data/CA-DB/cacert.pem
# Server certificate
cert /data/CA-DB/vpncert.pem
# Server private key
key /data/CA-DB/vpnkey.pem
# Check for revoked client certificates.
crl-verify /data/CA-DB/crl/crl.pem

#-------------
# client.cfg
#-------------
#
# Set tunnel mode
dev tun
# Hostname for the VPN server
remote <vpnserver>
proto tcp-client
# This end takes the client role for
# certificate exchange
tls-client
# Certificate Authority file
ca cacert.pem
# Our certificate/public key
cert client2.pem
# Our private key
key client2key.pem
# Get the rest of our configuration
# from the server.
pull

____________________________________________
Openvpn-devel mailing list
Openvpn-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-devel