[Openswan Users] openswan-3.0.01 crash

Sergio Carlucci s.carlucci at itcity.it
Tue Nov 28 08:19:46 EST 2006


Hi all,

I'm trying to test openswan-3.0.01 using the following testbench

 

 

Client1 -------------------------------------- Linux gw1
---------------------------------- Linux pc
-------------------------------- Linux gw2 -------------------------
Client2

 

 

172.16.0.2/24

 

                            172.16.0.1/24              192.168.1.1/24

 

 
192.168.1.2/24   192.168.2.2/24

 

 
192.168.2.1/24     10.0.0.1/24

 

 
10.0.0.2/24

 

 

On Linux gw1 and Linux gw2 I run ipsec start

 

Then I run ipsec auto -up net-to-net on Linux gw1

 

This command causes a Pluto crash on Linux gw2.

 

Following there is my ipsec.conf, ipsec.secrets and the result of the
gdb /usr/local/libexec/ipsec/Pluto core.xxxx

 

 # /etc/ipsec.conf - Openswan IPsec configuration file
version      2.0    # conforms to second version of ipsec.conf
specification

# basic configuration
config setup
       dumpdir=/root
       interfaces=%defaultroute
       klipsdebug=none
       plutodebug=none

# Add connections here

# sample VPN connection
conn net-to-net 
       left=192.168.1.1
       leftsubnet=172.16.0.0/24
       leftnexthop=192.168.1.2
       right=192.168.2.1
       rightsubnet=10.0.0.0/24
       rightnexthop=192.168.2.2
       auto=add
       authby=secret

#Disable Opportunistic Encryption
include /etc/ipsec.d/examples/no_oe.conf
 

 

 

192.168.1.1 192.168.2.1: PSK "pippoplutopaperino"
 

 

gdb /usr/local/libexec/ipsec/pluto core.4900
GNU gdb Red Hat Linux (6.3.0.0-1.134.fc5rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".

Failed to read a valid object file image from memory.
Core was generated by `/usr/local/libexec/ipsec/pluto --nofork
--secretsfile /etc/ipsec.secrets --use-'.
Program terminated with signal 6, Aborted.

warning: svr4_current_sos: Can't read pathname for load map:
Input/output error

Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libcrypto.so.6...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /usr/lib/sse2/libgmp.so.3...done.
Loaded symbols for /usr/lib/sse2/libgmp.so.3
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x00dca402 in ?? ()
(gdb) bt
#0  0x00dca402 in ?? ()
#1  0x009b5ee9 in raise () from /lib/libc.so.6
#2  0x009b74f1 in abort () from /lib/libc.so.6
#3  0x08058b51 in passert_fail (pred_str=Could not find the frame base
for "passert_fail".
) at /opt/openswan-3.0.01/programs/pluto/log.c:623
#4  0x08058b05 in openswan_switch_fail (n=Could not find the frame base
for "openswan_switch_fail".
) at /opt/openswan-3.0.01/programs/pluto/log.c:609
#5  0x08074cfe in netlink_raw_eroute (this_host=0x9f07cd4,
this_client=0x9f07d28, that_host=0x9f07bd4,
    that_client=0x9f07c28, spi=256, proto=4, transport_proto=0,
esatype=ET_IPIP, proto_info=0xbf87234c, use_lifetime=0,
    sadb_op=ERO_ADD_INBOUND, text_said=0xbf872268
"tun.10000 at 192.168.2.1")
    at /opt/openswan-3.0.01/programs/pluto/kernel_netlink.c:451
#6  0x08070a61 in raw_eroute (this_host=0x9f07cd4,
this_client=0x9f07d28, that_host=0x9f07bd4, that_client=0x9f07c28,
    spi=256, proto=4, transport_proto=0, esatype=ET_IPIP,
proto_info=0xbf87234c, use_lifetime=0, op=ERO_ADD_INBOUND,
    opname=0x80eca5f "add inbound") at
/opt/openswan-3.0.01/programs/pluto/kernel.c:815
#7  0x08072bcd in setup_half_ipsec_sa (st=0x9f0a010, inbound=1) at
/opt/openswan-3.0.01/programs/pluto/kernel.c:1705
#8  0x080733b2 in install_inbound_ipsec_sa (st=0x9f0a010) at
/opt/openswan-3.0.01/programs/pluto/kernel.c:2056
#9  0x0806e1f1 in quick_inI1_outR1_cryptotail (dh=0x9f09810,
r=0xbf872784)
    at /opt/openswan-3.0.01/programs/pluto/ikev1_quick.c:2113
#10 0x0806dd28 in quick_inI1_outR1_cryptocontinue2 (pcrc=0x9f09810,
r=0xbf872784, ugh=0x0)
    at /opt/openswan-3.0.01/programs/pluto/ikev1_quick.c:1967
#11 0x08085cd1 in handle_helper_comm (w=0x9f06440) at
/opt/openswan-3.0.01/programs/pluto/pluto_crypt.c:623
#12 0x08086497 in pluto_crypto_helper_ready (readfds=0xbf875244) at
/opt/openswan-3.0.01/programs/pluto/pluto_crypt.c:903
#13 0x0805fd33 in call_server () at
/opt/openswan-3.0.01/programs/pluto/server.c:786
#14 0x0805cc55 in main (argc=5, argv=0xbf875454) at
/opt/openswan-3.0.01/programs/pluto/plutomain.c:856
(gdb)

 

Please help me

 

Thanks

 

Sergio

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20061128/144f8da5/attachment-0001.html 


More information about the Users mailing list