[Openswan Users] ipsec__plutorun: Segmentation fault

Paul Wouters paul at xelerance.com
Tue Sep 20 09:51:02 EDT 2011


On Mon, 19 Sep 2011, Bastian Lemke wrote:

> Yes, the default ubuntu system has a kernel with AppArmor.

Hmmm. ok

> (gdb) bt full
> #0  oakley_alg_makedb (ai=0x7faa572461c0, base=0x0, maxtrans=0)
>    at /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/spdb_struct.c:316
>        gsp = 0x0
>        emp_sp = 0x0
>        ike_info = 0x7b6878
>        ealg = 1
>        halg = 1
>        modp = 0
>        eklen = 0
>        last_modp = 0
>        wrong_modp = 0
>        transcnt = 0
>        i = 0

That's in AH mode? Are you really trying a connection with ah= parameters? If so,
why? I recommend using esp=null if you really want no encryption.

If you're not using ah, then things are really weird, and you might need to
recompile without -O2 for gdb to make more sense.

Paul


> #1  0x000000000044bee9 in init_am_st_oakley (st=0x7b9de8, policy=<value 
> optimized out>)
>    at 
> /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/spdb_v1_struct.c:1315
>        ta = {encrypt = 0, enckeylen = 0, prf_hash = 0, integ_hash = 0, auth 
> = 0, xauth = 0, groupnum = 0,
>          life_seconds = 3600, life_kilobytes = 1000000, encrypter = 0x0, 
> prf_hasher = 0x0, integ_hasher = 0x0, group = 0x0,
>          ei = 0x0}
>        enc = <value optimized out>
>        hash = <value optimized out>
>        auth = <value optimized out>
>        grp = <value optimized out>
>        trans = <value optimized out>
>        cprop = <value optimized out>
>        revised_sadb = <value optimized out>
>        c = <value optimized out>
>        policy_index = <value optimized out>
> #2  0x000000000045870f in aggr_outI1 (whack_sock=19, c=0x7b7088, 
> predecessor=0x0, policy=2181628005,
>    try=<value optimized out>, importance=pcim_demand_crypto)
>    at /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/ikev1_aggr.c:1025
>        st = <value optimized out>
>        sr = <value optimized out>
>        __FUNCTION__ = <error reading variable __FUNCTION__ (Cannot access 
> memory at address 0x4a6a40)>
> #3  0x000000000040a706 in initiate_a_connection (c=<value optimized out>, 
> arg=0x7fff4146bab0)
>    at /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/initiate.c:225
>        whackfd = 18
>        moredebug = 8093528
>        importance = pcim_demand_crypto
>        success = 1
> #4  0x000000000040cac7 in initiate_connection (name=0x7fff4146e820 "fcp", 
> whackfd=18, moredebug=0,
>    importance=pcim_demand_crypto) at 
> /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/initiate.c:250
>        is = {whackfd = 18, moredebug = 0, importance = pcim_demand_crypto}
>        c = 0x0
>        count = <value optimized out>
> #5  0x000000000043eb0f in whack_process (whackfd=10, msg=...)
>    at /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/rcv_whack.c:622
>        oco = 0x6da060
> #6  0x000000000043f736 in whack_handle (whackctlfd=<value optimized out>)
>    at /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/rcv_whack.c:752
>        msg = {magic = 1869114150, whack_status = 0, whack_shutdown = 0, 
> name_len = 0, name = 0x7fff4146e820 "fcp",
>          whack_options = 0, debugging = 0, whack_connection = 0, whack_async 
> = 0, policy = 0, sa_ike_life_seconds = 3600,
>          sa_ipsec_life_seconds = 28800, sa_rekey_margin = 540, sa_rekey_fuzz 
> = 100, sa_keying_tries = 0, dpd_delay = 0,
>          dpd_timeout = 0, dpd_action = DPD_ACTION_CLEAR, dpd_count = 0, 
> remotepeertype = NON_CISCO, forceencaps = 0,
>          nmconfigured = NO, connmtu = 0, left = {id = 0x0, cert = 0x0, ca = 
> 0x0, groups = 0x0, host_type = KH_NOTSET,
>            host_addr = {u = {v4 = {sin_family = 0, sin_port = 0, sin_addr = 
> {s_addr = 0},
>                  sin_zero = "\000\000\000\000\000\000\000"}, v6 = 
> {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0,
>                  sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 
> times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
>                      __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}, 
> host_nexthop = {u = {v4 = {sin_family = 0,
>                  sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0,
>                  sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = 
> {__u6_addr8 = '\000' <repeats 15 times>,
>                      __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = 
> {0, 0, 0, 0}}}, sin6_scope_id = 0}}},
>            host_srcip = {u = {v4 = {sin_family = 0, sin_port = 0, sin_addr = 
> {s_addr = 0},
>                  sin_zero = "\000\000\000\000\000\000\000"}, v6 = 
> {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0,
>                  sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 
> times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
>                      __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}, 
> client = {addr = {u = {v4 = {sin_family = 0,
>                    sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0,
>                    sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = 
> {__u6_addr8 = '\000' <repeats 15 times>,
>                        __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = 
> {0, 0, 0, 0}}}, sin6_scope_id = 0}}},
>              maskbits = 0}, key_from_DNS_on_demand = 0, has_client = 0, 
> has_client_wildcard = 0, has_port_wildcard = 0,
>            updown = 0x0, host_port = 0, port = 0, protocol = 0 '\000', virt 
> = 0x0, xauth_server = 0, xauth_client = 0,
>            xauth_name = 0x0, modecfg_server = 0, modecfg_client = 0, tundev 
> = 0, sendcert = 0, certtype = CERT_NONE,
>            host_addr_name = 0x0}, right = {id = 0x0, cert = 0x0, ca = 0x0, 
> groups = 0x0, host_type = KH_NOTSET, host_addr = {
>              u = {v4 = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 
> 0}, sin_zero = "\000\000\000\000\000\000\000"},
>                v6 = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, 
> sin6_addr = {__in6_u = {
>                      __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = 
> {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                        0}}}, sin6_scope_id = 0}}}, host_nexthop = {u = {v4 = 
> {sin_family = 0, sin_port = 0, sin_addr = {
>                    s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, 
> v6 = {sin6_family = 0, sin6_port = 0,
>                  sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0,
>                        0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, host_srcip = {u = {v4 = {
>                  sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, 
> sin_zero = "\000\000\000\000\000\000\000"}, v6 = {
>                  sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, 
> sin6_addr = {__in6_u = {
>                      __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = 
> {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                        0}}}, sin6_scope_id = 0}}}, client = {addr = {u = {v4 
> = {sin_family = 0, sin_port = 0, sin_addr = {
>                      s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0, sin6_port = 0,
>                    sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0,
>                          0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, maskbits = 0},
>            key_from_DNS_on_demand = 0, has_client = 0, has_client_wildcard = 
> 0, has_port_wildcard = 0, updown = 0x0,
>            host_port = 500, port = 0, protocol = 0 '\000', virt = 0x0, 
> xauth_server = 0, xauth_client = 0, xauth_name = 0x0,
>            modecfg_server = 0, modecfg_client = 0, tundev = 0, sendcert = 0, 
> certtype = CERT_NONE, host_addr_name = 0x0},
>          addr_family = 2, tunnel_addr_family = 2, ike = 0x0, pfsgroup = 0x0, 
> esp = 0x0, whack_key = 0, whack_addkey = 0,
>          keyid = 0x0, pubkey_alg = 0, keyval = {ptr = 0x7fff4146e83e "", len 
> = 0}, whack_myid = 0, myid = 0x0,
>          whack_route = 0, whack_unroute = 0, whack_initiate = 1, 
> whack_oppo_initiate = 0, oppo_my_client = {u = {v4 = {
>                sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, 
> sin_zero = "\000\000\000\000\000\000\000"}, v6 = {
>                sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, sin6_addr 
> = {__in6_u = {
>                    __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 
> 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                      0}}}, sin6_scope_id = 0}}}, oppo_peer_client = {u = {v4 
> = {sin_family = 0, sin_port = 0, sin_addr = {
>                  s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, v6 
> = {sin6_family = 0, sin6_port = 0,
>                sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0,
>                      0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, whack_terminate = 0, whack_delete = 0,
>          whack_deletestate = 0, whack_deletestateno = 0, whack_listen = 0, 
> whack_unlisten = 0, whack_crash = 0,
>          whack_crash_peer = {u = {v4 = {sin_family = 0, sin_port = 0, 
> sin_addr = {s_addr = 0},
>                sin_zero = "\000\000\000\000\000\000\000"}, v6 = {sin6_family 
> = 0, sin6_port = 0, sin6_flowinfo = 0,
>                sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 
> times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
>                    __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}, 
> whack_utc = 0, whack_list = 0, whack_purgeocsp = 0,
>          whack_reread = 0 '\000', tpmeval = 0x0, connalias = 0x0, 
> modecfg_dns1 = {u = {v4 = {sin_family = 0, sin_port = 0,
>                sin_addr = {s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0, sin6_port = 0,
>                sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0,
>                      0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, modecfg_dns2 = {u = {v4 = {
>                sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, 
> sin_zero = "\000\000\000\000\000\000\000"}, v6 = {
>                sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, sin6_addr 
> = {__in6_u = {
>                    __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 
> 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                      0}}}, sin6_scope_id = 0}}}, modecfg_wins1 = {u = {v4 = 
> {sin_family = 0, sin_port = 0, sin_addr = {
>                  s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, v6 
> = {sin6_family = 0, sin6_port = 0,
>                sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0,
>                      0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, modecfg_wins2 = {u = {v4 = {
>                sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, 
> sin_zero = "\000\000\000\000\000\000\000"}, v6 = {
>                sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, sin6_addr 
> = {__in6_u = {
>                    __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 
> 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                      0}}}, sin6_scope_id = 0}}}, metric = 0, dnshostname = 
> 0x0, opt_set = WHACK_ADJUSTOPTIONS,
>          string1 = 0x0, string2 = 0x0, string3 = 0x0, str_size = 0, string = 
> "fcp", '\000' <repeats 4092 times>}
>        msg_saved = {magic = 1869114150, whack_status = 0, whack_shutdown = 
> 0, name_len = 0, name = 0x0, whack_options = 0,
>          debugging = 0, whack_connection = 0, whack_async = 0, policy = 0, 
> sa_ike_life_seconds = 3600,
>          sa_ipsec_life_seconds = 28800, sa_rekey_margin = 540, sa_rekey_fuzz 
> = 100, sa_keying_tries = 0, dpd_delay = 0,
>          dpd_timeout = 0, dpd_action = DPD_ACTION_CLEAR, dpd_count = 0, 
> remotepeertype = NON_CISCO, forceencaps = 0,
>          nmconfigured = NO, connmtu = 0, left = {id = 0x0, cert = 0x0, ca = 
> 0x0, groups = 0x0, host_type = KH_NOTSET,
>            host_addr = {u = {v4 = {sin_family = 0, sin_port = 0, sin_addr = 
> {s_addr = 0},
>                  sin_zero = "\000\000\000\000\000\000\000"}, v6 = 
> {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0,
>                  sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 
> times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
>                      __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}, 
> host_nexthop = {u = {v4 = {sin_family = 0,
>                  sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0,
>                  sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = 
> {__u6_addr8 = '\000' <repeats 15 times>,
>                      __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = 
> {0, 0, 0, 0}}}, sin6_scope_id = 0}}},
>            host_srcip = {u = {v4 = {sin_family = 0, sin_port = 0, sin_addr = 
> {s_addr = 0},
>                  sin_zero = "\000\000\000\000\000\000\000"}, v6 = 
> {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0,
>                  sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 
> times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
>                      __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}, 
> client = {addr = {u = {v4 = {sin_family = 0,
>                    sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0,
>                    sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = 
> {__u6_addr8 = '\000' <repeats 15 times>,
>                        __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = 
> {0, 0, 0, 0}}}, sin6_scope_id = 0}}},
>              maskbits = 0}, key_from_DNS_on_demand = 0, has_client = 0, 
> has_client_wildcard = 0, has_port_wildcard = 0,
>            updown = 0x0, host_port = 0, port = 0, protocol = 0 '\000', virt 
> = 0x0, xauth_server = 0, xauth_client = 0,
>            xauth_name = 0x0, modecfg_server = 0, modecfg_client = 0, tundev 
> = 0, sendcert = 0, certtype = CERT_NONE,
>            host_addr_name = 0x0}, right = {id = 0x0, cert = 0x0, ca = 0x0, 
> groups = 0x0, host_type = KH_NOTSET, host_addr = {
>              u = {v4 = {sin_family = 0, sin_port = 0, sin_addr = {s_addr = 
> 0}, sin_zero = "\000\000\000\000\000\000\000"},
>                v6 = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, 
> sin6_addr = {__in6_u = {
>                      __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = 
> {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                        0}}}, sin6_scope_id = 0}}}, host_nexthop = {u = {v4 = 
> {sin_family = 0, sin_port = 0, sin_addr = {
>                    s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, 
> v6 = {sin6_family = 0, sin6_port = 0,
>                  sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0,
>                        0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, host_srcip = {u = {v4 = {
>                  sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, 
> sin_zero = "\000\000\000\000\000\000\000"}, v6 = {
>                  sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, 
> sin6_addr = {__in6_u = {
>                      __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = 
> {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                        0}}}, sin6_scope_id = 0}}}, client = {addr = {u = {v4 
> = {sin_family = 0, sin_port = 0, sin_addr = {
>                      s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0, sin6_port = 0,
>                    sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0,
>                          0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, maskbits = 0},
>            key_from_DNS_on_demand = 0, has_client = 0, has_client_wildcard = 
> 0, has_port_wildcard = 0, updown = 0x0,
>            host_port = 500, port = 0, protocol = 0 '\000', virt = 0x0, 
> xauth_server = 0, xauth_client = 0, xauth_name = 0x0,
>            modecfg_server = 0, modecfg_client = 0, tundev = 0, sendcert = 0, 
> certtype = CERT_NONE, host_addr_name = 0x0},
>          addr_family = 2, tunnel_addr_family = 2, ike = 0x0, pfsgroup = 0x0, 
> esp = 0x0, whack_key = 0, whack_addkey = 0,
>          keyid = 0x0, pubkey_alg = 0, keyval = {ptr = 0x0, len = 0}, 
> whack_myid = 0, myid = 0x0, whack_route = 0,
>          whack_unroute = 0, whack_initiate = 1, whack_oppo_initiate = 0, 
> oppo_my_client = {u = {v4 = {sin_family = 0,
>                sin_port = 0, sin_addr = {s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0,
>                sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__in6_u = 
> {__u6_addr8 = '\000' <repeats 15 times>,
>                    __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 
> 0, 0, 0}}}, sin6_scope_id = 0}}},
>          oppo_peer_client = {u = {v4 = {sin_family = 0, sin_port = 0, 
> sin_addr = {s_addr = 0},
>                sin_zero = "\000\000\000\000\000\000\000"}, v6 = {sin6_family 
> = 0, sin6_port = 0, sin6_flowinfo = 0,
>                sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 
> times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
>                    __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}, 
> whack_terminate = 0, whack_delete = 0,
>          whack_deletestate = 0, whack_deletestateno = 0, whack_listen = 0, 
> whack_unlisten = 0, whack_crash = 0,
>          whack_crash_peer = {u = {v4 = {sin_family = 0, sin_port = 0, 
> sin_addr = {s_addr = 0},
>                sin_zero = "\000\000\000\000\000\000\000"}, v6 = {sin6_family 
> = 0, sin6_port = 0, sin6_flowinfo = 0,
>                sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 
> times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
>                    __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}, 
> whack_utc = 0, whack_list = 0, whack_purgeocsp = 0,
>          whack_reread = 0 '\000', tpmeval = 0x0, connalias = 0x0, 
> modecfg_dns1 = {u = {v4 = {sin_family = 0, sin_port = 0,
>                sin_addr = {s_addr = 0}, sin_zero = 
> "\000\000\000\000\000\000\000"}, v6 = {sin6_family = 0, sin6_port = 0,
>                sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0,
>                      0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, modecfg_dns2 = {u = {v4 = {
>                sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, 
> sin_zero = "\000\000\000\000\000\000\000"}, v6 = {
>                sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, sin6_addr 
> = {__in6_u = {
>                    __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 
> 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                      0}}}, sin6_scope_id = 0}}}, modecfg_wins1 = {u = {v4 = 
> {sin_family = 0, sin_port = 0, sin_addr = {
>                  s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, v6 
> = {sin6_family = 0, sin6_port = 0,
>                sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = 
> '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0,
>                      0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, 
> sin6_scope_id = 0}}}, modecfg_wins2 = {u = {v4 = {
>                sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0}, 
> sin_zero = "\000\000\000\000\000\000\000"}, v6 = {
>                sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0, sin6_addr 
> = {__in6_u = {
>                    __u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 
> 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,
>                      0}}}, sin6_scope_id = 0}}}, metric = 0, dnshostname = 
> 0x0, opt_set = WHACK_ADJUSTOPTIONS,
>          string1 = 0x0, string2 = 0x0, string3 = 0x0, str_size = 0, string = 
> "fcp", '\000' <repeats 4092 times>}
>        whackaddr = {sun_family = 1,
>          sun_path = 
> "\000\000\000\000\000\000\340\304I\000\000\000\000\000\260\235{", '\000' 
> <repeats 77 times>"\360, \000GA\377\177\000\000]K\365V\252\177"}
>        whackaddrlen = 2
>        whackfd = 10
>        n = <value optimized out>
> #7  0x0000000000417159 in call_server () at 
> /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/server.c:775
>        readfds = {__osfds_bits = {32, 0 <repeats 127 times>}}
>        writefds = {__osfds_bits = {0 <repeats 128 times>}}
>        ndes = 1
>        ifp = 0x0
> #8  0x0000000000414c1a in main (argc=28, argv=0x7fff414704b8)
>    at /vol/openswan-debs/openswan-2.6.35dr1/programs/pluto/plutomain.c:1055
>        fork_desired = <value optimized out>
>        lockfd = <value optimized out>
>        ocspuri = 0x0
>        nhelpers = -1
>        coredir = <value optimized out>
>        oco = 0x6da060
>        nat_traversal = 1
>        nat_t_spf = 1
>        keep_alive = 0
>        force_keepalive = 0
>        virtual_private = 0x7fff41471add 
> "%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12"
>
> Regards,
> Bastian
>
>
> Am 19.09.2011 00:39, schrieb Paul Wouters:
>> On Sun, 18 Sep 2011, Bastian Lemke wrote:
>> 
>>> I tried v2.6.35 - same problem:
>> 
>>> Sep 18 22:02:41 schweinshaxe kernel: [ 7320.707153] pluto[5801]: segfault 
>>> at 4 ip 00000000004492e8 sp 00007fffaae82d30 error 6 in 
>>> pluto[400000+d0000]
>>> Sep 18 22:02:41 schweinshaxe ipsec__plutorun: Segmentation fault
>>> Sep 18 22:02:41 schweinshaxe ipsec__plutorun: !pluto failure!:  exited 
>>> with error status 139 (signal 11)
>>> Sep 18 22:02:41 schweinshaxe ipsec__plutorun: restarting IPsec after 
>>> pause...
>> 
>> Please add dumpdir=/tmp/ to "config setup" in ipsec.conf, make it crash and
>> send us the gdb backtrace.
>> 
>> Is this a kernel with apparmor or anything like that?
>> 
>> You can also try and compile it yourself and edit Makefile.inc to enable
>> linking with ElectricFence (see USERCOMPILE=) and USE_LEAK_DETECTIVE=true
>> 
>> Paul
>


More information about the Users mailing list