[Samba] smbd crash on character conversion

Szabo Tibor tipcsi at sch.bme.hu
Wed Aug 27 18:50:47 GMT 2003


Hi all,

I'm trying to share a directory that contains files with non-ASCII
characters (actually, hungarian chars, iso8859-2 or utf8 encoding, I'm not
sure - the encoding of ext2) in their name. When I mount the share and try
to list the contents of the directory, smbd crashes.

samba version: 3.0.0rc1

The shared dir is on an ext2 partition. My system is a debian woody. iconv
is installed and samba's configure script founds it, however, it seems
that smbd uses its own smb_iconv().

In smb.conf I tried the parameter "character set = iso8859-2" and other
values as utf8, cp852 etc, but the crash persists.

log.smbd is below. Thanks in advance for any hints.

Regards,
Tibor

[2003/08/27 20:29:46, 1] smbd/service.c:make_connection_snum(692)
  192.168.0.191 (192.168.0.191) connect to service zene initially as user
nobody (uid=65534, gid=65534) (pid 13199)
[2003/08/27 20:29:46, 0] lib/charcnv.c:convert_string_allocate(272)
  Conversion error: Illegal multibyte sequence(á)
[2003/08/27 20:29:46, 0] lib/util.c:smb_panic(1452)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 13199]
[2003/08/27 20:29:46, 0] lib/util.c:smb_panic(1460)
  smb_panic(): action returned status 0
[2003/08/27 20:29:46, 0] lib/util.c:smb_panic(1462)
  PANIC: failed to create UCS2 buffer
[2003/08/27 20:29:46, 0] lib/util.c:smb_panic(1469)
  BACKTRACE: 16 stack frames:
   #0 /usr/local/samba/sbin/smbd(smb_panic+0xc9) [0x817354d]
   #1 /usr/local/samba/sbin/smbd(unix_strupper+0x81) [0x8163709]
   #2 /usr/local/samba/sbin/smbd(strupper_m+0x44) [0x816dc10]
   #3 /usr/local/samba/sbin/smbd [0x80b9c0a]
   #4 /usr/local/samba/sbin/smbd [0x80ba277]
   #5 /usr/local/samba/sbin/smbd(mangle_map+0x66) [0x80b88da]
   #6 /usr/local/samba/sbin/smbd [0x809b26d]
   #7 /usr/local/samba/sbin/smbd [0x809be8e]
   #8 /usr/local/samba/sbin/smbd(reply_trans2+0x525) [0x80a1abd]
   #9 /usr/local/samba/sbin/smbd [0x80b3219]
   #10 /usr/local/samba/sbin/smbd [0x80b340f]
   #11 /usr/local/samba/sbin/smbd(process_smb+0x74) [0x80b35bc]
   #12 /usr/local/samba/sbin/smbd(smbd_process+0x198) [0x80b40c8]
   #13 /usr/local/samba/sbin/smbd(main+0x410) [0x81baae8]
   #14 /lib/libc.so.6(__libc_start_main+0xdd) [0x4008ca51]
   #15 /usr/local/samba/sbin/smbd(chroot+0x31) [0x80714ed]




More information about the samba mailing list