Running net ads join causes segfault, any ideas on this? Any help is appreciated. This is a fresh install of Fedora Core 4. Thanks. Brant ==============================================================[root@vhATSjENV06 ~]# uname -a Linux vhATSjENV06 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux [root@vhATSjENV06 ~]# net --version Version 3.0.14a-2 [root@vhATSjENV06 ~]# kinit adm-kniggemyer Password for adm-kniggemyer@ATCCOL.DEV.COVANSYS.COM: [root@vhATSjENV06 ~]# klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: adm-kniggemyer@ATCCOL.DEV.COVANSYS.COM Valid starting Expires Service principal 07/20/05 15:32:58 07/21/05 01:33:13 krbtgt/ATCCOL.DEV.COVANSYS.COM@ATCCOL.DEV.COVANSYS.COM renew until 07/21/05 15:32:58 Kerberos 4 ticket cache: /tmp/tkt0 klist: You have no tickets cached [root@vhATSjENV06 ~]# net ads join -U adm-kniggemyer adm-kniggemyer's password: [2005/07/20 15:33:11, 0] libads/ldap.c:ads_add_machine_acct(1512) Warning: ads_set_machine_sd: Unexpected information received Using short domain name -- ATCCOL Joined 'VHATSJENV06' to realm 'ATCCOL.DEV.COVANSYS.COM' *** glibc detected *** net: free(): invalid pointer: 0x002ca7f0 *** ======= Backtrace: ========/lib/libc.so.6[0x32e424] /lib/libc.so.6(__libc_free+0x77)[0x32e95f] /lib/libcom_err.so.2(remove_error_table+0x4b)[0x114abb] /usr/lib/libkrb5.so.3[0x268823] /usr/lib/libkrb5.so.3[0x2685c7] /usr/lib/libkrb5.so.3[0x2b93ba] /lib/ld-linux.so.2[0x24b058] /lib/libc.so.6(exit+0xc5)[0x2f5c69] /lib/libc.so.6(__libc_start_main+0xce)[0x2dfdee] net[0x7490f1] ======= Memory map: =======00111000-00113000 r-xp 00000000 fd:00 123249841 /usr/lib/libkrb5support.so.0.0 00113000-00114000 rwxp 00001000 fd:00 123249841 /usr/lib/libkrb5support.so.0.0 00114000-00116000 r-xp 00000000 fd:00 16875625 /lib/libcom_err.so.2.1 00116000-00117000 rwxp 00001000 fd:00 16875625 /lib/libcom_err.so.2.1 00117000-0014b000 r-xp 00000000 fd:00 123250636 /usr/lib/libldap-2.2.so.7.0.16 0014b000-0014d000 rwxp 00033000 fd:00 123250636 /usr/lib/libldap-2.2.so.7.0.16 0014d000-0014f000 r-xp 00000000 fd:00 123245182 /usr/lib/gconv/IBM850.so 0014f000-00151000 rwxp 00001000 fd:00 123245182 /usr/lib/gconv/IBM850.so 00151000-0015a000 r-xp 00000000 fd:00 16875573 /lib/libnss_files-2.3.5.so 0015a000-0015b000 r-xp 00008000 fd:00 16875573 /lib/libnss_files-2.3.5.so 0015b000-0015c000 rwxp 00009000 fd:00 16875573 /lib/libnss_files-2.3.5.so 0015e000-00170000 r-xp 00000000 fd:00 16875557 /lib/libnsl-2.3.5.so 00170000-00171000 r-xp 00011000 fd:00 16875557 /lib/libnsl-2.3.5.so 00171000-00172000 rwxp 00012000 fd:00 16875557 /lib/libnsl-2.3.5.so 00172000-00174000 rwxp 00172000 00:00 0 00174000-00178000 r-xp 00000000 fd:00 16875570 /lib/libnss_dns-2.3.5.so 00178000-00179000 r-xp 00003000 fd:00 16875570 /lib/libnss_dns-2.3.5.so 00179000-0017a000 rwxp 00004000 fd:00 16875570 /lib/libnss_dns-2.3.5.so 0017a000-00183000 r-xp 00000000 fd:00 16875522 /lib/libgcc_s-4.0.0-20050520.so.1 00183000-00184000 rwxp 00009000 fd:00 16875522 /lib/libgcc_s-4.0.0-20050520.so.1 001a0000-001b5000 r-xp 00000000 fd:00 123250440 /usr/lib/libsasl2.so.2.0.20 001b5000-001b6000 rwxp 00015000 fd:00 123250440 /usr/lib/libsasl2.so.2.0.20 001c2000-001d8000 r-xp 00000000 fd:00 123249825 /usr/lib/libgssapi_krb5.so.2.2 001d8000-001d9000 rwxp 00016000 fd:00 123249825 /usr/lib/libgssapi_krb5.so.2.2 0023d000-00257000 r-xp 00000000 fd:00 16875538 /lib/ld-2.3.5.so 00257000-00258000 r-xp 00019000 fd:00 16875538 /lib/ld-2.3.5.so 00258000-00259000 rwxp 0001a000 fd:00 16875538 /lib/ld-2.3.5.so 00259000-002c8000 r-xp 00000000 fd:00 123249839 /usr/lib/libkrb5.so.3.2 002c8000-002cb000 rwxp 0006e000 fd:00 123249839 /usr/lib/libkrb5.so.3.2 002cb000-003ef000 r-xp 00000000 fd:00 16875547 /lib/libc-2.3.5.so 003ef000-003f1000 r-xp 00124000 fd:00 16875547 /lib/libc-2.3.5.so 003f1000-003f3000 rwxp 00126000 fd:00 16875547 /lib/libc-2.3.5.so 003f3000-003f5000 rwxp 003f3000 00:00 0 003f5000-004ed000 r-xp 00000000 fd:00 16875650 /lib/libcrypto.so.0.9.7f 004ed000-004ff000 rwxp 000f8000 fd:00 16875650 /lib/libcrypto.so.0.9.7f 004ff000-00502000 rwxp 004ff000 00:00 0 006d6000-006f9000 r-xp 00000000 fd:00 123249829 /usr/lib/libk5crypto.so.3.0 006f9000-006fa000 rwxp 00023000 fd:00 123249829 /usr/lib/libk5crypto.so.3.0 0071c000-008e0000 r-xp 00000000 fd:00 123255527 /usr/bin/net 008e0000-008f1000 rwxp 001c4000 fd:00 123255527 /usr/bin/net 008f1000-00903000 rwxp 008f1000 00:00 0 00941000-00943000 r-xp 00000000 fd:00 16875553 /lib/libdl-2.3.5.so 00943000-00944000 r-xp 00001000 fd:00 16875553 /lib/libdl-2.3.5.so 00944000-00945000 rwxp 00002000 fd:00 16875553 /lib/libdl-2.3.5.so 009c1000-009f6000 r-xp 00000000 fd:00 16875651 /lib/libssl.so.0.9.7f 009f6000-009f9000 rwxp 00035000 fd:00 16875651 /lib/libssl.so.0.9.7f 00acd000-00ad4000 r-xp 00000000 fd:00 123249304 /usr/lib/libpopt.so.0.0.0 00ad4000-00ad5000 rwxp 00006000 fd:00 123249304 /usr/lib/libpopt.so.0.0.0 00b21000-00b2e000 r-xp 00000000 fd:00 123250634 /usr/lib/liblber-2.2.so.7.0.16 00b2e000-00b2f000 rwxp 0000c000 fd:00 123250634 /usr/lib/liblber-2.2.so.7.0.16 00d11000-00d16000 r-xp 00000000 fd:00 16875551 /lib/libcrypt-2.3.5.so 00d16000-00d17000 r-xp 00004000 fd:00 16875551 /lib/libcrypt-2.3.5.so 00d17000-00d18000 rwxp 00005000 fd:00 16875551 /lib/libcrypt-2.3.5.so 00d18000-00d3f000 rwxp 00d18000 00:00 0 00e07000-00e09000 r-xp 00000000 fd:00 123245275 /usr/lib/gconv/UTF-16.so 00e09000-00e0b000 rwxp 00001000 fd:00 123245275 /usr/lib/gconv/UTF-16.so 00e78000-00e8a000 r-xp 00000000 fd:00 123249465 /usr/lib/libz.so.1.2.2.2 00e8a000-00e8b000 rwxp 00011000 fd:00 123249465 /usr/lib/libz.so.1.2.2.2 00f0e000-00f1d000 r-xp 00000000 fd:00 16875585 /lib/libresolv-2.3.5.so 00f1d000-00f1e000 r-xp 0000e000 fd:00 16875585 /lib/libresolv-2.3.5.so 00f1e000-00f1f000 rwxp 0000f000 fd:00 16875585 /lib/libresolv-2.3.5.so 00f1f000-00f21000 rwxp 00f1f000 00:00 0 00fdb000-00fdc000 r-xp 00fdb000 00:00 0 08c1a000-08cbf000 rw-p 08c1a000 00:00 0 [heap] b7c00000-b7c21000 rw-p b7c00000 00:00 0 b7c21000-b7d00000 ---p b7c21000 00:00 0 b7d74000-b7d75000 rw-p b7d74000 00:00 0 b7d75000-b7d77000 rw-s 00000000 fd:00 10815369 /var/cache/samba/gencache.tdb b7d77000-b7d79000 rw-s 00000000 fd:00 60394118 /etc/samba/secrets.tdb b7d79000-b7d89000 r--s 00000000 fd:00 123442579 /usr/lib/samba/valid.dat b7d89000-b7da9000 r--s 00000000 fd:00 123442577 /usr/lib/samba/lowcase.dat b7da9000-b7dc9000 r--s 00000000 fd:00 123442578 /usr/lib/samba/upcase.dat b7dc9000-b7dcf000 r--s 00000000 fd:00 123245306 /usr/lib/gconv/gconv-modules.cache b7dcf000-b7fcf000 r--p 00000000 fd:00 123245085 /usr/lib/locale/locale-archive b7fcf000-b7fd4000 rw-p b7fcf000 00:00 0 bfbd1000-bfbe7000 rw-p bfbd1000 00:00 0 [stack] Aborted [root@vhATSjENV06 ~]# Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NIGGEMYER Brant wrote: | Running net ads join causes segfault, any ideas | on this? Any help is appreciated. This is a fresh | install of Fedora Core 4. This looks like a bug in the kerberos libs. I've reproruced it and Valgrind reports: $ valgrind --tool=memcheck --leak-check=yes \ net ads join -U Administrator ==26396== Invalid free() / delete / delete[] ==26396== at 0x1B909743: free (vg_replace_malloc.c:152) ==26396== by 0x3DAABA: remove_error_table (in /lib/libcom_err.so.2.1) ==26396== by 0x4D98C3: (within /usr/lib/libkrb5.so.3.2) ==26396== by 0x4D95C6: (within /usr/lib/libkrb5.so.3.2) ==26396== by 0x52A9D9: (within /usr/lib/libkrb5.so.3.2) ==26396== by 0x1B8F2057: _dl_fini (in /lib/ld-2.3.5.so) ==26396== by 0x238C68: exit (in /lib/libc-2.3.5.so) ==26396== by 0x222DED: __libc_start_main (in /lib/libc-2.3.5.so) ==26396== by 0x2FD44: (within /usr/local/samba/bin/net) ==26396== Address 0x53BDB0 is not stack'd, malloc'd or (recently) free'd Jay, any possibility of getting this fixed in FC4 ? cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5ON9IR7qMdg1EfYRAr2IAJ9RXVz3wkudIHUeGULBrf3hn89DPwCdHx0J wx4jXB2/JPHlew2GJPlbNZo=9OB0 -----END PGP SIGNATURE-----
FYI updated kerberos libs from krb5-libs-1.4-3 to krb5-libs-1.4-5; problem still existed. Thanks. Brant -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: Monday, July 25, 2005 9:05 AM To: NIGGEMYER Brant; fenlason@redhat.com Cc: samba@lists.samba.org Subject: Re: [Samba] Seg from net ads join -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NIGGEMYER Brant wrote: | Running net ads join causes segfault, any ideas on this? Any help is | appreciated. This is a fresh install of Fedora Core 4. This looks like a bug in the kerberos libs. I've reproruced it and Valgrind reports: $ valgrind --tool=memcheck --leak-check=yes \ net ads join -U Administrator ==26396== Invalid free() / delete / delete[] ==26396== at 0x1B909743: free (vg_replace_malloc.c:152) ==26396== by 0x3DAABA: remove_error_table (in /lib/libcom_err.so.2.1) ==26396== by 0x4D98C3: (within /usr/lib/libkrb5.so.3.2) ==26396== by 0x4D95C6: (within /usr/lib/libkrb5.so.3.2) ==26396== by 0x52A9D9: (within /usr/lib/libkrb5.so.3.2) ==26396== by 0x1B8F2057: _dl_fini (in /lib/ld-2.3.5.so) ==26396== by 0x238C68: exit (in /lib/libc-2.3.5.so) ==26396== by 0x222DED: __libc_start_main (in /lib/libc-2.3.5.so) ==26396== by 0x2FD44: (within /usr/local/samba/bin/net) ==26396== Address 0x53BDB0 is not stack'd, malloc'd or (recently) free'd Jay, any possibility of getting this fixed in FC4 ? Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email.