[Samba] Smbd dumps core while starting

Dish dishkyaao at gmail.com
Tue Jan 13 01:49:45 MST 2015

Getting coredump for net join as well. Kinit to the user works on the server.
# ./net ads join -U ab44543
Enter ab44543's password:
Illegal instruction(coredump)
# gdb -dbx /opt/samba/bin/net core
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc64-ibm-aix6.1.2.0".
For bug reporting instructions, please see:
Reading symbols from /opt/samba/bin/net...done.
warning: core file may not match specified executable file.
Core was generated by `net'.
Program terminated with signal 4, Illegal instruction.
#0  0x0000000000000000 in ?? ()
(gdb) where
#0  0x0000000000000000 in ?? ()
#1  0x0900000005f6ff2c in tdb_open_log (name=0x11002e7f0 "/var/opt/samba/cache/gencache.tdb", hash_size=0, tdb_flags=2048, open_flags=258, mode=420)
    at ../source3/lib/util_tdb.c:327
#2  0x0900000006435fd4 in gencache_init () at ../source3/lib/gencache.c:69
#3  0x0900000006436780 in gencache_parse (keystr=0x11002e750 "AD_SITENAME/DOMAIN/NAMDEV.NSROOTDEV.NET",
    parser=@0x9001000a0d14608: 0x9000000064378c0 <gencache_get_data_blob_parser>, private_data=0xfffffffffffe630) at ../source3/lib/gencache.c:455
#4  0x0900000006436f4c in gencache_get_data_blob (keystr=0x11002e750 "AD_SITENAME/DOMAIN/NAMDEV.NSROOTDEV.NET", blob=0xfffffffffffe6d0, timeout=0xfffffffffffe778,
    was_expired=0x0) at ../source3/lib/gencache.c:523
#5  0x09000000064371d4 in gencache_get (keystr=0x11002e750 "AD_SITENAME/DOMAIN/NAMDEV.NSROOTDEV.NET", value=0xfffffffffffe770, ptimeout=0xfffffffffffe778)
    at ../source3/lib/gencache.c:708
#6  0x0900000007037478 in sitename_fetch (realm=0x11002e710 "NAMDEV.NSROOTDEV.NET") at ../source3/libads/sitename_cache.c:98
#7  0x0900000006f2b364 in dsgetdcname (mem_ctx=0x110028550, msg_ctx=0x1100279d0, domain_name=0x11002e710 "NAMDEV.NSROOTDEV.NET", domain_guid=0x0, site_name=0x0,
    flags=1073745937, info=0xfffffffffffe8e8) at ../source3/libsmb/dsgetdcname.c:1187
#8  0x090000000620812c in libnet_DomainJoin (mem_ctx=0x110028550, r=0x11002e550) at ../source3/libnet/libnet_join.c:2018
#9  0x09000000062086a4 in libnet_Join (mem_ctx=0x110028550, r=0x11002e550) at ../source3/libnet/libnet_join.c:2164
#10 0x0000000100029038 in net_ads_join (c=0x11001f6f0, argc=0, argv=0x1100205a8) at ../source3/utils/net_ads.c:1533
#11 0x0000000100017dcc in net_run_function (c=0x11001f6f0, argc=1, argv=0x1100205a0, whoami=0x1000b80ac "net ads", table=0xfffffffffffec60) at ../source3/utils/net_util.c:521
#12 0x0000000100029d58 in net_ads (c=0x11001f6f0, argc=1, argv=0x1100205a0) at ../source3/utils/net_ads.c:2890
#13 0x0000000100017dcc in net_run_function (c=0x11001f6f0, argc=2, argv=0x110020598, whoami=0x1000a7f44 "net", table=0x110000c90) at ../source3/utils/net_util.c:521
#14 0x00000001000014c0 in main (argc=5, argv=0xffffffffffffa98) at ../source3/utils/net.c:960
# /usr/krb5/bin/kinit  ab44543 at NAMDEV.NSROOTDEV.NET
Password for ab44543 at NAMDEV.NSROOTDEV.NET: 
[Dev root @ saixr312  /opt/samba/bin]
# /usr/krb5/bin/klist
Ticket cache:  FILE:/var/krb5/security/creds/krb5cc_0
Default principal:  ab44543 at NAMDEV.NSROOTDEV.NET
Valid starting     Expires            Service principal
01/13/15 16:38:00  01/14/15 02:38:11  krbtgt/NAMDEV.NSROOTDEV.NET at NAMDEV.NSROOTDEV.NET
        Renew until 01/14/15 16:38:00
[Dev root @ saixr312  /opt/samba/bin]

More information about the samba mailing list