Hi, I am still fighting with my strange samba killing server. Yesterday I installed samba3 for testing and noticed it also crashes but not as hard as samba-2 Unfortunately samba-3 is not yet usable due to problems with german umlauts. The following combination of charsets seems to be the only one which displays filenames correctly unix charset = iso8859-1 unicode = yes display charset = iso8859-1 ; dos charset = CP850 unfortunately opening files using the above combination of charsets crashes explorer and gives an oops in samba [2003/09/09 15:50:12, 1] smbd/service.c:make_connection_snum(696) dadi (192.168.123.178) connect to service peter initially as user peter (uid=500, gid=100) (pid 29204) [2003/09/09 15:50:12, 0] smbd/statcache.c:stat_cache_add(123) OOPS - tried to store stat cache entry for werid length paths [B?] 2 and [b?.txt.txt] 10)! [2003/09/09 15:50:12, 2] smbd/open.c:open_file(250) peter opened file b?.txt.txt read=Yes write=No (numopen=1) [2003/09/09 15:50:23, 2] smbd/close.c:close_normal_file(228) peter closed file b?.txt.txt (numopen=0) [2003/09/09 15:51:46, 0] lib/util_sock.c:read_socket_data(342) read_socket_data: recv failure for 4. Error = Connection reset by peer [2003/09/09 15:51:46, 2] smbd/server.c:exit_server(558) Closing connections [2003/09/09 15:51:46, 1] smbd/service.c:close_cnum(878) Samba is 3.0rc3 on SuSe 8.2, Client OS is Windows 2000 (German) Is it a bug or a feature ? Peter --- dadi-linux www.dadi-linux.de Peter Eckhardt Fon: +49 6071 951256 Weberstr. 36B Fax: +49 6071 951257 64846 Gro?-Zimmern peter.eckhardt@dadi-linux.de
Hi, I have the same problem on RedHat9 with Samba 3rc3, Client Win XP ( German ), all smb.conf charset settings pointing to defaults (UTF-8). It did work with rc1. This is a showstopper if it is not related to configuration errors. from smbd.log: [2003/09/09 16:10:26, 0] smbd/statcache.c:stat_cache_add(123) OOPS - tried to store stat cache entry for werid length paths [P?] 2 and [p?m] 4)! [2003/09/09 16:10:26, 0] smbd/statcache.c:stat_cache_add(123) OOPS - tried to store stat cache entry for werid length paths [P?] 2 and [p?m] 4)!> Unfortunately samba-3 is not yet usable due to problems with german > umlauts. > The following combination of charsets seems to be the only one which> [2003/09/09 15:50:12, 1] smbd/service.c:make_connection_snum(696) > dadi (192.168.123.178) connect to service peter initially as user > peter (uid=500, gid=100) (pid 29204) > [2003/09/09 15:50:12, 0] smbd/statcache.c:stat_cache_add(123) > > OOPS - tried to store stat cache entry for werid length paths > [B?] 2 and [b?.txt.txt] 10)! > [2003/09/09 15:50:12, 2] smbd/open.c:open_file(250) > peter opened file b?.txt.txt read=Yes write=No (numopen=1) > [2003/09/09 15:50:23, 2] smbd/close.c:close_normal_file(228) > peter closed file b?.txt.txt (numopen=0) > [2003/09/09 15:51:46, 0] lib/util_sock.c:read_socket_data(342) > read_socket_data: recv failure for 4. Error = Connection reset > by peer > [2003/09/09 15:51:46, 2] smbd/server.c:exit_server(558) > Closing connections > [2003/09/09 15:51:46, 1] smbd/service.c:close_cnum(878) > > Samba is 3.0rc3 on SuSe 8.2, Client OS is Windows 2000 (German) > > Is it a bug or a feature ? >regards, Gunther -- Gunther Schlegel Riege Software International GmbH Manager System Administration Mollsfeld 10 40670 Meerbusch, Germany Email: schlegel@riege.de Phone: +49-2159-9148-0 Fax: +49-2159-9148-11 --------------------------------------------------------------------- Disclaimer: You may grab my GPG key from http://www.keyserver.net . A nonproportional font is recommended for reading. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20030909/fa5a163b/attachment.bin
On Tue, Sep 09, 2003 at 04:03:52PM +0200, Peter Eckhardt wrote:> Hi, > > I am still fighting with my strange samba killing server. Yesterday > I installed samba3 for testing and noticed it also crashes but not > as hard as samba-2 > Unfortunately samba-3 is not yet usable due to problems with german > umlauts. > The following combination of charsets seems to be the only one which > displays filenames correctly > unix charset = iso8859-1 > unicode = yes > display charset = iso8859-1 > ; dos charset = CP850 > unfortunately opening files using the above combination of charsets > crashes explorer and gives an oops in samba > > > [2003/09/09 15:50:12, 1] smbd/service.c:make_connection_snum(696) > dadi (192.168.123.178) connect to service peter initially as user > peter (uid=500, gid=100) (pid 29204) > [2003/09/09 15:50:12, 0] smbd/statcache.c:stat_cache_add(123) > > OOPS - tried to store stat cache entry for werid length paths > [B?] 2 and [b?.txt.txt] 10)! > [2003/09/09 15:50:12, 2] smbd/open.c:open_file(250) > peter opened file b?.txt.txt read=Yes write=No (numopen=1) > [2003/09/09 15:50:23, 2] smbd/close.c:close_normal_file(228) > peter closed file b?.txt.txt (numopen=0) > [2003/09/09 15:51:46, 0] lib/util_sock.c:read_socket_data(342) > read_socket_data: recv failure for 4. Error = Connection reset > by peer > [2003/09/09 15:51:46, 2] smbd/server.c:exit_server(558) > Closing connections > [2003/09/09 15:51:46, 1] smbd/service.c:close_cnum(878) > > Samba is 3.0rc3 on SuSe 8.2, Client OS is Windows 2000 (German) > > Is it a bug or a feature ?Please try the following patch, and see if it fixes the problem. It just missed the RC3 cutoff but is in CVS. Jeremy. --- lib/charcnv.c Mon Sep 8 07:13:30 2003 +++ /home/jeremy/src/samba3.0/source/lib/charcnv.c Mon Sep 8 14:27:10 2003 @@ -270,7 +270,7 @@ break; } else { if (srclen == (size_t)-1) { - srclen = strlen(src)+1; + srclen = strlen(p)+1; } return retval + convert_string_internal(from, to, p, srclen, q, destlen); } @@ -296,7 +296,7 @@ break; } else { if (srclen == (size_t)-1) { - srclen = strlen_w(src)+2; + srclen = strlen_w((const void *)p)+2; } return retval + convert_string_internal(from, to, p, srclen, q, destlen); } @@ -322,7 +322,7 @@ break; } else { if (srclen == (size_t)-1) { - srclen = strlen(src)+1; + srclen = strlen(p)+1; } return retval + convert_string_internal(from, to, p, srclen, q, destlen); }
On Tue, Sep 09, 2003 at 06:16:19PM +0200, Gunther Schlegel wrote:> Hi, > > I have the same problem on RedHat9 with Samba 3rc3, Client Win XP ( > German ), all smb.conf charset settings pointing to defaults (UTF-8). > > It did work with rc1. This is a showstopper if it is not related to > configuration errors. > > from smbd.log: > [2003/09/09 16:10:26, 0] smbd/statcache.c:stat_cache_add(123) > OOPS - tried to store stat cache entry for werid length paths [P???] 2 > and [p??m] > 4)! > [2003/09/09 16:10:26, 0] smbd/statcache.c:stat_cache_add(123) > OOPS - tried to store stat cache entry for werid length paths [P???] 2 > and [p??m] > 4)!Please try the following patch, and see if it fixes the problem. It just missed the RC3 cutoff but is in CVS. Jeremy. --- lib/charcnv.c Mon Sep 8 07:13:30 2003 +++ /home/jeremy/src/samba3.0/source/lib/charcnv.c Mon Sep 8 14:27:10 2003 @@ -270,7 +270,7 @@ break; } else { if (srclen == (size_t)-1) { - srclen = strlen(src)+1; + srclen = strlen(p)+1; } return retval + convert_string_internal(from, to, p, srclen, q, destlen); } @@ -296,7 +296,7 @@ break; } else { if (srclen == (size_t)-1) { - srclen = strlen_w(src)+2; + srclen = strlen_w((const void *)p)+2; } return retval + convert_string_internal(from, to, p, srclen, q, destlen); } @@ -322,7 +322,7 @@ break; } else { if (srclen == (size_t)-1) { - srclen = strlen(src)+1; + srclen = strlen(p)+1; } return retval + convert_string_internal(from, to, p, srclen, q, destlen); }