OpenSolaris

Printable Version Enter a New Search
Bug ID 6226717
Synopsis memory leak in _XlcInitCTInfo with japanese locale
State 11-Closed:Verified (Closed)
Category:Subcategory xserver:i18n
Keywords g11n-cannot-verify
Responsible Engineer Jay Hobson
Reported Against s8_patch
Duplicate Of
Introduced In
Commit to Fix s8_patch
Fixed In s8_patch
Release Fixed solaris_8(s8_patch) , solaris_9(s9_patch) (Bug ID:2127528) solaris_10u1(s10u1_11) (Bug ID:2127529,) solaris_nevada(snv_17) (Bug ID:2127530,)
Related Bugs
Submit Date 8-February-2005
Last Update Date 19-May-2006
Description
The testcase provided in attachement leaks memory in _XlcInitCTInfo with ja locale but not with C locale (tested on Solaris 8 and 9).

% setenv LANG ja
% locale
LANG=ja
LC_CTYPE="ja"
LC_NUMERIC="ja"
LC_TIME="ja"
LC_COLLATE="ja"
LC_MONETARY="ja"
LC_MESSAGES="ja"
LC_ALL=

% dbx ./test_uil
Reading test_uil
Reading ld.so.1
Reading libMrm.so.4
Reading libXm.so.4
Reading libXt.so.4
Reading libX11.so.4
Reading libXext.so.0
Reading libnsl.so.1
Reading libsocket.so.1
Reading libgen.so.1
Reading libpthread.so.1
Reading libCrun.so.1
Reading libm.so.1
Reading libw.so.1
Reading libthread.so.1
Reading libc.so.1
Reading libSM.so.6
Reading libICE.so.6
Reading libdl.so.1
Reading libmp.so.2
Reading libc_psr.so.1
dbx> check -leaks
leaks checking - ON
dbx> run
Running: test_uil 
(process id 23679)
Reading rtcapihook.so
Reading rtcaudit.so
Reading libmapmalloc.so.1
Reading rtcboot.so
Reading librtc.so
RTC: Enabling Error Checking...
RTC: Running program...
Reading ja.so.2
Reading methods_ja.so.2
Reading xlibi18n_ja.so.2
Reading xomLTRTTB.so.2
Warning: Missing charsets in String to FontSet conversion
Reading liblayout.so
Warning: Missing charsets in String to FontSet conversion
Reading ximp40.so.2
Checking for memory leaks...

Actual leaks report    (actual leaks:           32  total size:        896 bytes)

  Total     Num of  Leaked     Allocation call stack
  Size      Blocks  Block
                    Address
==========  ====== =========== =======================================
       576      16      -      _XlcCreateDefaultCharSet < _XlcAddCT < _XlcInitCTInfo 
       320      16      -      _XlcCreateDefaultCharSet < _XlcAddCT < _XlcInitCTInfo 
 

Possible leaks report  (possible leaks:          0  total size:          0 bytes)

 

execution completed, exit code is 0






 xxxxx@xxxxx.com 2005-2-08 16:55:59 GMT
Work Around
N/A
Comments
N/A