PANIC: failed to create UCS2 buffer

Andrew Bartlett abartlet at samba.org
Fri Jun 27 03:44:51 GMT 2003


On Fri, 2003-06-27 at 13:06, TAKAHASHI Motonobu wrote:
> Jeff Chua wrote:
> 
> |I've got this error in log.nmbd
> |
> |Samba version is Version 3.0.0beta1
> |
> |[2003/06/27 09:49:17, 0] lib/iconv.c:utf8_pull(471)
> |  short utf8 char
> |[2003/06/27 09:49:17, 0] lib/charcnv.c:convert_string_allocate(248)
> |  Conversion error: Incomplete multibyte sequence()
> |[2003/06/27 09:49:17, 0] lib/util.c:smb_panic(1462)
> |  PANIC: failed to create UCS2 buffer
> |[2003/06/27 09:49:17, 0] lib/util.c:smb_panic(1469)
> |  BACKTRACE: 12 stack frames:
> |   #0 nmbd(smb_panic+0x168) [0x80aee14]
> |   #1 nmbd(unix_strupper+0x38) [0x809d3c8]
> |   #2 nmbd(strupper_m+0xcf) [0x80a8d83]
> |   #3 nmbd [0x8063d09]
> |   #4 nmbd(find_name_on_subnet+0x1c) [0x8063eb0]
> |   #5 nmbd(wins_process_name_refresh_request+0x12c) [0x806e070]
> |   #6 nmbd [0x8068f72]
> |   #7 nmbd(run_packet_queue+0x56) [0x806919a]
> |   #8 nmbd(strftime+0x15c2) [0x805cffa]
> |   #9 nmbd(main+0x5f9) [0x805d851]
> |   #10 /lib/libc.so.6(__libc_start_main+0xc0) [0x40093b7c]
> |   #11 nmbd(yp_get_default_domain+0x59) [0x805c191]
> 
> I met (probably) the same problem.
> 
> As far as I checked, this problem occurs when you use characters which
> are not supported in unix charset in login names or computer names,
> because nmbd stores received names 'as is' and tries to strupper them
> assuming they were unix charset string.

I think the issue (at least to start with) is the fact that
parse_nmb_name() and put_nmb_name() do not deal with the conversion
to/from unix charsets.

A quick fix would be to add a clistr_pull here - but I'm not sure how
things interact with the 17 char limit we have on the struct, and any
special meaning that has.

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- 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-technical/attachments/20030627/9cfd39a4/attachment.bin


More information about the samba-technical mailing list