[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4659) Core dump after MOD
--On Friday, September 01, 2006 1:33 AM +0200 Pierangelo Masarati
<ando@sys-net.it> wrote:
> Sounds like c_writewaiter needs to be reset in connection_closing(),
> where special actions are taken to try to wake up the writer before
> closing. Just out of curiosity, can you print the contents of the
> Connection ((gdb) p *c from within any of the frames you looked at?)
Here is what the connection shows for frames 3 & 4:
(gdb) frame 3:
#3 0x0000000000427142 in connection_close (c=0x2aaaaab73530) at
connection.c:655
(gdb) print *c
$1 = {c_struct_state = 2, c_conn_state = 4, c_conn_idx = 28, c_close_reason
= 0x4a3a30 "connection lost", c_mutex = {__data = {__lock = 2, __count = 0,
__owner = 11385, __nusers = 2, __kind = 0}, __size =
"\002\000\000\000\000\000\000\000y,\000\000\002", '\0' <repeats 26 times>,
__align = 2},
c_sb = 0x2aabbb9c5be0, c_starttime = 1157049711, c_activitytime =
1157052449, c_connid = 1210, c_peer_domain = {bv_len = 18,
bv_val = 0x2aabbbb1ec40 "ldap1.stanford.edu"}, c_peer_name = {bv_len =
21, bv_val = 0x2aabbbb1eca0 "IP=171.67.22.57:58180"},
c_listener = 0x2aac5de90f10, c_sasl_bind_in_progress = 0,
c_sasl_bind_mech = {bv_len = 0, bv_val = 0x0}, c_sasl_dn = {bv_len = 0,
bv_val = 0x0},
c_sasl_authz_dn = {bv_len = 0, bv_val = 0x0}, c_authz_backend =
0x2aac5ec401d0, c_authz_cookie = 0x0, c_authz = {sai_method = 163, sai_mech
= {
bv_len = 6, bv_val = 0x2aabbde549c8 "GSSAPI"}, sai_dn = {bv_len = 50,
bv_val = 0x2aabbbb1a880
"cn=ldap1,cn=ldap,cn=operational,dc=stanford,dc=edu"},
sai_ndn = {bv_len = 50, bv_val = 0x2aabbde4f580
"cn=ldap1,cn=ldap,cn=operational,dc=stanford,dc=edu"}, sai_ssf = 56,
sai_transport_ssf = 0,
sai_tls_ssf = 0, sai_sasl_ssf = 56}, c_protocol = 3, c_ops =
{stqh_first = 0x0, stqh_last = 0x2aaaaab73650}, c_pending_ops = {stqh_first
= 0x0,
stqh_last = 0x2aaaaab73660}, c_write_mutex = {__data = {__lock = 1,
__count = 0, __owner = 15844, __nusers = 1, __kind = 0},
__size = "\001\000\000\000\000\000\000\000ä=\000\000\001", '\0'
<repeats 26 times>, __align = 1}, c_write_cv = {__data = {__lock = 0,
__clock = 0,
__total_seq = 2, __wakeup_seq = 2, __woken_seq = 1, __mutex =
0x2aaaaab73548},
__size =
"\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000H5ỻ*\000\000\000\000\000\000\000\000\000",
__align = 0}, c_currentber = 0x0, c_writewaiter = 1, c_is_tls = 0,
c_needs_tls_accept = 0, c_sasl_layers = 0,
c_sasl_done = 1, c_sasl_authctx = 0x2aabb84066b0, c_sasl_sockctx =
0x2aabb84066b0, c_sasl_extra = 0x2aabbcde8020, c_sasl_bindop = 0x0,
c_pagedresults_state = {ps_be = 0x0, ps_size = 0, ps_cookie = 0, ps_count
= 0}, c_n_ops_received = 4, c_n_ops_executing = 0, c_n_ops_pending = 0,
c_n_ops_completed = 4, c_n_get = 6, c_n_read = 5, c_n_write = 1, c_pb =
0x0, c_extensions = 0x0, c_clientfunc = 0, c_clientarg = 0x0,
c_send_ldap_result = 0x435400 <slap_send_ldap_result>,
c_send_search_entry = 0x436970 <slap_send_search_entry>,
c_send_search_reference = 0x435d80 <slap_send_search_reference>,
c_send_ldap_extended = 0x435ab0 <slap_send_ldap_extended>,
c_send_ldap_intermediate = 0x435c30 <slap_send_ldap_intermediate>}
(gdb) frame 4
#4 0x000000000042892c in connection_read_thread (ctx=0x40fff4e0,
argv=0x68) at connection.c:1375
1375 connection_close( c );
(gdb) p *c
$2 = {c_struct_state = 2, c_conn_state = 4, c_conn_idx = 28, c_close_reason
= 0x4a3a30 "connection lost", c_mutex = {__data = {__lock = 2, __count = 0,
__owner = 11385, __nusers = 2, __kind = 0}, __size =
"\002\000\000\000\000\000\000\000y,\000\000\002", '\0' <repeats 26 times>,
__align = 2},
c_sb = 0x2aabbb9c5be0, c_starttime = 1157049711, c_activitytime =
1157052449, c_connid = 1210, c_peer_domain = {bv_len = 18,
bv_val = 0x2aabbbb1ec40 "ldap1.stanford.edu"}, c_peer_name = {bv_len =
21, bv_val = 0x2aabbbb1eca0 "IP=171.67.22.57:58180"},
c_listener = 0x2aac5de90f10, c_sasl_bind_in_progress = 0,
c_sasl_bind_mech = {bv_len = 0, bv_val = 0x0}, c_sasl_dn = {bv_len = 0,
bv_val = 0x0},
c_sasl_authz_dn = {bv_len = 0, bv_val = 0x0}, c_authz_backend =
0x2aac5ec401d0, c_authz_cookie = 0x0, c_authz = {sai_method = 163, sai_mech
= {
bv_len = 6, bv_val = 0x2aabbde549c8 "GSSAPI"}, sai_dn = {bv_len = 50,
bv_val = 0x2aabbbb1a880
"cn=ldap1,cn=ldap,cn=operational,dc=stanford,dc=edu"},
sai_ndn = {bv_len = 50, bv_val = 0x2aabbde4f580
"cn=ldap1,cn=ldap,cn=operational,dc=stanford,dc=edu"}, sai_ssf = 56,
sai_transport_ssf = 0,
sai_tls_ssf = 0, sai_sasl_ssf = 56}, c_protocol = 3, c_ops =
{stqh_first = 0x0, stqh_last = 0x2aaaaab73650}, c_pending_ops = {stqh_first
= 0x0,
stqh_last = 0x2aaaaab73660}, c_write_mutex = {__data = {__lock = 1,
__count = 0, __owner = 15844, __nusers = 1, __kind = 0},
__size = "\001\000\000\000\000\000\000\000ä=\000\000\001", '\0'
<repeats 26 times>, __align = 1}, c_write_cv = {__data = {__lock = 0,
__clock = 0,
__total_seq = 2, __wakeup_seq = 2, __woken_seq = 1, __mutex =
0x2aaaaab73548},
__size =
"\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000H5ỻ*\000\000\000\000\000\000\000\000\000",
__align = 0}, c_currentber = 0x0, c_writewaiter = 1, c_is_tls = 0,
c_needs_tls_accept = 0, c_sasl_layers = 0,
c_sasl_done = 1, c_sasl_authctx = 0x2aabb84066b0, c_sasl_sockctx =
0x2aabb84066b0, c_sasl_extra = 0x2aabbcde8020, c_sasl_bindop = 0x0,
c_pagedresults_state = {ps_be = 0x0, ps_size = 0, ps_cookie = 0, ps_count
= 0}, c_n_ops_received = 4, c_n_ops_executing = 0, c_n_ops_pending = 0,
c_n_ops_completed = 4, c_n_get = 6, c_n_read = 5, c_n_write = 1, c_pb =
0x0, c_extensions = 0x0, c_clientfunc = 0, c_clientarg = 0x0,
c_send_ldap_result = 0x435400 <slap_send_ldap_result>,
c_send_search_entry = 0x436970 <slap_send_search_entry>,
c_send_search_reference = 0x435d80 <slap_send_search_reference>,
c_send_ldap_extended = 0x435ab0 <slap_send_ldap_extended>,
c_send_ldap_intermediate = 0x435c30 <slap_send_ldap_intermediate>}
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html