How interesting - just today while setting up my lab systems again- I had kdb5_util create dump core on me. It only happened the first time I ran kdb5_util - subsequent runnings worked....
kodis# /usr/sbin/kdb5_util create -s Initializing database '/var/krb5/principal' for realm 'VINALHAVEN.COM', master key name 'K/M at VINALHAVEN.COM' You will be prompted for the database Master Password. It is important that you NOT FORGET this password. Enter KDC database master key: Re-enter KDC database master key to verify: zsh: segmentation fault (core dumped) /usr/sbin/kdb5_util create -s kodis# pstack core core 'core' of 709: /usr/sbin/kdb5_util create -s ff0b1d50 strlen (fee8716e, ffbff398, ffbfec01, 0, 0, 0) + 50 ff11c6a8 sprintf (ffbff7a8, 7fffffff, 7ffffc00, 180, 0, 149c0) + 40 fee84244 krb5_db2_db_create (306c8, 2f838, 12345800, fef82a00, 0, 2) + 188 fee85524 krb5_db2_create (306c8, 30020, 0, fef82a00, 11, 2f838) + 2a4 fee82820 wrap_krb5_db2_create (306c8, 30020, 0, ff3b849c, 1581c, 0) + 44 ff358d48 krb5_db_create (306c8, 0, fee827dc, 7344, 2e008, 321b0) + 94 00014440 kdb5_create (0, 2fcd8, 0, ffbffd44, 31c28, 2e720) + 440 000133ec main (1b000, 2f400, 0, 2f4a4, 2, 2fcd8) + 6a8 00012aa0 _start (0, 0, 0, 0, 0, 0) + 108 This problem was due to the fact that I blew away /var/krb5 directory, so it failed trying to access /var/krb5/principal (per truss). I opened bug 6720879 to track this issue. Will Fiveash wrote: > I searched through our bug DB and didn't see anything that looked like > the likely culprit. I suggest you contact your Sun support person and > start the support process here. For sure this core dump should not > occur. > > On Wed, Jun 11, 2008 at 10:24:51AM +0200, Gunnarsson, Gunnar wrote: > >> Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220 >> >> # pstack core >> core 'core' of 2122: kdb5_util create >> fef56dd8 meta_handle2object (6, ffbff5d0, 0, 1f24c, fef5a2a8, fef76000) + 40 >> fef55e2c meta_DestroyObject (32888, 6, fef76b84, ecf00001, ecf00001, 0) + 24 >> fef606c0 ???????? (fef76bb8, 6, 2d8d0, 159f8, 0, fef76bb0) >> ff2a6da4 krb5int_pbkdf2_hmac_sha1 (327f0, ffbff758, 2ca2c, 14, ffbff858, >> 96c73afa) + 228 >> ff2abfd4 krb5int_aes_string_to_key (327f0, ff31cff8, ffbff854, ffbff864, 0, >> ffbff838) + ec >> ff2a64a0 krb5_c_string_to_key_with_params (327f0, 20, ffbff854, ffbff864, >> 0, ffbff838) + 100 >> ff3456cc add_key_pwd (327f0, 0, 32be0, 6, 2ca2c, ffbff980) + 21c >> ff345828 krb5_dbe_cpw (327f0, 327c8, 32be0, 6, 2ca2c, 1) + 54 >> ff37b618 kadm5_create_principal_3 (6, ffbffa24, 31, 32be0, 0, 2ca2c) + 4d0 >> 000149ac add_admin_princ (32740, 32588, 2eb28, 4, 2a30, 0) + 54 >> 00014b40 add_admin_old_princ (32740, 32588, 2c9f8, 2c800, 4, 2a30) + 60 >> 000148d8 add_admin_princs (32740, 32588, 2e0b0, ffbffc00, 329a8, 2800) + 24 >> 00014850 kadm5_create_magic_princs (ffbffc00, 32588, 2c800, 12345400, >> 2d400, 0) + 68 >> 000147b0 kadm5_create (2d490, 0, 0, 2c800, 0, 2c800) + b0 >> 00014398 kdb5_create (0, 2e420, 0, ffbffcdc, 308d0, 2c710) + 6f4 >> 00013230 main (1a400, 2d400, 2c728, 1, 2e420, 2d51c) + 5dc >> 00012bb4 _start (0, 0, 0, 0, 0, 0) + 108 >> >> -- Gunnar >> >> -----Ursprungligt meddelande----- >> Fr?n: Mark.Phalan at Sun.COM [mailto:Mark.Phalan at Sun.COM] F?r Mark Phalan >> Skickat: den 10 juni 2008 16:37 >> Till: Gunnarsson, Gunnar >> Kopia: kerberos-discuss at opensolaris.org >> ?mne: Re: [kerberos-discuss] kdb5_utril create - core dumps in a >> non-globalzone >> >> >> On Tue, 2008-06-10 at 06:32 -0700, Gunnar Gunnarsson wrote: >> >>> Solaris release 10 8/07 >>> Works in the global zones but not in a non-global zone: >>> >>> # kdb5_util create >>> Initializing database '/var/krb5/principal' for realm 'XXXXX', master >>> key name 'K/M at XXXXX' >>> You will be prompted for the database Master Password. >>> It is important that you NOT FORGET this password. >>> Enter KDC database master key: >>> Re-enter KDC database master key to verify: >>> Bus Error (core dumped) >>> >>> Config files are okay. >>> >> It works fine for me on x86 (testing sparc as I write this). What >> architecture? Can you post a stack of the core? >> >> -Mark >> >> >> _______________________________________________ >> kerberos-discuss mailing list >> kerberos-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/kerberos-discuss >> > >