Bug 8675 - winbind core dump on solaris 10 when idmap backend is ldap
Summary: winbind core dump on solaris 10 when idmap backend is ldap
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 3.5.12
Hardware: x64 Solaris
: P5 normal
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-21 14:02 UTC by Dan
Modified: 2019-11-19 15:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan 2011-12-21 14:02:06 UTC
Samba version 3.5.12 build with gcc 3.4.3 under solaris 10 x86_64 / openldap-2.4.28 and MIT Kerberos 1.9.1.

OS:  Oracle Solaris 10 8/11 s10x_u10wos_17b X86
     SunOS  5.10 Generic_147441-08 i86pc i386 i86pc

Samba Build with:

./configure \
CPPFLAGS="-I/opt/openldap/include -I/opt/krb5/include" \
LDFLAGS="-L/opt/openldap/lib -R/opt/openldap/lib -L/opt/krb5/lib -R/opt/krb5/lib" \
--with-ads \
--with-aio-support \
--with-automount \
--with-dnsupdate \
--with-nisplus-home \
--with-pam \
--with-sendfile-support \
--with-utmp \
--with-winbind \
--enable-debug \
--without-pthreads \
--prefix=/opt/samba \
--exec-prefix=/opt/samba \
--bindir=/opt/samba/bin \
--sbindir=/opt/samba/sbin \
--libexecdir=/opt/samba/libexec \
--with-lockdir=/opt/samba/var/lib/samba \
--with-piddir=/opt/samba/var/run \
--with-mandir=/opt/samba/share/man \
--with-privatedir=/opt/samba/var/lib/samba/private \
--with-logfilebase=/opt/samba/log \
--libdir=/opt/samba/lib \
--with-modulesdir=/opt/samba/lib/samba \
--with-configdir=/opt/samba/etc/samba \
--with-pammodulesdir=/opt/samba/lib/security


Samba config file:

[global]
        workgroup = W2000
        realm = W2000.INTERNAL
        netbios aliases = sl-11
        security = ADS
        dedicated keytab file = /opt/krb5/etc/krb5/krb5.keytab
        kerberos method = system keytab
        load printers = No
        printcap name = /dev/null
        show add printer wizard = No
        ldap admin dn = cn=sambaadmin,ou=ldapusers,dc=samba,dc=idmap
        ldap idmap suffix = ou=idmaps
        ldap suffix = dc=samba,dc=idmap
        idmap backend = ldap:ldap://rhel-1.test.internal
        idmap uid = 1000000-1999999
        idmap gid = 1000000-1999999
        winbind enum users = Yes
        winbind use default domain = Yes
        winbind refresh tickets = Yes
        winbind normalize names = Yes
        create krb5 conf = No
        invalid users = root
        winbind separator = +


winbindd -i -d 10 dumps core imediate:

===============================================================
INTERNAL ERROR: Signal 11 in pid 11990 (3.5.12)
Please read the Trouble-Shooting section of the Samba3-HOWTO

From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
===============================================================
PANIC (pid 11990): internal error
unable to produce a stack trace on this platform
dumping core in /opt/samba/log/cores/winbindd
Abort (core dumped)


winbindd -i -d 9   looks ok until I run "id someADuser" or "getent passwd someADuser". wbinfo -u/g works, AD users/groups are listed.

accepted socket 20
[12011]: request interface version
[12011]: request location of privileged pipe
accepted socket 22
closing socket 20, client exited
getpwnam w-test1
get_cache: Setting ADS methods for domain W2000
smb_register_idmap_nss: Successfully added idmap nss backend 'template'
resolve_alias_to_username: backend query returned NT_STATUS_NOT_IMPLEMENTED
child daemon request 63
Finished processing child request 63
child daemon request 63
Finished processing child request 63
child daemon request 63
Finished processing child request 63
Deregistering messaging pointer for type 769 - private_data=0
Deregistering messaging pointer for type 13 - private_data=0
Deregistering messaging pointer for type 1028 - private_data=0
Deregistering messaging pointer for type 1027 - private_data=0
Deregistering messaging pointer for type 1029 - private_data=0
Deregistering messaging pointer for type 1280 - private_data=0
Deregistering messaging pointer for type 1033 - private_data=0
Deregistering messaging pointer for type 1 - private_data=0
child daemon request 63
Successfully added idmap alloc backend 'ldap'
Successfully added idmap backend 'ldap'
Successfully added idmap alloc backend 'tdb'
Successfully added idmap backend 'tdb'
Successfully added idmap backend 'passdb'
Successfully added idmap backend 'nss'
idmap_init: using 'ldap' as remote backend
===============================================================
INTERNAL ERROR: Signal 11 in pid 12012 (3.5.12)
Please read the Trouble-Shooting section of the Samba3-HOWTO

From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
===============================================================
PANIC (pid 12012): internal error
unable to produce a stack trace on this platform
dumping core in /opt/samba/log/cores/winbindd
Could not convert sid S-1-5-21-839522115-926492609-2146770499-1254: NT_STATUS_PIPE_BROKEN
closing socket 22, client exited



Reading core file with gdb:

GNU gdb (GDB) 7.3
This GDB was configured as "i386-pc-solaris2.10".
Reading symbols from /opt/samba/sbin/winbindd...done.
[New LWP 1]
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
Core was generated by `winbindd -i -d 9'.
Program terminated with signal 6, Aborted.
#0  0xfe8fc405 in _lwp_kill () from /lib/libc.so.1
(gdb)
(gdb)
(gdb)
(gdb) bt
#0  0xfe8fc405 in _lwp_kill () from /lib/libc.so.1
#1  0xfe8f7289 in thr_kill () from /lib/libc.so.1
#2  0xfe8a366f in raise () from /lib/libc.so.1
#3  0xfe882971 in abort () from /lib/libc.so.1
#4  0x081ae748 in dump_core () at lib/fault.c:337
#5  0x081c2107 in smb_panic (why=0x86d2390 "internal error") at lib/util.c:1484
#6  0x081adff1 in fault_report (sig=11) at lib/fault.c:52
#7  0x081ae002 in sig_fault (sig=11) at lib/fault.c:75
#8  0xfe8f8ecf in __sighndlr () from /lib/libc.so.1
#9  0xfe8eeb8f in call_user_handler () from /lib/libc.so.1
#10 <signal handler called>
#11 0xfe8763ec in strlen () from /lib/libc.so.1
#12 0xfe8d17a2 in _ndoprnt () from /lib/libc.so.1
#13 0xfe8d4963 in vsnprintf () from /lib/libc.so.1
#14 0xfe8d0d70 in vasprintf () from /lib/libc.so.1
#15 0xfe8d0e6c in asprintf () from /lib/libc.so.1
#16 0x0816c85c in get_parametrics (snum=-1, type=0x0,
    option=0x8825e51 "ldap_base_dn") at param/loadparm.c:5807
#17 0x0816cde9 in lp_parm_const_string (snum=-1, type=0x0,
    option=0x8825e51 "ldap_base_dn", def=0x0) at param/loadparm.c:5947
#18 0x08658326 in idmap_ldap_db_init (dom=0x88ad7b8,
    params=0x88ad760 "ldap://rhel-1.test.internal") at winbindd/idmap_ldap.c:861
#19 0x08652a30 in idmap_init_domain (mem_ctx=0x0, domainname=0x8824d76 "*",
    modulename=0x88ad700 "ldap", params=0x88ad760 "ldap://rhel-1.test.internal")
    at winbindd/idmap.c:318
#20 0x08652cb4 in idmap_init_default_domain (mem_ctx=0x0) at winbindd/idmap.c:361
#21 0x086530be in idmap_find_domain (domname=0x869edd4 "") at winbindd/idmap.c:481
#22 0x08653fc8 in idmap_backends_sid_to_unixid (domain=0x869edd4 "", id=0x8045f90)
    at winbindd/idmap.c:790
#23 0x08654e58 in idmap_sid_to_uid (dom_name=0x869edd4 "", sid=0x88ad310,
    uid=0x8045fe0) at winbindd/idmap_util.c:196
#24 0x080f8cba in _wbint_Sid2Uid (p=0x8046060, r=0x8865cd0)
    at winbindd/winbindd_dual_srv.c:76
#25 0x081008d6 in api_wbint_Sid2Uid (p=0x8046060) at librpc/gen_ndr/srv_wbint.c:312
#26 0x080f8a31 in winbindd_dual_ndrcmd (domain=0x0, state=0x8047900)
    at winbindd/winbindd_dual_ndr.c:271
#27 0x080f4c5c in child_process_request (child=0x885a580, state=0x8047900)
    at winbindd/winbindd_dual.c:486
#28 0x080f7f2d in fork_domain_child (child=0x885a580)
    at winbindd/winbindd_dual.c:1533
#29 0x080f3cfe in wb_child_request_trigger (req=0x88acdc8, private_data=0x0)
    at winbindd/winbindd_dual.c:137
#30 0x081d8fa7 in tevent_queue_immediate_trigger (ev=0x8861f48, im=0x88680d8,
    private_data=0x8868040) at ../lib/tevent/tevent_queue.c:144
#31 0x081d783d in tevent_common_loop_immediate (ev=0x8861f48)
    at ../lib/tevent/tevent_immediate.c:135
#32 0x081d5236 in run_events (ev=0x8861f48, selrtn=0, read_fds=0x0, write_fds=0x0)
    at lib/events.c:107
#33 0x081d56f9 in s3_event_loop_once (ev=0x8861f48,
    location=0x868fc25 "winbindd/winbindd.c:1273") at lib/events.c:201
#34 0x081d6682 in _tevent_loop_once (ev=0x8861f48,
    location=0x868fc25 "winbindd/winbindd.c:1273") at ../lib/tevent/tevent.c:497
#35 0x080cad3a in main (argc=4, argv=0x8047d48, envp=0x8047d5c)
    at winbindd/winbindd.c:1273
Comment 1 Björn Jacke 2019-11-19 15:08:11 UTC
this one is pretty old and since 3.5 also the build system changed completely in the meantime. I assume that this is not an issue any more, there may be different build issues though on Solaris. Please open a new bug report if you still see issues with the latest samba release and more up-to-date build tools.