The Samba-Bugzilla – Bug 2036
net ads join segfaults
Last modified: 2005-08-24 10:25:19 UTC
On my x86_64 box running Fedora Core 3, net segfaults when attempting to join an
[root@smbserver ~]# gdb net
GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db
(gdb) run ads join -U firstname.lastname@example.org
Starting program: /usr/bin/net ads join -U email@example.com
[2004/11/15 11:49:42, 0] libads/ldap.c:ads_add_machine_acct(1366)
ads_add_machine_acct: Host account for smbserver already exists - modifying
Program received signal SIGSEGV, Segmentation fault.
0x0000002a96092590 in ldap_msgfree () from /usr/lib64/libldap-2.2.so.7
#0 0x0000002a96092590 in ldap_msgfree () from /usr/lib64/libldap-2.2.so.7
#1 0x000000552abea625 in ads_workgroup_name (ads=0x552ae2b550,
mem_ctx=0x552ae303a0, workgroup=0x7fbffff168) at libads/ldap.c:2508
#2 0x000000552aaeb565 in net_ads_join (argc=0, argv=0x5500000000) at
#3 0x000000552aaec965 in net_ads (argc=1, argv=0x552ad84330) at
#4 0x000000552aae9bf0 in main (argc=5, argv=0x7fbffff9b8) at utils/net.c:849
I did try removing the existing computer account up front, but with same result.
Please let me know if i can try/provide you with something else.
Created attachment 773 [details]
Can you try the proposed patch ?
Had some problems building samba, which is why my reply took so logn, sorry!
So i finally got the whole thing rebuilt with the attached patch and my problem
Thanks a lot!
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.