Hi, smbd eats a lot of cpu time and there is this error in the log: [2004/01/21 23:30:00, 0] lib/util_str.c:string_sub(1221) ERROR: string overflow by 6 in string_sub(%m, 73) 21:53:20 up 15 min, 2 users, load average: 2.37, 2.15, 1.18 PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 1123 root 14 0 2084 1540 1300 R 49.3 2.5 5:09 smbd 1137 root 14 0 2016 1512 1276 R 48.7 2.4 3:58 smbd 555 root 9 0 1048 992 816 S 0.9 1.6 0:06 top I googled around and found some possible reasons: - incorrect macro handling (%g versus %G) - strings over 1024 characters in smb.conf I will look into this. But I think it would be very nice, if this error will be fixed in 2.2.8a, because samba 3.x seemes too unstable for production environments (if I look at the postings since version 3.0 here). I woold live with samba 2_2 in cvs if the error is fixed there, but here are other show stoppers: https://bugzilla.samba.org/show_bug.cgi?id=543 Please help to fix this. der tom -- der tom
Gerald (Jerry) Carter
2004-Jan-22 13:44 UTC
[Samba] 2.2.8a - string overflow by 6 in string_sub
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thomas Bork wrote:> Hi, > > smbd eats a lot of cpu time and there is this error in the log: > > [2004/01/21 23:30:00, 0] lib/util_str.c:string_sub(1221) > ERROR: string overflow by 6 in string_sub(%m, 73) > > 21:53:20 up 15 min, 2 users, load average: 2.37, 2.15, 1.18 > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > 1123 root 14 0 2084 1540 1300 R 49.3 2.5 5:09 smbd > 1137 root 14 0 2016 1512 1276 R 48.7 2.4 3:58 smbd > 555 root 9 0 1048 992 816 S 0.9 1.6 0:06 top > > I googled around and found some possible reasons: > > - incorrect macro handling (%g versus %G) > - strings over 1024 characters in smb.conf > > I will look into this. But I think it would be very nice, if this error will > be fixed in 2.2.8a, because samba 3.x seemes too unstable for production > environments (if I look at the postings since version 3.0 here). > I woold live with samba 2_2 in cvs if the error is fixed there, but here are > other show stoppers: > > https://bugzilla.samba.org/show_bug.cgi?id=543No more work is being done (nor planned on 2.2.x). 3.0 is your only option. Sorry. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song" --Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAD9N7IR7qMdg1EfYRAnVuAKCn7x3pFgXRVCVlALiR8VL1NkTiMgCg9Bj7 hp+/650NUb43bj+kCnIpDLA=OM/0 -----END PGP SIGNATURE-----
Hallo Gerald Carter,> > [2004/01/21 23:30:00, 0] lib/util_str.c:string_sub(1221) > > ERROR: string overflow by 6 in string_sub(%m, 73)[...]> No more work is being done (nor planned on 2.2.x). 3.0 is your only > option. Sorry.that's a pitty. 3.x is not stable enough at this time. -- der tom