LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2005, 04:45 PM   #1
saylestock
Member
 
Registered: Apr 2004
Location: Virginia
Distribution: Fedora
Posts: 30

Rep: Reputation: 15
FC4 Samba and ADS problems


I have duplicated this error several times on multiple computers. I am using FC4 and trying to get Samba going using ADS security. I have successfuly done this several times using FC1 and FC2...untill Windows Server 2003 SP1! Thanks Microsoft. I have modified all the appropriate files previously done in FC1 and FC2. When I type the command "net ads join -U administrator" I get the following error message...


Using short domain name -- workgroup
Joined 'FEDORA4' to realm 'DOMAIN.COM'
*** glibc detected *** net: free(): invalid pointer: 0x001c8db0 *** ======= Backtrace: ========= /lib/libc.so.6[0x2a8424] /lib/libc.so.6(__libc_free+0x77)[0x2a895f]
/lib/libcom_err.so.2(remove_error_table+0x4b)[0x1c9abb]
/usr/lib/libkrb5.so.3[0x1668c4]
/usr/lib/libkrb5.so.3[0x1665c7]
/usr/lib/libkrb5.so.3[0x1b79da]
/lib/ld-linux.so.2[0xb29058]
/lib/libc.so.6(exit+0xc5)[0x26fc69]
/lib/libc.so.6(__libc_start_main+0xce)[0x259dee]
net[0x4b7ca1]
======= Memory map: ========
00111000-00116000 r-xp 00000000 fd:00 590922 /lib/libcrypt-2.3.5.so
00116000-00117000 r-xp 00004000 fd:00 590922 /lib/libcrypt-2.3.5.so
00117000-00118000 rwxp 00005000 fd:00 590922 /lib/libcrypt-2.3.5.so
00118000-0013f000 rwxp 00118000 00:00 0
0013f000-00156000 r-xp 00000000 fd:00 7809706 /usr/lib/libgssapi_krb5.so.2.2
00156000-00157000 rwxp 00017000 fd:00 7809706 /usr/lib/libgssapi_krb5.so.2.2
00157000-001c6000 r-xp 00000000 fd:00 7809705 /usr/lib/libkrb5.so.3.2
001c6000-001c9000 rwxp 0006e000 fd:00 7809705 /usr/lib/libkrb5.so.3.2
001c9000-001cb000 r-xp 00000000 fd:00 590918 /lib/libcom_err.so.2.1
001cb000-001cc000 rwxp 00001000 fd:00 590918 /lib/libcom_err.so.2.1
001cc000-00200000 r-xp 00000000 fd:00 7810827 /usr/lib/libldap-2.2.so.7.0.16
00200000-00202000 rwxp 00033000 fd:00 7810827 /usr/lib/libldap-2.2.so.7.0.16
00202000-0020f000 r-xp 00000000 fd:00 14254945 /usr/lib/liblber-2.2.so.7.0.16
0020f000-00210000 rwxp 0000c000 fd:00 14254945 /usr/lib/liblber-2.2.so.7.0.16
00210000-00222000 r-xp 00000000 fd:00 7807756 /usr/lib/libz.so.1.2.2.2
00222000-00223000 rwxp 00011000 fd:00 7807756 /usr/lib/libz.so.1.2.2.2
00223000-00225000 r-xp 00000000 fd:00 7864595 /usr/lib/gconv/UTF-16.so
00225000-00227000 rwxp 00001000 fd:00 7864595 /usr/lib/gconv/UTF-16.so
00227000-00229000 r-xp 00000000 fd:00 7864502 /usr/lib/gconv/IBM850.so
00229000-0022b000 rwxp 00001000 fd:00 7864502 /usr/lib/gconv/IBM850.so
00232000-00241000 r-xp 00000000 fd:00 590915 /lib/libresolv-2.3.5.so
00241000-00242000 r-xp 0000e000 fd:00 590915 /lib/libresolv-2.3.5.so
00242000-00243000 rwxp 0000f000 fd:00 590915 /lib/libresolv-2.3.5.so
00243000-00245000 rwxp 00243000 00:00 0
00245000-00369000 r-xp 00000000 fd:00 590910 /lib/libc-2.3.5.so
00369000-0036b000 r-xp 00124000 fd:00 590910 /lib/libc-2.3.5.so
0036b000-0036d000 rwxp 00126000 fd:00 590910 /lib/libc-2.3.5.so
0036d000-0036f000 rwxp 0036d000 00:00 0
0036f000-003a4000 r-xp 00000000 fd:00 589953 /lib/libssl.so.0.9.7f
003a4000-003a7000 rwxp 00035000 fd:00 589953 /lib/libssl.so.0.9.7f
003a7000-003b0000 r-xp 00000000 fd:00 589918 /lib/libgcc_s-4.0.1-20050727.so.1
003b0000-003b1000 rwxp 00009000 fd:00 589918 /lib/libgcc_s-4.0.1-20050727.so.1
003f1000-00406000 r-xp 00000000 fd:00 14254946 /usr/lib/libsasl2.so.2.0.20
00406000-00407000 rwxp 00015000 fd:00 14254946 /usr/lib/libsasl2.so.2.0.20
0042a000-0043c000 r-xp 00000000 fd:00 590921 /lib/libnsl-2.3.5.so
0043c000-0043d000 r-xp 00011000 fd:00 590921 /lib/libnsl-2.3.5.so
0043d000-0043e000 rwxp 00012000 fd:00 590921 /lib/libnsl-2.3.5.so
0043e000-00440000 rwxp 0043e000 00:00 0
00488000-00672000 r-xp 00000000 fd:00 7803393 /usr/bin/net
00672000-00683000 rwxp 001ea000 fd:00 7803393 /usr/bin/net
00683000-00693000 rwxp 00683000 00:00 0
00745000-00747000 r-xp 00000000 fd:00 590912 /lib/libdl-2.3.5.so
00747000-00748000 r-xp 00001000 fd:00 590912 /lib/libdl-2.3.5.so
00748000-00749000 rwxp 00002000 fd:00 590912 /lib/libdl-2.3.5.so
007ab000-007af000 r-xp 00000000 fd:00 589874 /lib/libnss_dns-2.3.5.so
007af000-007b0000 r-xp 00003000 fd:00 589874 /lib/libnss_dns-2.3.5.so
007b0000-007b1000 rwxp 00004000 fd:00 589874 /lib/libnss_dns-2.3.5.so
009e1000-009e8000 r-xp 00000000 fd:00 7810431 /usr/lib/libpopt.so.0.0.0
009e8000-009e9000 rwxp 00006000 fd:00 7810431 /usr/lib/libpopt.so.0.0.0
00b1b000-00b35000 r-xp 00000000 fd:00 590850 /lib/ld-2.3.5.so
00b35000-00b36000 r-Aborted

I also get the same errot when I upgrade Samba to 3.0.20rc2.

On a side note, it also appears that SWAT does not start correctly in FC4

Thanks for any help provided.

Sam
 
Old 08-18-2005, 07:24 PM   #2
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
Have you figured this out? I've run into the exact same problem and am unable to progress any further. I've googled, and tried everything, I even updated samba to the next release candidate 3.20, and it still does the same thing. Here's my dump, in case it might help:

Code:
[root@hostname ~]# net ads join -U [USERNAME]
[USERNAME]'s password:
[2005/08/18 18:22:51, 0] libads/ldap.c:ads_add_machine_acct(1400)
  ads_add_machine_acct: Host account for [HOSTNAME] already exists - modifying old account
Using short domain name -- [SHORTNAME]
Joined '[HOSTNAME]' to realm '[REALM]'
*** glibc detected *** net: free(): invalid pointer: 0x00217db0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2fb424]
/lib/libc.so.6(__libc_free+0x77)[0x2fb95f]
/lib/libcom_err.so.2(remove_error_table+0x4b)[0x111abb]
/usr/lib/libkrb5.so.3[0x1b58c4]
/usr/lib/libkrb5.so.3[0x1b55c7]
/usr/lib/libkrb5.so.3[0x2069da]
/lib/ld-linux.so.2[0xce0058]
/lib/libc.so.6(exit+0xc5)[0x2c2c69]
/lib/libc.so.6(__libc_start_main+0xce)[0x2acdee]
net[0x566ca1]
======= Memory map: ========
00111000-00113000 r-xp 00000000 03:06 576357     /lib/libcom_err.so.2.1
00113000-00114000 rwxp 00001000 03:06 576357     /lib/libcom_err.so.2.1
00114000-00121000 r-xp 00000000 03:06 657449     /usr/lib/liblber-2.2.so.7.0.16
00121000-00122000 rwxp 0000c000 03:06 657449     /usr/lib/liblber-2.2.so.7.0.16
00122000-00157000 r-xp 00000000 03:06 1025680    /lib/libssl.so.0.9.7f
00157000-0015a000 rwxp 00035000 03:06 1025680    /lib/libssl.so.0.9.7f
0015a000-0015c000 r-xp 00000000 03:06 644734     /usr/lib/gconv/IBM850.so
0015c000-0015e000 rwxp 00001000 03:06 644734     /usr/lib/gconv/IBM850.so
00162000-00174000 r-xp 00000000 03:06 650204     /usr/lib/libz.so.1.2.2.2
00174000-00175000 rwxp 00011000 03:06 650204     /usr/lib/libz.so.1.2.2.2
00178000-0017d000 r-xp 00000000 03:06 576366     /lib/libcrypt-2.3.5.so
0017d000-0017e000 r-xp 00004000 03:06 576366     /lib/libcrypt-2.3.5.so
0017e000-0017f000 rwxp 00005000 03:06 576366     /lib/libcrypt-2.3.5.so
0017f000-001a6000 rwxp 0017f000 00:00 0
001a6000-00215000 r-xp 00000000 03:06 660238     /usr/lib/libkrb5.so.3.2
00215000-00218000 rwxp 0006e000 03:06 660238     /usr/lib/libkrb5.so.3.2
00218000-00221000 r-xp 00000000 03:06 1024053    /lib/libnss_files-2.3.5.so
00221000-00222000 r-xp 00008000 03:06 1024053    /lib/libnss_files-2.3.5.so
00222000-00223000 rwxp 00009000 03:06 1024053    /lib/libnss_files-2.3.5.so
00223000-00227000 r-xp 00000000 03:06 1024050    /lib/libnss_dns-2.3.5.so
00227000-00228000 r-xp 00003000 03:06 1024050    /lib/libnss_dns-2.3.5.so
00228000-00229000 rwxp 00004000 03:06 1024050    /lib/libnss_dns-2.3.5.so
00229000-00232000 r-xp 00000000 03:06 1024176    /lib/libgcc_s-4.0.1-20050727.so.1
00232000-00233000 rwxp 00009000 03:06 1024176    /lib/libgcc_s-4.0.1-20050727.so.1
00262000-00296000 r-xp 00000000 03:06 654761     /usr/lib/libldap-2.2.so.7.0.16
00296000-00298000 rwxp 00033000 03:06 654761     /usr/lib/libldap-2.2.so.7.0.16
00298000-003bc000 r-xp 00000000 03:06 1024103    /lib/libc-2.3.5.so
003bc000-003be000 r-xp 00124000 03:06 1024103    /lib/libc-2.3.5.so
003be000-003c0000 rwxp 00126000 03:06 1024103    /lib/libc-2.3.5.so
003c0000-003c2000 rwxp 003c0000 00:00 0
003c2000-004ba000 r-xp 00000000 03:06 1025679    /lib/libcrypto.so.0.9.7f
004ba000-004cc000 rwxp 000f8000 03:06 1025679    /lib/libcrypto.so.0.9.7f
004cc000-004cf000 rwxp 004cc000 00:00 0
00503000-00526000 r-xp 00000000 03:06 660226     /usr/lib/libk5crypto.so.3.0
00526000-00527000 rwxp 00023000 03:06 660226     /usr/lib/libk5crypto.so.3.0
00537000-00721000 r-xp 00000000 03:06 654614     /usr/bin/net
00721000-00732000 rwxp 001ea000 03:06 654614     /usr/bin/net
00732000-00742000 rwxp 00732000 00:00 0
00a74000-00a89000 r-xp 00000000 03:06 664122     /usr/lib/libsasl2.so.2.0.20
00a89000-00a8a000 rwxp 00015000 03:06 664122     /usr/lib/libsasl2.so.2.0.20
00b48000-00b4a000 r-xp 00000000 03:06 644827     /usr/lib/gconv/UTF-16.so
00b4a000-00b4c000 rwxp 00001000 03:06 644827     /usr/lib/gconv/UTF-16.so
00caf000-00cb1000 r-xp 00000000 03:06 660203     /usr/lib/libkrb5support.so.0.0
00cb1000-00cb2000 rwxp 00001000 03:06 660203     /usr/lib/libkrb5support.so.0.0
00cd2000-00cec000 r-xp 00000000 03:06 1024101    /lib/ld-2.3.5.so
00cec000-00ced000 r-xp 00019000 03:06 1024101    /lib/ld-2.3.5.so
00ced000-00cee000 rwxp 0001a000 03:06 1024101    /lib/ld-2.3.5.so
00d0f000-00d10000 r-xp 00d0f000 00:00 0
00d45000-00d47000 r-xp 00000000 03:06 576352     /lib/libdl-2.3.5.so
00d47000-00d48000 r-xp 00001000 03:06 576352     /lib/libdl-2.3.5Aborted
Is this a bug for the samba team do you think?
 
Old 08-18-2005, 09:51 PM   #3
saylestock
Member
 
Registered: Apr 2004
Location: Virginia
Distribution: Fedora
Posts: 30

Original Poster
Rep: Reputation: 15
I have not tried the Samba team yet. I was hoping to get some results here. There are a couple other treads that dance around this issue. Gut I guess no one has any ideas. I have also search Samba's site and found nothing realated.

Please post some info here if you run accross anything.

Thanks,
Sam
 
Old 08-18-2005, 11:25 PM   #4
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
I've posted to redhats bugzilla. Search Samba's bugzilla for glibc, or net ads join etc... And you'll see they suggest that this looks like a problem with krb5-libs. I'll be watching the bug and I'll let you know if anything comes up.
 
Old 08-18-2005, 11:30 PM   #5
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
here's the bug report on redhat's bugzilla: https://bugzilla.redhat.com/bugzilla....cgi?id=164353
 
Old 08-23-2005, 11:59 AM   #6
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
k, another update, found somebody who fixed it:

http://www.linuxforums.org/forum/top...tml&highlight=

I haven't tried yet, but this looks promising. My plan is to update everything envolved using source (except maybe samba, I'm confident it isn't a samba bug).
 
Old 08-24-2005, 06:38 PM   #7
dattilo0691
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Work around...

For libgcc < 4.0:
export MALLOC_CHECK=0
For libgcc > 4.0:
export MALLOC_CHECK_=0

Hope that helps,
Garth
 
Old 08-24-2005, 06:54 PM   #8
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
can you explain what that is doing? Thanks for the info!
 
Old 08-24-2005, 07:05 PM   #9
dattilo0691
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
It would appear that the way in which new versions of glibc handle invalid 'free()' calls has changed. As evidenced by:
*** glibc detected *** net: free(): invalid pointer: 0x00217db0 ***
Setting MALLOC_CHECK_=0 essentially silences the error reporting mechanism that returns the error. You could also set MALLOC_CHECK_=1 which would indicate that errors should still be generated, but ignored. This error would seem to stem from a bit of code that doesn't adhere to the new glibc standard but where the actual bug exists remains a mystery (at least to me).

Take care,
Garth
 
Old 09-20-2005, 04:01 PM   #10
saylestock
Member
 
Registered: Apr 2004
Location: Virginia
Distribution: Fedora
Posts: 30

Original Poster
Rep: Reputation: 15
Waaahoo!! Just loaded all the recent updates to FC4, reconfigured everthing again, and now it works. Looks like one of the updates has corrected the problem with the scripting errors while joining the Domain. I still had some minor problems with SAMBA and AD but was resolved when I installed SAMBA 3.0.20. You can download the FC4 RPM's from samba.org. I have duplicated my success on another computer just to make sure it was not something querky.

Good Luck!
Sam
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba against ADS Daniboy Linux - Software 3 09-13-2005 04:49 AM
Problems joining Samba to ADS 2003 daneek Linux - Networking 0 05-24-2005 04:40 PM
Samba cannot find group in ADS ceixxx Linux - Networking 1 11-15-2004 11:01 AM
Fedora 2, samba and ADS pylagan Linux - Networking 3 10-26-2004 04:58 PM
Samba kinit and ads nullerbasse Linux - Networking 0 03-05-2004 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration