The patch below modifies the spec file for FC4 RPM builds as follows: 1.) Build binaries using the -lmcheck option; various samba commands and smbd process crash badly without; see, for example: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164353 2.) The Fedora project's samba RPMS install mount.cifs; it would help to have samba.org's RPMS do the same. It would be nice to see these patched incorporated into the next version. Thanks, Murthy Patch again 3.0.20 spec file follows: --- samba.spec 2005-09-27 01:15:16.223751176 -0400 +++ samba.spec.3.0.20-2_new 2005-09-27 01:15:49.973620416 -0400 @@ -4,7 +4,7 @@ Summary: The Samba SMB server. Name: samba Version: 3.0.20 -Release: 2 +Release: 2_new License: GNU GPL Version 2 Group: System Environment/Daemons URL: http://www.samba.org/ @@ -105,7 +105,7 @@ ./autogen.sh fi -CFLAGS="$RPM_OPT_FLAGS" ./configure \ +CFLAGS="$RPM_OPT_FLAGS" LIBS="-lmcheck" ./configure \ --prefix=%{_prefix} \ --localstatedir=/var \ --sysconfdir=/etc \ @@ -127,6 +127,7 @@ make proto make %{?_smp_mflags} all modules nsswitch/libnss_wins.so debug2html +( cd client ; gcc -lmcheck -o mount.cifs $RPM_OPT_FLAGS -Wall -O -D_GNU_SOURCE -D_LARGEFILE64_SOURCE mount.cifs.c ) %install rm -rf $RPM_BUILD_ROOT @@ -153,6 +154,7 @@ install -m644 %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/samba install -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/samba install -m755 source/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_bindir} +install -m755 source/client/mount.cifs $RPM_BUILD_ROOT/sbin/mount.cifs install -m755 %{SOURCE5} $RPM_BUILD_ROOT%{initdir}/smb install -m755 %{SOURCE6} $RPM_BUILD_ROOT%{initdir}/winbind @@ -204,7 +206,6 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smbsh.1* rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smbget.1* rm -f $RPM_BUILD_ROOT%{_mandir}/man5/smbgetrc.5* -rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/mount.cifs.8* rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/umount.cifs.8* rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/testprns.1* @@ -311,6 +312,7 @@ %defattr(-,root,root) /sbin/mount.smb /sbin/mount.smbfs +/sbin/mount.cifs %{_libdir}/samba/lowcase.dat %{_libdir}/samba/upcase.dat %{_libdir}/samba/valid.dat @@ -324,6 +326,7 @@ %{_mandir}/man8/tdbdump.8* %{_mandir}/man8/smbmnt.8* %{_mandir}/man8/smbmount.8* +%{_mandir}/man8/mount.cifs.8* %{_mandir}/man8/smbumount.8* %{_mandir}/man8/smbspool.8* %{_bindir}/nmblookup __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 S Murthy Kambhampaty wrote: | The patch below modifies the spec file for FC4 RPM | builds as follows: | | 1.) Build binaries using the -lmcheck option; various | samba commands and smbd process crash badly without; | see, for example: | https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164353 Sorry. I'm not going to include the patch to work around bugs in e2fsprogrs. | 2.) The Fedora project's samba RPMS install | mount.cifs; it would help to have samba.org's RPMS | do the same. This one I can do. Thanks for the patch. cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "There's an anonymous coward in all of us." --anonymous -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDRmkuIR7qMdg1EfYRAhBBAJ4gHuujl0vC+xe0oDHOXKa5yrWNxQCg6Ob0 KwG4ftFMLStsBzzZ/peGZPE=afpP -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 S Murthy Kambhampaty wrote: | The patch below modifies the spec file for FC4 RPM | builds as follows: btw... always include patches as attaches (diff -u) The best way to handle patches is either to open a report at https://bugzilla.samba.org/ and attach the diff there or send it to the samba-technical mailing list. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDRm2/IR7qMdg1EfYRAng0AJ43HZH6B6xF0PDkdGMj3GB5X40MGwCfd+3K GTQ446nA7dAhNQV8brSXoVY=ZgfX -----END PGP SIGNATURE-----
sysrm@stvincent.ac.uk
2005-Oct-09 18:15 UTC
[Samba] Samba 3.0.20a and Winbind crashing (bug?)
Hi all. having major issues on all my servers at the moment. All running RHES 3, all with samba 3.0.20a and all have the winbind crashing problem :/ the main 2 are the filestore and email servers, also get the most usage. in fact from my systems point of view, its definatly a most usage = most frequent winbind crashing issue. Any help from others or the dev team gratefully received. NB i have also set a cron to restart smb at 22:00 every night. Many thanks Ross LOG FOLLOWS 0:[2005/10/09 11:40:01, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 74- group enstaff in domain ACADEMIC does not exist 124:[2005/10/09 11:40:02, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 198- group gestaff in domain ACADEMIC does not exist 248:[2005/10/09 11:40:02, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 322- group meweb in domain ACADEMIC does not exist 370:[2005/10/09 11:40:05, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 444- group peweb in domain ACADEMIC does not exist 492:[2005/10/09 11:40:06, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 566- group ssstaff in domain ACADEMIC does not exist 616:[2005/10/09 11:40:07, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 690- group psyweb in domain ACADEMIC does not exist 739:[2005/10/09 11:40:08, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 813- group paweb in domain ACADEMIC does not exist 861:[2005/10/09 11:40:08, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 935- group citizweb in domain ACADEMIC does not exist 986:[2005/10/09 11:40:08, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(255) 1060- group lrcweb in domain ACADEMIC does not exist 1109-[2005/10/09 11:40:11, 0] lib/fault.c:fault_report(36) 1163- ==============================================================1229-[2005/10/09 11:40:11, 0] lib/fault.c:fault_report(37) 1283- INTERNAL ERROR: Signal 6 in pid 28787 (3.0.20a) 1333- Please read the Trouble-Shooting section of the Samba3-HOWTO 1396-[2005/10/09 11:40:11, 0] lib/fault.c:fault_report(39) 1450- 1453- From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf 1510-[2005/10/09 11:40:11, 0] lib/fault.c:fault_report(40) 1564- ==============================================================1630-[2005/10/09 11:40:11, 0] lib/util.c:smb_panic2(1548) 1683- PANIC: internal error 1707-[2005/10/09 11:40:11, 0] lib/util.c:smb_panic2(1556) 1760- BACKTRACE: 28 stack frames: 1790: #0 /usr/local/samba/sbin/winbindd(smb_panic2+0x1c5) [0xbf5bfa] 1856: #1 /usr/local/samba/sbin/winbindd(smb_panic+0x1d) [0xbf5a30] 1920: #2 /usr/local/samba/sbin/winbindd [0xbe2c4c] 1968: #3 /usr/local/samba/sbin/winbindd [0xbe2ca4] 2016- #4 /lib/tls/libc.so.6 [0x6edeb8] 2052- #5 /lib/tls/libc.so.6(abort+0x1d5) [0x6ef4e5] 2101: #6 /usr/local/samba/sbin/winbindd [0xc17279] 2149: #7 /usr/local/samba/sbin/winbindd [0xc1761f] 2197: #8 /usr/local/samba/sbin/winbindd(cli_krb5_get_ticket+0x1f2) [0xc17972] 2272: #9 /usr/local/samba/sbin/winbindd(spnego_gen_negTokenTarg+0x40) [0xc18579] 2350: #10 /usr/local/samba/sbin/winbindd [0xc9f2e7] 2399: #11 /usr/local/samba/sbin/winbindd [0xc9f5db] 2448: #12 /usr/local/samba/sbin/winbindd(ads_sasl_bind+0x125) [0xc9fbfb] 2518: #13 /usr/local/samba/sbin/winbindd(ads_connect+0x23d) [0xc99dc1] 2586: #14 /usr/local/samba/sbin/winbindd [0xba9ff5] 2635: #15 /usr/local/samba/sbin/winbindd [0xbac0ab] 2684: #16 /usr/local/samba/sbin/winbindd [0xb9cdfd] 2733: #17 /usr/local/samba/sbin/winbindd [0xb9d03c] 2782: #18 /usr/local/samba/sbin/winbindd [0xb9e481] 2831: #19 /usr/local/samba/sbin/winbindd(winbindd_lookup_sid_by_name+0x28) [0xb9ac1e] 2914: #20 /usr/local/samba/sbin/winbindd(winbindd_getgrnam+0x20e) [0xb973f5] 2988: #21 /usr/local/samba/sbin/winbindd [0xb93630] 3037: #22 /usr/local/samba/sbin/winbindd [0xb93d6e] 3086: #23 /usr/local/samba/sbin/winbindd [0xb938df] 3135: #24 /usr/local/samba/sbin/winbindd [0xb942ee] 3184: #25 /usr/local/samba/sbin/winbindd(main+0x52c) [0xb94b15] 3245- #26 /lib/tls/libc.so.6(__libc_start_main+0xda) [0x6db78a] 3306: #27 /usr/local/samba/sbin/winbindd [0xb92ec2]
This sounds like the same problem i had with winbind in both 3.0.14 abd 3.0.20. Mine freezes, and the daemon appears to be still running using ps and top, but it doesnt respond to queries. It seems like i can trigger this event by running getent passwd. It shows the accounts, but then the daemon dies. I run it on debian sarge, and i have another server with different hardware that also runs debian sarge. The other server does not have the problem (havent tested with getent passwd) but it does not see as many auth. attempts as the freezing server does. I use winbindd for pam_winbind. And some times it goes days without crashing other times it freezes several times an hour. I get this following entries in my auth.log: write to socket failed! internal module error (retval = 3 I circumvented it by running wbinfo -p every minute and restarting winbbind if wbinfo failed. JonB
sysrm@stvincent.ac.uk
2005-Oct-10 08:40 UTC
[Samba] Samba 3.0.20a and Winbind crashing (bug?)
Yeah i forgot to mention that, i had the same problem in 3.0.14a as i do in 3.0.20a :/ Mine doesnt freeze, it actually ends the daemon. whats odd (just noticed this morning) is i checked the server at 7:40am, all is well. checked it at 8.05 am, its crashed! just had a look through logs etc, it looks like it crashes at 8am most days! always 8 am! last night when i checked it was slighly different, it seems that crash was caused due to a log rotate. :/ Any one else got any ideas? Cheers Ross> This sounds like the same problem i had with winbind in both 3.0.14 > abd 3.0.20. > > Mine freezes, and the daemon appears to be still running using ps and > top, > but it doesnt respond to queries. > > It seems like i can trigger this event by running getent passwd. It > shows the > accounts, but then the daemon dies. > > I run it on debian sarge, and i have another server with different > hardware > that also runs debian sarge. The other server does not have the problem > (havent tested with getent passwd) but it does not see as many auth. > attempts > as the freezing server does. I use winbindd for pam_winbind. > And some times it goes days without crashing other times it freezes > several > times an hour. > > I get this following entries in my auth.log: > write to socket failed! > internal module error (retval = 3 > > > > I circumvented it by running wbinfo -p every minute and restarting > winbbind if > wbinfo failed. > > > JonB > >
On Sun, Oct 09, 2005 at 06:25:56PM +0100, sysrm@stvincent.ac.uk wrote:> Hi all. > > having major issues on all my servers at the moment. > > All running RHES 3, all with samba 3.0.20a and all have the winbind > crashing problem :/ > > the main 2 are the filestore and email servers, also get the most usage. > > in fact from my systems point of view, its definatly a most usage = most > frequent winbind crashing issue. > > Any help from others or the dev team gratefully received. > > NB i have also set a cron to restart smb at 22:00 every night.Please try this patch : Jeremy. -------------- next part -------------- Index: nsswitch/winbindd_misc.c ==================================================================--- nsswitch/winbindd_misc.c (revision 10687) +++ nsswitch/winbindd_misc.c (revision 10688) @@ -127,7 +127,8 @@ if (num_domains > 0) extra_data = talloc_asprintf(state->mem_ctx, "%s\\%s\\%s", - names[0], alt_names[0], + names[0], + alt_names[0] ? alt_names[0] : names[0], sid_string_static(&sids[0])); for (i=1; i<num_domains; i++)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 S Murthy Kambhampaty wrote: | 2.) The Fedora project's samba RPMS install | mount.cifs; it would help to have samba.org's RPMS | do the same. | | It would be nice to see these patched incorporated | into the next version. This one will be in 3.0.20b cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDTWwLIR7qMdg1EfYRAuOhAKCL1bwQs6/EhL2EMXE7jyehtabN6gCcDJZU 7d3Q/wQe8Ejdb+HbPPswD9I=t5wJ -----END PGP SIGNATURE-----