Lars Maes
2016-Jun-06 14:42 UTC
[Samba] Segfault when trying to generate keytab with samba 4.2.10
Hi All, Whe tryin to use: net ads keytab create, I get the following segfault: Program received signal SIGSEGV, Segmentation fault. 0x00007fffef9d3f69 in free_PrincipalName () from /usr/lib/x86_64-linux-gnu/samba/libasn1-samba4.so.8 I am using samba 4.2.10 from Debian. Deb8u3 package Anyone knows how to fix this?
Jeremy Allison
2016-Jun-06 16:59 UTC
[Samba] Segfault when trying to generate keytab with samba 4.2.10
On Mon, Jun 06, 2016 at 02:42:35PM +0000, Lars Maes wrote:> Hi All, > > Whe tryin to use: net ads keytab create, I get the following segfault: > > Program received signal SIGSEGV, Segmentation fault. > 0x00007fffef9d3f69 in free_PrincipalName () from /usr/lib/x86_64-linux-gnu/samba/libasn1-samba4.so.8 > > I am using samba 4.2.10 from Debian. > > Deb8u3 package > > Anyone knows how to fix this?Can you run this under gdb and get a full backtrace please (with symbols).
Lars Maes
2016-Jun-07 06:59 UTC
[Samba] Segfault when trying to generate keytab with samba 4.2.10
Of course i can! Hereby the backtrace with symbols: Program received signal SIGSEGV, Segmentation fault. free_PrincipalName (data=data at entry=0x45) at default/source4/heimdal/lib/asn1/asn1_krb5_asn1.c:961 961 default/source4/heimdal/lib/asn1/asn1_krb5_asn1.c: No such file or directory. (gdb) bt #0 free_PrincipalName (data=data at entry=0x45) at default/source4/heimdal/lib/asn1/asn1_krb5_asn1.c:961 #1 0x00007fffef9d4639 in free_Principal (data=data at entry=0x45) at default/source4/heimdal/lib/asn1/asn1_krb5_asn1.c:1123 #2 0x00007ffff7991fb1 in krb5_free_principal (context=context at entry=0x0, p=0x45) at ../source4/heimdal/lib/krb5/principal.c:84 #3 0x00007ffff79856c4 in krb5_kt_free_entry (context=0x0, entry=entry at entry=0x7fffffffdb70) at ../source4/heimdal/lib/krb5/keytab.c:709 #4 0x00007ffff3cc08e5 in smb_krb5_kt_free_entry (context=<optimized out>, kt_entry=kt_entry at entry=0x7fffffffdb70) at ../lib/krb5_wrap/krb5_samba.c:1247 #5 0x00007ffff6384c6d in ads_keytab_create_default (ads=<optimized out>) at ../source3/libads/kerberos_keytab.c:750 #6 0x0000555555596190 in net_ads_keytab_create (c=0x55555584e5b0, argc=<optimized out>, argv=<optimized out>) at ../source3/utils/net_ads.c:2507 #7 0x00005555555921d9 in net_ads_keytab (c=0x55555584e5b0, argc=1, argv=0x55555584ecd8) at ../source3/utils/net_ads.c:2576 #8 0x0000555555598ea4 in net_ads (c=<optimized out>, argc=<optimized out>, argv=<optimized out>) at ../source3/utils/net_ads.c:3329 #9 0x000055555557885a in main (argc=5, argv=0x7fffffffebb8) at ../source3/utils/net.c:961> Hi All, > > Whe tryin to use: net ads keytab create, I get the following segfault: > > Program received signal SIGSEGV, Segmentation fault. > 0x00007fffef9d3f69 in free_PrincipalName () from /usr/lib/x86_64-linux-gnu/samba/libasn1-samba4.so.8 > > I am using samba 4.2.10 from Debian. > > Deb8u3 package > > Anyone knows how to fix this?Can you run this under gdb and get a full backtrace please (with symbols).
Lars Maes
2016-Jun-07 09:37 UTC
[Samba] Segfault when trying to generate keytab with samba 4.2.10
Seems that authentication with winbind also doesnt work anymore. This raises my urgency on this bug...
Lars Maes
2016-Jun-07 09:44 UTC
[Samba] Segfault when trying to generate keytab with samba 4.2.10
Just downgraded to the 4.1.17 version (that i know was working). I got the same segfault... Then i left the AD and rejoined, no more segfault... I am going to try this with the 4.2.10 deb3 version..
Lars Maes
2016-Jun-07 09:53 UTC
[Samba] Segfault when trying to generate keytab with samba 4.2.10
Rejoining the domain works! Also with the newest debian version.
Rowland penny
2016-Jun-07 10:13 UTC
[Samba] Segfault when trying to generate keytab with samba 4.2.10
On 06/06/16 15:42, Lars Maes wrote:> Hi All, > > Whe tryin to use: net ads keytab create, I get the following segfault: > > Program received signal SIGSEGV, Segmentation fault. > 0x00007fffef9d3f69 in free_PrincipalName () from /usr/lib/x86_64-linux-gnu/samba/libasn1-samba4.so.8 > > I am using samba 4.2.10 from Debian. > > Deb8u3 package > > Anyone knows how to fix this?Can you post your smb.conf and the exact command you are running, also why you are trying to create the keytab. Rowland