[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: connection_close() called with c_struct_state == SLAP_C_INACTIVE

Pierangelo Masarati wrote:

Here's something similar, although in a different place, happening on Solaris 9 with a hacked version of 2.3.30 (hacking is basically not in this file; I only imported fixes to ITS#4769 and ITS#4771) when I shut it down hitting CTRL-C.

What I see is that c->c_struct_state is 1 (SLAP_C_UNUSED) instead of 2 (SLAP_C_USED).

Any thoughts? I have access to the binary and the core (sort of: it's more than 2000 km apart on a not fast enough connection to download it, and the firewall will shut the connection down shortly...).

Apparently, connections_shutdown() should lock the connection's c_mutex before testing c_struct_state, and not after, right?

Sounds right. Oops.

  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  OpenLDAP Core Team            http://www.openldap.org/project/