[Samba] "valid users" + ldap on Solaris 10 problems

Miki Monguilod mikim at salleURL.edu
Tue Jan 10 10:10:07 GMT 2006


Hi!

Yesterday we finally get the stack trace of Samba. Here you have:
Program received signal SIGSEGV, Segmentation fault.
0xfefd4f6c in _free_unlocked () from /lib//libc.so.1
(gdb) bt
#0  0xfefd4f6c in _free_unlocked () from /lib//libc.so.1
#1  0xfefd4f14 in free () from /lib//libc.so.1
#2  0xfed9fad0 in ldap_set_lderrno () from /usr/lib//libldap.so.5
#3  0xfedbc084 in ldap_create_virtuallist_control ()
   from /usr/lib//libldap.so.5
#4  0xfee0a8fc in setup_vlv_params () from /usr/lib//libsldap.so.1
#5  0xfee0b46c in search_state_machine () from /usr/lib//libsldap.so.1
#6  0xfee0c1fc in __ns_ldap_firstEntry () from /usr/lib//libsldap.so.1
#7  0xfee4ba3c in _nss_ldap_getent () from /usr/lib//nss_ldap.so.1
#8  0xfefdc0d8 in nss_getent_u () from /lib//libc.so.1
#9  0xfefdbc70 in nss_getent () from /lib//libc.so.1
#10 0xfefc7074 in getgrent_r () from /lib//libc.so.1
#11 0x002ef230 in get_users_in_group (gname=0x56bfa1 "referencial")
    at lib/util_getent.c:282
#12 0x002ed724 in user_in_unix_group_list (user=0xffbfc048 "csi",
    gname=0x56bfa1 "referencial") at lib/username.c:519
#13 0x002eda2c in user_in_group_list (user=0xffbfc048 "csi",
    gname=0x56bfa1 "referencial", groups=0x0, n_groups=<error type>)
    at lib/username.c:566
#14 0x002edd50 in user_in_list (user=0xffbfc048 "csi", list=0x508220,
    groups=0x0, n_groups=<error type>) at lib/username.c:607
#15 0x000675cc in user_ok (user=0xffbfc048 "csi", snum=128, groups=0x0,
    n_groups=<error type>) at smbd/password.c:397
---Type <return> to continue, or q <return> to quit---
#16 0x00067d8c in authorise_login (snum=128, user=0xffbfdf10 "", password=
      {data = 0x510238 "Q» §E©wdª\232\215\222xB5\220\221\200ÂÒ¯·Âv", 
length = <error type>, free = 0x3029b0 <free_data_blob>}, guest=0xffbfe0b0)
    at smbd/password.c:547
#17 0x001076a8 in make_connection_snum (snum=128, vuser=0x0, password=
      {data = 0x510238 "Q» §E©wdª\232\215\222xB5\220\221\200ÂÒ¯·Âv", 
length = <error type>, free = 0x3029b0 <free_data_blob>}, 
pdev=0xffbfe258 "",
    status=0xffbfe928) at smbd/service.c:336
#18 0x0010a348 in make_connection (service_in=0xffbfea40 "REFERENCIAL",
    password=
      {data = 0x510238 "Q» §E©wdª\232\215\222xB5\220\221\200ÂÒ¯·Âv", 
length = <error type>, free = 0x3029b0 <free_data_blob>}, 
pdev=0xffbfe930 "", vuid=0,
    status=0xffbfe928) at smbd/service.c:817
#19 0x00094a50 in reply_tcon_and_X (conn=0x0, inbuf=0x525dea "",
    outbuf=0x5461d4 "", length=220, bufsize=65475) at smbd/reply.c:662
#20 0x001039f8 in switch_message (type=117, inbuf=0x525dea "",
    outbuf=0x5461d4 "", size=220, bufsize=65475) at smbd/process.c:1071
#21 0x00104b00 in chain_reply (inbuf=0x525d48 "", outbuf=0x546198 "",
    size=280, bufsize=65535) at smbd/process.c:1338
#22 0x000b3db8 in reply_sesssetup_and_X (conn=0x0, inbuf=0x525d48 "",
    outbuf=0x546198 "", length=280, bufsize=65535) at smbd/sesssetup.c:1115
#23 0x001039f8 in switch_message (type=115, inbuf=0x525d48 "",
    outbuf=0x546198 "", size=280, bufsize=65535) at smbd/process.c:1071
---Type <return> to continue, or q <return> to quit---
#24 0x00103b04 in construct_reply (inbuf=0x525d48 "", outbuf=0x546198 "",
    size=280, bufsize=65535) at smbd/process.c:1101
#25 0x00104130 in process_smb (inbuf=0x525d48 "", outbuf=0x546198 "")
    at smbd/process.c:1201
#26 0x00105ed0 in smbd_process () at smbd/process.c:1753
#27 0x003e168c in main (argc=3, argv=0xffbffc6c) at smbd/server.c:974


As you can see, it crashes when it uses /usr/lib/libldap. But in fact, 
it should use /usr/local/lib/libldap ( you can see that we put " env 
LD_FLAGS="-L/usr/local/lib" " before the ./configure ).
In that case, the group name is called "REFERENCIAL"


Thanks!



Tom Crummey wrote:

> Hello Miki,
>
> Did you get a chance to compile with debugging symbols and get the 
> stack trace of the crash?
>
> Tom.
>
> ---------------------------------------------------------------------------- 
>
>  Tom Crummey, Systems and Network Manager,      EMAIL: tom at ee.ucl.ac.uk
>  Department of Electronic and Electrical Engineering,
>  University College London,                       TEL: +44 (0)20 7679 
> 3898
>  Torrington Place,                                FAX: +44 (0)20 7388 
> 9325
>  London, UK, WC1E 7JE.
> ---------------------------------------------------------------------------- 
>
>
> On Thu, 5 Jan 2006, Miki Monguilod wrote:
>
>> Hi Tom,
>>
>> In fact, I've compiled both without positive results. I first 
>> compiled the newest Samba version (3.0.21a) and it didn't fix the 
>> problem. After seeing the Gerald's mail and the bugzilla post, I've 
>> compiled Samba 3.0.20a too.
>> To sum up, I've tried with:
>>
>> Samba 3.0.14a
>> Samba 3.0.20a
>> Samba 3.0.20b
>> Samba 3.0.21
>> Samba 3.0.21a
>>
>> Do you want me to post this problem in  bugzilla.samba.org ?
>>
>> bye!
>>
>>
>> Tom Crummey wrote:
>>
>>> Hello Miki,
>>>
>>> Did you mean 3.0.21a?
>>>
>>> Tom.
>>>
>>>
>>> ---------------------------------------------------------------------------- 
>>>  Tom Crummey, Systems and Network Manager,      EMAIL: tom at ee.ucl.ac.uk
>>>  Department of Electronic and Electrical Engineering,
>>>  University College London,                       TEL: +44 (0)20 
>>> 7679 3898
>>>  Torrington Place,                                FAX: +44 (0)20 
>>> 7388 9325
>>>  London, UK, WC1E 7JE.
>>>
>>> ---------------------------------------------------------------------------- 
>>>
>>> On Wed, 4 Jan 2006, Miki Monguilod wrote:
>>>
>>>> Hi,
>>>>
>>>> I've compiled samba 3.0.20a version, but the problem still 
>>>> continues....
>>>> Otherwise, thanks for telling me.
>>>>
>>>> bye!
>>>>
>>>>
>>>>
>>>>
>>>> Gerald (Jerry) Carter wrote:
>>>>
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>> Hash: SHA1
>>>>>
>>>>> Miki Monguilod wrote:
>>>>>
>>>>>
>>>>>> zeus3:/var/log/samba# cat log.172.16.1.187
>>>>>> [2005/12/28 19:37:44, 0] lib/fault.c:fault_report(36)
>>>>>> ===============================================================
>>>>>> [2005/12/28 19:37:44, 0] lib/fault.c:fault_report(37)
>>>>>> INTERNAL ERROR: Signal 10 in pid 11375 (3.0.21)
>>>>>> Please read the Trouble-Shooting section of the Samba3-HOWTO
>>>>>> [2005/12/28 19:37:44, 0] lib/fault.c:fault_report(39)
>>>>>>
>>>>>> From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
>>>>>> [2005/12/28 19:37:44, 0] lib/fault.c:fault_report(40)
>>>>>> ===============================================================
>>>>>> [2005/12/28 19:37:44, 0] lib/util.c:smb_panic2(1554)
>>>>>> PANIC: internal error
>>>>>>
>>>>>
>>>>> Might be related to https://bugzilla.samba.org/show_bug.cgi?id=3346
>>>>>
>>>>> cheers, jerry
>>>>> -----BEGIN PGP SIGNATURE-----
>>>>> Version: GnuPG v1.4.2 (MingW32)
>>>>> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>>>>>
>>>>> iD8DBQFDu+h4IR7qMdg1EfYRAl4KAKDwEgdr3YBzvV/BySMJfDh7rfh5pwCfaMp5
>>>>> p6t3Ussk6RcQ1OU7PUpKojk=
>>>>> =1MbP
>>>>> -----END PGP SIGNATURE-----
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> -- 
>>>> ============================================================================== 
>>>> Utilitzeu el Servei Online d'Atencio a l'Usuari 
>>>> (http://www.salleURL.edu/csi)
>>>>
>>>>
>>>> ------------------------------------------------------------------------------ 
>>>> Nom: Miki                 Cognoms: Monguilod Serena
>>>> Centre de Serveis Informatics (CSI)        e-mail:mikim at salleURL.edu
>>>> Enginyeria i Arquitectura La Salle        PGP KeyID: 0xBBF686E1
>>>> Universitat Ramon Llull            Telefon: 93 290 24 00
>>>> Barcelona                Extensio: 209
>>>>
>>>> -- 
>>>> To unsubscribe from this list go to the following URL and read the
>>>> instructions:  https://lists.samba.org/mailman/listinfo/samba
>>>>
>>>
>>>
>>
>>
>> -- 
>> ============================================================================== 
>>
>> Utilitzeu el Servei Online d'Atencio a l'Usuari 
>> (http://www.salleURL.edu/csi)
>>
>> ------------------------------------------------------------------------------ 
>>
>> Nom: Miki                 Cognoms: Monguilod Serena
>> Centre de Serveis Informatics (CSI)        e-mail:mikim at salleURL.edu
>> Enginyeria i Arquitectura La Salle        PGP KeyID: 0xBBF686E1
>> Universitat Ramon Llull            Telefon: 93 290 24 00
>> Barcelona                Extensio: 209
>>
>
>


-- 
==============================================================================
 Utilitzeu el Servei Online d'Atencio a l'Usuari (http://www.salleURL.edu/csi)
 ------------------------------------------------------------------------------
  Nom: Miki 				Cognoms: Monguilod Serena
  Centre de Serveis Informatics (CSI)		e-mail:mikim at salleURL.edu
  Enginyeria i Arquitectura La Salle		PGP KeyID: 0xBBF686E1
  Universitat Ramon Llull			Telefon: 93 290 24 00
  Barcelona				Extensio: 209



More information about the samba mailing list