[Samba-it] Segfault di samba con ldap...

Marco Gaiarin gaio at sv.lnf.it
Wed Nov 23 19:09:02 MST 2005


[ad entrambe le liste samba-it e openldap, perchè non so dire di chi
sia il problema...]

Antefatto: due server sarge (ma con samba 3.0.20b preso dai pacchetti
.deb realizzati da simo su samba.org), openldap 2.2.23-8.

Premessa: il problema è noto, a me capita con samba 3.0.14a standard
debian, ma solo ``all'inizio'', ovvero quando sono costretto a
riavviare un server per qualche motivo: a servizi partiti, per qualche
minuto/secondo capita che qualche processo smbd vada in crash.
Ho anche aperto un bugreport nel debian bts:

	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug14461

ma sostanzialmente a me non da noia, gli utenti non si sono mai
lamentati di nulla: mi accorgo perchè mi arriva una o due o tre... mail
di panic-action.


L'errore che si presenta è:

 smbd: /home/devel/openldap/build-area/openldap2-2.1.30/libraries/liblber/i
o.c:508: ber_get_next: Assertion er->ber_buf = ((void *)0)' failed.
 [2005/11/23 17:24:30, 0] lib/fault.c:fault_report(36)
   ============
===================
 [2005/11/23 17:24:30, 0] lib/fault.c:fault_report(37)
   INTERNAL ERROR: Signal 6 in pid 12395 (3.0.20bb-Debian)
   Please read the Trouble-Shooting section of the Samba3-HOWTO
 [2005/11/23 17:24:30, 0] lib/fault.c:fault_report(39)
 
   From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
 [2005/11/23 17:24:30, 0] lib/fault.c:fault_report(40)
   ============
===================

questa volta però la macchina non era appena riavviata, ma stava
funzionando da qualche giorno senza problema; inoltre vedo in syslog:

Nov 23 17:19:24 spanky smbd[17884]: nss_ldap: could not get LDAP result - C
an't contact LDAP server
Nov 23 17:19:24 spanky smbd[17892]: nss_ldap: could not search LDAP server 
- Decoding error
Nov 23 17:19:24 spanky smbd[17895]: nss_ldap: could not get LDAP result - D
ecoding error
Nov 23 17:19:24 spanky smbd[17890]: nss_ldap: could not search LDAP server 
- Local error
Nov 23 17:24:30 spanky smbd[12395]: nss_ldap: could not search LDAP server 
- Decoding error
Nov 23 17:24:30 spanky smbd[17903]: nss_ldap: could not search LDAP server 
- Local error
Nov 23 17:24:30 spanky smbd[12395]: nss_ldap: could not get LDAP result - L
ocal error
Nov 23 17:24:30 spanky smbd[17315]: nss_ldap: could not search LDAP server 
- Local error
Nov 23 17:24:30 spanky smbd[17909]: nss_ldap: could not search LDAP server 
- Local error
Nov 23 17:24:30 spanky smbd[17892]: nss_ldap: could not get LDAP result - L
ocal error
Nov 23 17:24:30 spanky smbd[17954]: nss_ldap: reconnecting to LDAP server...
Nov 23 17:24:30 spanky smbd[17954]: nss_ldap: reconnected to LDAP server af
ter 1 attempt(s)

ovvero a naso sembra quasi che openldap abbia smesso di funzionare per
cinque minuti. Ora tutto sembra perfetto.

Cose varie:

1) ho configurato samba e libnss* con:

	passdb backend = ldapsam:"ldap://localhost ldaps://ldap2.ps.lnf.it"
	uri ldap://localhost/ ldaps://ldap2.ps.lnf.it/

e la ricesione dei dati tramite SSL funziona, nel senso che un
semplice:

	ldapsearch -x -H ldaps://ldap2.ps.lnf.it/ -b dc=ps,dc=lnf,dc=it

mi spara tutto l'albero.

2) mi si è piantato il primary, ma è quello che non ha nulla a parte il
fatto di essere primary, e in quei 5 minuti comunque la gente non
riusciva ad entrare (nessun controller di dominio...), mentre mi
aspettavo (e mi aspetto) che tutto funzionasse senza problemi...

3) in entrambi (PDC e BDC) è in esecuzione nscd.

4) sul BDC non ho trovato nulla di strano dalle 17:19:24 alle
17:24:30...


Cosa può essere successo? In particolare, perchè il BDC non ha ``preso
possesso'' della rete?
[a naso... perchè non era morto, samba rispondeva ma si piantava che è
diverso dal non rispondere affatto... questo però non va tanto bene...]

Grazie.

-- 
dott. Marco Gaiarin				    GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  gaio(at)sv.lnf.it		tel +39-0434-842711    fax +39-0434-842797

			Grazie parlamento europeo!
		http://punto-informatico.it/p.asp?iS925&r=PI



More information about the samba-it mailing list