You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org> on 2008/10/08 19:07:44 UTC

[jira] Created: (STDCXX-1020) memchk in utility should honor TMPDIR variable

memchk in utility should honor TMPDIR variable
----------------------------------------------

                 Key: STDCXX-1020
                 URL: https://issues.apache.org/jira/browse/STDCXX-1020
             Project: C++ Standard Library
          Issue Type: Sub-task
          Components: Utilities
    Affects Versions: 4.2.1
         Environment: SunOS clue 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V215
CC: Sun C++ 5.9 SunOS_sparc 2007/05/03 
            Reporter: Scott (Yu) Zhong


TMPDIR should be honored in the utility function memchk

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-1020) memchk() in locale utility should honor TMPDIR variable

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644418#action_12644418 ] 

Martin Sebor commented on STDCXX-1020:
--------------------------------------

There's a problem with the patch. After applying it, locale tests fail one extra assertion -- see below (all tests except {{sanity_test.sh}} pass at 100% without the patch in place):

{noformat}
$ gmake -C../bin run                                
gmake: Entering directory `/build/sebor/stdcxx-4.2.x-aCC-6.16-15D/bin'
NAME                                     STATUS WARN ASSERTS FAILED PERCNT    USER     SYS    REAL
sanity_test.sh                                0    0     229      5    97%   0.400   1.310   2.560
af_ZA.ISO-8859-1.sh                           0    0      16      1    93%   4.670   0.290   5.040
ar_AE.ISO-8859-6.sh                           0    0      16      1    93%   4.640   0.290   4.960
ar_BH.ISO-8859-6.sh                           0    0      16      1    93%   4.640   0.290   4.960
ar_DZ.ISO-8859-6.sh                           0    0      16      1    93%   4.640   0.290   4.940
ar_EG.ISO-8859-6.sh                           0    0      16      1    93%   4.630   0.300   4.950
ar_IN.UTF-8.sh                                0    0      16      1    93%  46.250   1.010  47.330
...
{noformat}

Running one of the locale tests in debug mode (with the {{-d}} option) produces the following output:

{noformat}
$ ./af_ZA.ISO-8859-1.sh -d
RWSTD_SRC_ROOT=/amd/devco/sebor/stdcxx-4.2.x/etc/nls
export RWSTD_SRC_ROOT
mkdir -p /tmp/af_ZA.ISO-8859-1.17498/stage.1/charmaps
./localedef -w -c -f /amd/devco/sebor/stdcxx-4.2.x/etc/nls/charmaps/ISO-8859-1 -i /amd/devco/sebor/stdcxx-4.2.x/etc/nls/src/af_ZA /tmp/af_ZA.ISO-8859-1.17498/stage.1/af_ZA.ISO-8859-1 >/dev/tty 2>&1
LC_ALL=/tmp/af_ZA.ISO-8859-1.17498/stage.1/af_ZA.ISO-8859-1 ./locale --charmap -l >/tmp/af_ZA.ISO-8859-1.17498/stage.1/charmaps/ISO-8859-1 2>/dev/tty
Error 399: invalid size at address 9fffffffef78c000: 4294967295, expected 352
LC_ALL=/tmp/af_ZA.ISO-8859-1.17498/stage.1/af_ZA.ISO-8859-1 ./locale -ck -h -l LC_ALL >/tmp/af_ZA.ISO-8859-1.17498/stage.1/af_ZA.src 2>/dev/tty
Error 399: invalid size at address 9fffffffef78c000: 4294967295, expected 352
rm /tmp/af_ZA.ISO-8859-1.17498/stage.1/af_ZA.ISO-8859-1
rm: /tmp/af_ZA.ISO-8859-1.17498/stage.1/af_ZA.ISO-8859-1 directory
mkdir -p /tmp/af_ZA.ISO-8859-1.17498/stage.2/charmaps
./localedef -w -c -f /tmp/af_ZA.ISO-8859-1.17498/stage.1/charmaps/ISO-8859-1 -i /tmp/af_ZA.ISO-8859-1.17498/stage.1/af_ZA.src /tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.ISO-8859-1 >/dev/tty 2>&1
RWSTD_SRC_ROOT=/tmp/af_ZA.ISO-8859-1.17498/stage.1
export RWSTD_SRC_ROOT
LC_ALL=/tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.ISO-8859-1 ./locale --charmap -l >/tmp/af_ZA.ISO-8859-1.17498/stage.2/charmaps/ISO-8859-1 2>/dev/tty
LC_ALL=/tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.ISO-8859-1 ./locale -ck -h -l LC_ALL >/tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.src 2>/dev/tty
Warning 709: no charmap name
rm /tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.ISO-8859-1
rm: /tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.ISO-8859-1 directory
mkdir -p /tmp/af_ZA.ISO-8859-1.17498/stage.3/charmaps
./localedef -w -c -f /tmp/af_ZA.ISO-8859-1.17498/stage.2/charmaps/ISO-8859-1 -i /tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.src /tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.ISO-8859-1 >/dev/tty 2>&1
RWSTD_SRC_ROOT=/tmp/af_ZA.ISO-8859-1.17498/stage.2
export RWSTD_SRC_ROOT
LC_ALL=/tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.ISO-8859-1 ./locale --charmap -l >/tmp/af_ZA.ISO-8859-1.17498/stage.3/charmaps/ISO-8859-1 2>/dev/tty
Error 399: invalid size at address 9fffffffef79e000: 4294967295, expected 352
LC_ALL=/tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.ISO-8859-1 ./locale -ck -h -l LC_ALL >/tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.src 2>/dev/tty
Error 399: invalid size at address 9fffffffef79e000: 4294967295, expected 352
rm /tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.ISO-8859-1
rm: /tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.ISO-8859-1 directory
diff /tmp/af_ZA.ISO-8859-1.17498/stage.1/charmaps/ISO-8859-1  /tmp/af_ZA.ISO-8859-1.17498/stage.2/charmaps/ISO-8859-1 >/dev/null
diff /tmp/af_ZA.ISO-8859-1.17498/stage.2/charmaps/ISO-8859-1  /tmp/af_ZA.ISO-8859-1.17498/stage.3/charmaps/ISO-8859-1 >/dev/null
diff /tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.src  /tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.src >/dev/null
## AssertionFailed: /tmp/af_ZA.ISO-8859-1.17498/stage.2/af_ZA.src  and /tmp/af_ZA.ISO-8859-1.17498/stage.3/af_ZA.src differ.
rm -rf /tmp/af_ZA.ISO-8859-1.17498/stage.1 /tmp/af_ZA.ISO-8859-1.17498/stage.2 /tmp/af_ZA.ISO-8859-1.17498/stage.3
# +-----------------------+----------+----------+----------+
# | DIAGNOSTIC            |  ACTIVE  |   TOTAL  | INACTIVE |
# +-----------------------+----------+----------+----------+
# | (S7) ASSERTION        |        1 |       16 |      93% |
# +-----------------------+----------+----------+----------+

## Warnings = 0
## Assertions = 16
## FailedAssertions = 1

rm -rf /tmp/af_ZA.ISO-8859-1.17498
{noformat}

> memchk() in locale utility should honor TMPDIR variable
> -------------------------------------------------------
>
>                 Key: STDCXX-1020
>                 URL: https://issues.apache.org/jira/browse/STDCXX-1020
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Utilities
>    Affects Versions: 4.2.1
>         Environment: SunOS clue 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V215
> CC: Sun C++ 5.9 SunOS_sparc 2007/05/03 
>            Reporter: Scott (Yu) Zhong
>            Assignee: Martin Sebor
>             Fix For: 4.2.2
>
>         Attachments: STDCXX-1020.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> TMPDIR should be honored in the utility function memchk

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-1020) memchk() in locale utility should honor TMPDIR variable

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-1020:
---------------------------------

            Patch Info: [Patch Available]
         Fix Version/s: 4.2.2
              Assignee: Martin Sebor
    Remaining Estimate: 1h
     Original Estimate: 1h
               Summary: memchk() in locale utility should honor TMPDIR variable  (was: memchk in utility should honor TMPDIR variable)

Will fix in 4.2.2 (patch is available in this [post|http://markmail.org/message/bwokelgpykqwl4in]).


> memchk() in locale utility should honor TMPDIR variable
> -------------------------------------------------------
>
>                 Key: STDCXX-1020
>                 URL: https://issues.apache.org/jira/browse/STDCXX-1020
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Utilities
>    Affects Versions: 4.2.1
>         Environment: SunOS clue 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V215
> CC: Sun C++ 5.9 SunOS_sparc 2007/05/03 
>            Reporter: Scott (Yu) Zhong
>            Assignee: Martin Sebor
>             Fix For: 4.2.2
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> TMPDIR should be honored in the utility function memchk

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-1020) memchk() in locale utility should honor TMPDIR variable

Posted by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott (Yu) Zhong updated STDCXX-1020:
-------------------------------------

    Attachment: STDCXX-1020.patch

Patch available in the file attachments part of this bug.

> memchk() in locale utility should honor TMPDIR variable
> -------------------------------------------------------
>
>                 Key: STDCXX-1020
>                 URL: https://issues.apache.org/jira/browse/STDCXX-1020
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Utilities
>    Affects Versions: 4.2.1
>         Environment: SunOS clue 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V215
> CC: Sun C++ 5.9 SunOS_sparc 2007/05/03 
>            Reporter: Scott (Yu) Zhong
>            Assignee: Martin Sebor
>             Fix For: 4.2.2
>
>         Attachments: STDCXX-1020.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> TMPDIR should be honored in the utility function memchk

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-1020) memchk() in locale utility should honor TMPDIR variable

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644419#action_12644419 ] 

Martin Sebor commented on STDCXX-1020:
--------------------------------------

Also, if/when you post a new patch, please do try to remember to include the changelog entry with it.

> memchk() in locale utility should honor TMPDIR variable
> -------------------------------------------------------
>
>                 Key: STDCXX-1020
>                 URL: https://issues.apache.org/jira/browse/STDCXX-1020
>             Project: C++ Standard Library
>          Issue Type: Sub-task
>          Components: Utilities
>    Affects Versions: 4.2.1
>         Environment: SunOS clue 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V215
> CC: Sun C++ 5.9 SunOS_sparc 2007/05/03 
>            Reporter: Scott (Yu) Zhong
>            Assignee: Martin Sebor
>             Fix For: 4.2.2
>
>         Attachments: STDCXX-1020.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> TMPDIR should be honored in the utility function memchk

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.