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

[Openvpn-users] Assertion failed at multi.c:266


  • Subject: [Openvpn-users] Assertion failed at multi.c:266
  • From: "list-subs" <list-subs@xxxxxxxxxx>
  • Date: Wed, 13 Oct 2004 10:42:24 -0400

Hello

I am having some problems with OpenVPN failig on an ASSERT() call.  This is running as my server in FreeBSD 4.10 using openvpn2.0_beta11.  As far as I can tell, it is failing on this portion of code:

  /*
   * Get local ifconfig address
   */
  CLEAR (m->local);
  ASSERT (t->c1.tuntap);
  mroute_extract_in_addr_t (&m->local, t->c1.tuntap->local);

This is in the multi_init() function and t is a context structure.  t->c1 is a context1 structure. I have no idea why its not getting allocated.

I have attached a sample run/crash, as well as my config file. I commented out most of the unnecessary config lines to trouble shoot, but nothing prevents this from happening.  Any help would be appreciated!

# openvpn --config local.conf --up-delay
Wed Oct 13 10:27:30 2004 us=359643 Current Parameter Settings:
Wed Oct 13 10:27:30 2004 us=363274   config = 'local.conf'
Wed Oct 13 10:27:30 2004 us=364951   mode = 1
Wed Oct 13 10:27:30 2004 us=366055   show_ciphers = DISABLED
Wed Oct 13 10:27:30 2004 us=367057   show_digests = DISABLED
Wed Oct 13 10:27:30 2004 us=368066   genkey = DISABLED
Wed Oct 13 10:27:30 2004 us=369009   askpass = DISABLED
Wed Oct 13 10:27:30 2004 us=371573   show_tls_ciphers = DISABLED
Wed Oct 13 10:27:30 2004 us=372496   proto = 0
Wed Oct 13 10:27:30 2004 us=373589   local = '10.70.1.10'
Wed Oct 13 10:27:30 2004 us=374595   remote_list = NULL
Wed Oct 13 10:27:30 2004 us=375512   remote_random = DISABLED
Wed Oct 13 10:27:30 2004 us=378042   local_port = 5000
Wed Oct 13 10:27:30 2004 us=378962   remote_port = 5000
Wed Oct 13 10:27:30 2004 us=379966   remote_float = DISABLED
Wed Oct 13 10:27:30 2004 us=380730   ipchange = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=381653   bind_local = ENABLED
Wed Oct 13 10:27:30 2004 us=382651   dev = 'tap'
Wed Oct 13 10:27:30 2004 us=385371   dev_type = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=386374   dev_node = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=387381   tun_ipv6 = DISABLED
Wed Oct 13 10:27:30 2004 us=388212   ifconfig_local = '10.80.0.1'
Wed Oct 13 10:27:30 2004 us=389217   ifconfig_remote_netmask = '255.255.255.0'
Wed Oct 13 10:27:30 2004 us=390309   ifconfig_noexec = DISABLED
Wed Oct 13 10:27:30 2004 us=392631   ifconfig_nowarn = DISABLED
Wed Oct 13 10:27:30 2004 us=393644   shaper = 0
Wed Oct 13 10:27:30 2004 us=394555   tun_mtu = 1500
Wed Oct 13 10:27:30 2004 us=395383   tun_mtu_defined = ENABLED
Wed Oct 13 10:27:30 2004 us=396388   link_mtu = 1500
Wed Oct 13 10:27:30 2004 us=398526   link_mtu_defined = DISABLED
Wed Oct 13 10:27:30 2004 us=399649   tun_mtu_extra = 32
Wed Oct 13 10:27:30 2004 us=400565   tun_mtu_extra_defined = ENABLED
Wed Oct 13 10:27:30 2004 us=401580   fragment = 0
Wed Oct 13 10:27:30 2004 us=402579   mtu_discover_type = -1
Wed Oct 13 10:27:30 2004 us=404720   mtu_test = 0
Wed Oct 13 10:27:30 2004 us=405723   mlock = DISABLED
Wed Oct 13 10:27:30 2004 us=406638   keepalive_ping = 0
Wed Oct 13 10:27:30 2004 us=407408   keepalive_timeout = 0
Wed Oct 13 10:27:30 2004 us=408409   inactivity_timeout = 0
Wed Oct 13 10:27:30 2004 us=411095   ping_send_timeout = 0
Wed Oct 13 10:27:30 2004 us=412010   ping_rec_timeout = 0
Wed Oct 13 10:27:30 2004 us=413014   ping_rec_timeout_action = 0
Wed Oct 13 10:27:30 2004 us=413931   ping_timer_remote = DISABLED
Wed Oct 13 10:27:30 2004 us=414763   explicit_exit_notification = 0
Wed Oct 13 10:27:30 2004 us=417444   persist_tun = DISABLED
Wed Oct 13 10:27:30 2004 us=418358   persist_local_ip = DISABLED
Wed Oct 13 10:27:30 2004 us=419186   persist_remote_ip = DISABLED
Wed Oct 13 10:27:30 2004 us=420186   persist_key = DISABLED
Wed Oct 13 10:27:30 2004 us=421112   mssfix = 1450
Wed Oct 13 10:27:30 2004 us=422108   passtos = DISABLED
Wed Oct 13 10:27:30 2004 us=422939   resolve_retry_seconds = 0
Wed Oct 13 10:27:30 2004 us=423879   connect_retry_seconds = 5
Wed Oct 13 10:27:30 2004 us=424710   username = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=425711   groupname = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=426540   chroot_dir = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=430414   cd_dir = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=431357   writepid = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=432186   up_script = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=433188   down_script = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=434194   up_restart = DISABLED
Wed Oct 13 10:27:30 2004 us=436575   up_delay = ENABLED
Wed Oct 13 10:27:30 2004 us=437404   daemon = DISABLED
Wed Oct 13 10:27:30 2004 us=438405   inetd = 0
Wed Oct 13 10:27:30 2004 us=439264   log = DISABLED
Wed Oct 13 10:27:30 2004 us=441368   nice = 0
Wed Oct 13 10:27:30 2004 us=442373   verbosity = 4
Wed Oct 13 10:27:30 2004 us=443289   mute = 0
Wed Oct 13 10:27:30 2004 us=444207   gremlin = DISABLED
Wed Oct 13 10:27:30 2004 us=445120   status_file = 'openvpn-status.log'
Wed Oct 13 10:27:30 2004 us=447538   status_file_update_freq = 60
Wed Oct 13 10:27:30 2004 us=448630   occ = ENABLED
Wed Oct 13 10:27:30 2004 us=449544   rcvbuf = 65536
Wed Oct 13 10:27:30 2004 us=450551   sndbuf = 65536
Wed Oct 13 10:27:30 2004 us=452513   http_proxy_server = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=453427   http_proxy_port = 0
Wed Oct 13 10:27:30 2004 us=454372   http_proxy_auth_method = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=455372   http_proxy_auth_file = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=456289   http_proxy_retry = DISABLED
Wed Oct 13 10:27:30 2004 us=458579   socks_proxy_server = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=459583   socks_proxy_port = 0
Wed Oct 13 10:27:30 2004 us=460500   socks_proxy_retry = DISABLED
Wed Oct 13 10:27:30 2004 us=460871   comp_lzo = DISABLED
Wed Oct 13 10:27:30 2004 us=461056   comp_lzo_adaptive = ENABLED
Wed Oct 13 10:27:30 2004 us=461240   route_script = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=461424   route_default_gateway = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=461607   route_noexec = DISABLED
Wed Oct 13 10:27:30 2004 us=461790   route_delay = 0
Wed Oct 13 10:27:30 2004 us=461973   route_delay_window = 30
Wed Oct 13 10:27:30 2004 us=462371   route_delay_defined = DISABLED
Wed Oct 13 10:27:30 2004 us=462643   shared_secret_file = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=462827   key_direction = 0
Wed Oct 13 10:27:30 2004 us=463010   ciphername_defined = ENABLED
Wed Oct 13 10:27:30 2004 us=463194   ciphername = 'BF-CBC'
Wed Oct 13 10:27:30 2004 us=463377   authname_defined = ENABLED
Wed Oct 13 10:27:30 2004 us=463560   authname = 'SHA1'
Wed Oct 13 10:27:30 2004 us=463743   keysize = 0
Wed Oct 13 10:27:30 2004 us=463926   engine = DISABLED
Wed Oct 13 10:27:30 2004 us=464110   replay = ENABLED
Wed Oct 13 10:27:30 2004 us=464292   mute_replay_warnings = DISABLED
Wed Oct 13 10:27:30 2004 us=464475   replay_window = 64
Wed Oct 13 10:27:30 2004 us=464659   replay_time = 15
Wed Oct 13 10:27:30 2004 us=464843   packet_id_file = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=465026   use_iv = ENABLED
Wed Oct 13 10:27:30 2004 us=465290   test_crypto = DISABLED
Wed Oct 13 10:27:30 2004 us=465473   tls_server = ENABLED
Wed Oct 13 10:27:30 2004 us=465656   tls_client = DISABLED
Wed Oct 13 10:27:30 2004 us=465840   key_method = 2
Wed Oct 13 10:27:30 2004 us=466025   ca_file = 'cacert.cert'
Wed Oct 13 10:27:30 2004 us=466209   dh_file = 'dh2048.pem'
Wed Oct 13 10:27:30 2004 us=466393   cert_file = 'gateway.cert'
Wed Oct 13 10:27:30 2004 us=466578   priv_key_file = 'gateway-key.pem'
Wed Oct 13 10:27:30 2004 us=466762   pkcs12_file = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=466946   cipher_list = 'RC4-MD5'
Wed Oct 13 10:27:30 2004 us=467130   tls_verify = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=467313   tls_remote = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=468222   crl_file = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=468410   tls_timeout = 2
Wed Oct 13 10:27:30 2004 us=468593   renegotiate_bytes = 0
Wed Oct 13 10:27:30 2004 us=468777   renegotiate_packets = 0
Wed Oct 13 10:27:30 2004 us=468961   renegotiate_seconds = 3600
Wed Oct 13 10:27:30 2004 us=469145   handshake_window = 60
Wed Oct 13 10:27:30 2004 us=469328   transition_window = 3600
Wed Oct 13 10:27:30 2004 us=469512   single_session = DISABLED
Wed Oct 13 10:27:30 2004 us=469695   tls_auth_file = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=470511   server_network = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=470791   server_netmask = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=471059   server_bridge_ip = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=471247   server_bridge_netmask = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=471515   server_bridge_pool_start = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=471703   server_bridge_pool_end = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=471888   client = DISABLED
Wed Oct 13 10:27:30 2004 us=472072   pull = DISABLED
Wed Oct 13 10:27:30 2004 us=472256   ifconfig_pool_defined = ENABLED
Wed Oct 13 10:27:30 2004 us=472524   ifconfig_pool_start = 10.80.0.2
Wed Oct 13 10:27:30 2004 us=472712   ifconfig_pool_end = 10.80.0.11
Wed Oct 13 10:27:30 2004 us=472980   ifconfig_pool_netmask = 255.255.255.0
Wed Oct 13 10:27:30 2004 us=473165   n_bcast_buf = 256
Wed Oct 13 10:27:30 2004 us=473350   tcp_queue_limit = 64
Wed Oct 13 10:27:30 2004 us=473533   real_hash_size = 256
Wed Oct 13 10:27:30 2004 us=473716   virtual_hash_size = 256
Wed Oct 13 10:27:30 2004 us=473900   client_connect_script = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=474084   learn_address_script = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=474269   client_disconnect_script = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=474453   client_config_dir = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=474637   tmp_dir = '[UNDEF]'
Wed Oct 13 10:27:30 2004 us=474820   push_ifconfig_defined = DISABLED
Wed Oct 13 10:27:30 2004 us=475088   push_ifconfig_local = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=478233   push_ifconfig_remote_netmask = 0.0.0.0
Wed Oct 13 10:27:30 2004 us=478504   enable_c2c = DISABLED
Wed Oct 13 10:27:30 2004 us=478688   duplicate_cn = DISABLED
Wed Oct 13 10:27:30 2004 us=478872   cf_max = 0
Wed Oct 13 10:27:30 2004 us=479056   cf_per = 0
Wed Oct 13 10:27:30 2004 us=479239   max_clients = 1024
Wed Oct 13 10:27:30 2004 us=479703 OpenVPN 2.0_beta11 i386-unknown-freebsd4.10 [SSL] [LZO] built on Oct 13 2004
Wed Oct 13 10:27:31 2004 us=349261 Diffie-Hellman initialized with 2048 bit key
Wed Oct 13 10:27:31 2004 us=371682 TLS-Auth MTU parms [ L:1573 D:138 EF:38 EB:0 ET:0 EL:0 ]
Wed Oct 13 10:27:31 2004 us=373819 Data Channel MTU parms [ L:1573 D:1450 EF:41 EB:0 ET:32 EL:0 ]
Wed Oct 13 10:27:31 2004 us=376053 Socket Buffers: R=[41600->65536] S=[9216->65536]
Wed Oct 13 10:27:31 2004 us=377364 UDPv4 link local (bound): 10.70.1.10:5000
Wed Oct 13 10:27:31 2004 us=378370 UDPv4 link remote: [undef]
Wed Oct 13 10:27:31 2004 us=380228 MULTI: multi_init called, r=256 v=256
Wed Oct 13 10:27:31 2004 us=381781 IFCONFIG POOL: base=10.80.0.2 size=10
Wed Oct 13 10:27:31 2004 us=382795 Assertion failed at multi.c:266
Wed Oct 13 10:27:31 2004 us=384004 Exiting
#
# cat local.conf
#port 443
dev tap
#comp-lzo
#ping 10
verb 4
#shaper 1000
#up /etc/openvpn/gateway/bin/ip-up.sh
#down  /etc/openvpn/gateway/bin/ip-down.sh

tls-server
ca cacert.cert
cert gateway.cert
key gateway-key.pem
dh dh2048.pem
tls-cipher RC4-MD5
mode server
#duplicate-cn

local 10.70.1.10
ifconfig 10.80.0.1 255.255.255.0
ifconfig-pool 10.80.0.2 10.80.0.11 255.255.255.0
#push "dhcp-option DNS 10.70.1.2"
#push "dhcp-option DNS 10.70.1.3"
#push "route-gateway 10.70.0.1"

#mtu-test
#tun-mtu 1500
#tun-mtu-extra 32

#mssfix 1450
#ping-restart 120
#push "ping 10"
#push "ping-restart 60"
#push "route 10.70.0.0 255.255.0.0 10.70.0.1"
#push "route 10.80.0.0 255.255.255.0 10.80.0.1"

status openvpn-status.log


Thanks!
Jason

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