Bug 6801 - net export keytabs fails with a double free error
net export keytabs fails with a double free error
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB
unspecified
Other Linux
: P3 normal
: ---
Assigned To: Andrew Bartlett
samba4-qa@samba.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-11 06:37 UTC by Matthieu Patou
Modified: 2009-10-13 10:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Patou 2009-10-11 06:37:19 UTC
With samba4 based on 622bffce4723353964bf0dc7bbf60235e417caa6

/usr/local/samba/bin/net -s ~/work/samba/homematwsnet_current/etc/smb.conf  export keytab t
talloc: double free error - first free may be at kdc/hdb-samba4.c:1445
Bad talloc magic value - double free
PANIC: Bad talloc magic value - double free
BACKTRACE: 20 stack frames:
 #0 /usr/local/samba/bin/net(call_backtrace+0x2b) [0x86dd813]
 #1 /usr/local/samba/bin/net(smb_panic+0x2d4) [0x86ddbd3]
 #2 /usr/local/samba/bin/net [0x86f7773]
 #3 /usr/local/samba/bin/net [0x86f781c]
 #4 /usr/local/samba/bin/net [0x86f792a]
 #5 /usr/local/samba/bin/net(_talloc_free+0x37) [0x86f8ecd]
 #6 /usr/local/samba/bin/net [0x80f590c]
 #7 /usr/local/samba/bin/net(hdb_free_entry+0x31) [0x80f960f]
 #8 /usr/local/samba/bin/net [0x80fb481]
 #9 /usr/local/samba/bin/net(krb5_kt_end_seq_get+0x67) [0x85dbda5]
 #10 /usr/local/samba/bin/net(kt_copy+0x421) [0x8222924]
 #11 /usr/local/samba/bin/net(libnet_export_keytab+0x155) [0x80f5625]
 #12 /usr/local/samba/bin/net [0x80d1df8]
 #13 /usr/local/samba/bin/net(net_run_function+0xc5) [0x80cff29]
 #14 /usr/local/samba/bin/net(net_export+0x6a) [0x80d1f11]
 #15 /usr/local/samba/bin/net(net_run_function+0xc5) [0x80cff29]
 #16 /usr/local/samba/bin/net [0x80d0414]
 #17 /usr/local/samba/bin/net(main+0x22) [0x80d04ca]
 #18 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7a89775]
 #19 /usr/local/samba/bin/net [0x80cfdd1]
Comment 1 Matthias Dieter Wallnöfer 2009-10-13 10:40:15 UTC
Should be fixed by a recent checkin of mine.