[Openswan dev] ipsec_doi crash gdb info

Paul Wouters paul at xelerance.com
Thu Jan 29 21:52:27 CET 2004


#0  0x42028811 in kill () from /lib/i686/libc.so.6
#1  0x420284a5 in raise () from /lib/i686/libc.so.6
#2  0x42029bab in abort () from /lib/i686/libc.so.6
#3  0x080549c2 in pexpect_log (
    pred_str=0x80993a0 "(st)->st_new_iv_len < sizeof((st)->st_new_iv)",
    file_str=0x8098300 "ipsec_doi.c", line_no=2049) at log.c:600
#4  0x0805ee69 in quick_outI1 (whack_sock=13, isakmp_sa=0x80ca3a8,
    c=0x80c7448, policy=65573, try=1, replacing=0) at ipsec_doi.c:2049
#5  0x08051c2a in unpend (st=0x80ca3a8) at connections.c:4216
#6  0x0806f475 in complete_state_transition (mdp=0x80b5870, result=STF_OK)
    at demux.c:2336
#7  0x0806ed3a in process_packet (mdp=0x80b5870) at demux.c:2034
#8  0x0806d797 in comm_handle (ifp=0x80c8438) at demux.c:1024
#9  0x08059746 in call_server () at server.c:1078
#10 0x08057a38 in main (argc=7, argv=0xbffffc84) at plutomain.c:645
#11 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6

(gdb) up
#1  0x420284a5 in raise () from /lib/i686/libc.so.6
(gdb) up
#2  0x42029bab in abort () from /lib/i686/libc.so.6
(gdb) up
#3  0x080549c2 in pexpect_log (
    pred_str=0x80993a0 "(st)->st_new_iv_len < sizeof((st)->st_new_iv)",
    file_str=0x8098300 "ipsec_doi.c", line_no=2049) at log.c:600
600         abort();    /* exiting correctly doesn't always work */
(gdb) up
#4  0x0805ee69 in quick_outI1 (whack_sock=13, isakmp_sa=0x80ca3a8,
    c=0x80c7448, policy=65573, try=1, replacing=0) at ipsec_doi.c:2049
2049        set_new_iv(st, isakmp_sa->st_new_iv);
(gdb) print *st

$1 = {st_serialno = 5, st_connection = 0x80c7448, st_whack_sock = 13,
  st_suspended_md = 0x0, st_oakley = {encrypt = 5, encrypter = 0x809583c,
    hash = 2, hasher = 0x8095880, auth = 1, group = 0x8095798,
    life_seconds = 3600, life_kilobytes = 0}, st_ah = {present = 0, attrs = {
      transid = 0 '\0', spi = 0, life_seconds = 0, life_kilobytes = 0,
      encapsulation = 0, auth = 0, key_len = 0, key_rounds = 0}, our_spi = 0,
    keymat_len = 0, our_keymat = 0x0, peer_keymat = 0x0}, st_esp = {
    present = 0, attrs = {transid = 0 '\0', spi = 0, life_seconds = 0,
      life_kilobytes = 0, encapsulation = 0, auth = 0, key_len = 0,
      key_rounds = 0}, our_spi = 3820139698, keymat_len = 0, our_keymat = 0x0,
    peer_keymat = 0x0}, st_ipcomp = {present = 0, attrs = {transid = 0 '\0',
      spi = 0, life_seconds = 0, life_kilobytes = 0, encapsulation = 0,
      auth = 0, key_len = 0, key_rounds = 0}, our_spi = 0, keymat_len = 0,
    our_keymat = 0x0, peer_keymat = 0x0}, st_tunnel_in_spi = 0,
  st_tunnel_out_spi = 0, st_pfs_group = 0x0, st_doi = 1, st_situation = 1,
  st_policy = 65573, st_msgid = 2107714036, st_msgid2 = 0, st_infoid = {
    0 <repeats 16 times>}, st_used_msgids = 0x0, st_gi = {ptr = 0x0, len = 0},
  st_icookie = "D\234Ye\206mn[UNPASTABLE CHARACTER]", st_ni = {
     ptr = 0x80cadb8 "[UNPASTABLE GARBADGE]", len = 16}, st_gr = {
    ptr = 0x0, len = 0}, st_rcookie = ""[UNPASTABLE GARBADGE]", st_nr = {ptr = 0x0,
    len = 0}, st_tpacket = {ptr = 0x0, len = 0}, st_myuserprotoid = 0 '\0',
  st_myuserport = 0, st_rpacket = {ptr = 0x0, len = 0},
  st_peeruserprotoid = 0 '\0', st_peeruserport = 0, st_sec_in_use = 0 '\0',
  st_sec = {_mp_alloc = 0, _mp_size = 0, _mp_d = 0x0}, st_shared = {ptr = 0x0,
    len = 0}, st_peer_pubkey = 0x0, st_state = STATE_QUICK_I1,
  st_retransmit = 0 '\0', st_try = 1, st_margin = 0, st_outbound_count = 0,
  st_outbound_time = 0, st_p1isa = {ptr = 0x0, len = 0}, st_skeyid = {
    ptr = 0x0, len = 0}, st_skeyid_d = {
    ptr = 0x80caff8 "[UNPASTABLE GARBADGE]", len = 20},
  st_skeyid_a = {
    ptr = 0x80cb010 "[UNPASTABLE GARBADGE]!",
    len = 20}, st_iv = '\0' <repeats 19 times>,
  st_old_iv = '\0' <repeats 19 times>, st_new_iv = '\0' <repeats 19 times>,
  st_ph1_iv = '\0' <repeats 19 times>, st_iv_len = 0, st_old_iv_len = 0,
  st_new_iv_len = 20, st_ph1_iv_len = 0, st_enc_key = {
    ptr = 0x80caf38 "[UNPASTABLE GARBADGE], len = 24},
  st_event = 0x80cada0, st_hashchain_next = 0x80ca3a8,
  st_hashchain_prev = 0x0, hidden_variables = {st_xauth_client_done = 0,
    st_xauth_client_attempt = 0}, nat_traversal = 0, nat_oa = {u = {v4 = {
        sin_family = 0, sin_port = 0, sin_addr = {s_addr = 0},
        sin_zero = "\0\0\0\0\0\0\0"}, v6 = {sin6_family = 0, sin6_port = 0,
        sin6_flowinfo = 0, sin6_addr = {in6_u = {
            u6_addr8 = '\0' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0,
              0, 0}, u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}},
  st_seen_vendorid = 0, quirks = {xauth_ack_msgid = 0, nat_traversal_vid = 0}}
(gdb)

Screenshot with exact garbadge available upon request,

Paul



More information about the Dev mailing list