C++ Standard Library
  1. C++ Standard Library
  2. STDCXX-608

test driver support for canonical locale names

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1
    • Component/s: Tests
    • Labels:
      None
    • Environment:

      IBM XLC++ 9.0/AIX 5.3

    • Severity:
      Incorrect Behavior

      Description

      When compiled with IBM XLC++ 9.0 on AIX 5.3, the majority of ctype tests appear to hang (or time out). The output below has been copied from a 12a log for the latest trunk:

      22.locale.ctype.is                HUP    0                         7.330 259.490 300.090
      22.locale.ctype.narrow            HUP    0                         7.630 269.980 300.090
      22.locale.ctype                   HUP    0                         8.090 274.500 300.130
      22.locale.ctype.scan                0    0  540926      2    99%   4.320 140.280 154.680
      22.locale.ctype.tolower           HUP    0                         7.720 275.110 300.090
      22.locale.ctype.toupper           HUP    0                         7.860 282.690 300.100
      
      There are no Sub-Tasks for this issue.

        Activity

        Martin Sebor created issue -
        Hide
        Martin Sebor added a comment -

        Now that 4.2.0 is released, set Affects Version(s) accordingly.

        Show
        Martin Sebor added a comment - Now that 4.2.0 is released, set Affects Version(s) accordingly.
        Martin Sebor made changes -
        Field Original Value New Value
        Affects Version/s trunk [ 12312676 ]
        Affects Version/s 4.2 [ 12311945 ]
        Hide
        Martin Sebor added a comment -

        See the following thread for a discussion of these and similar problems:
        http://www.nabble.com/low-hanging-fruit-while-cleaning-up-test-failures-tf4766995.html#a13634803

        Show
        Martin Sebor added a comment - See the following thread for a discussion of these and similar problems: http://www.nabble.com/low-hanging-fruit-while-cleaning-up-test-failures-tf4766995.html#a13634803
        Travis Vitek made changes -
        Assignee Travis Vitek [ vitek ]
        Travis Vitek made changes -
        Attachment stdcxx-608.patch [ 12373884 ]
        Travis Vitek made changes -
        Attachment countries [ 12373885 ]
        Attachment languages [ 12373887 ]
        Attachment encodings [ 12373886 ]
        Martin Sebor logged work - 26/Jan/08 23:00
        • Time Spent:
          2h
           
          Reviewed and commented on Travis' prototype.
        Martin Sebor logged work - 28/Jan/08 21:47
        • Time Spent:
          2h
           
          Discussed query syntax and general design with Travis.
        Travis Vitek logged work - 28/Jan/08 23:55
        • Time Spent:
          2.5h
           
          Response to dev@ list feedback from Martin. Meeting with Martin.
        Travis Vitek made changes -
        Original Estimate 24h [ 86400 ]
        Remaining Estimate 24h [ 86400 ]
        Description When compiled with IBM XLC++ 9.0 on AIX 5.3, the majority of ctype tests appear to hang (or time out). The output below has been copied from a 12a log for the latest trunk:
         
        22.locale.ctype.is HUP 0 7.330 259.490 300.090
        22.locale.ctype.narrow HUP 0 7.630 269.980 300.090
        22.locale.ctype HUP 0 8.090 274.500 300.130
        22.locale.ctype.scan 0 0 540926 2 99% 4.320 140.280 154.680
        22.locale.ctype.tolower HUP 0 7.720 275.110 300.090
        22.locale.ctype.toupper HUP 0 7.860 282.690 300.100
        When compiled with IBM XLC++ 9.0 on AIX 5.3, the majority of ctype tests appear to hang (or time out). The output below has been copied from a 12a log for the latest trunk:

        {noformat}
        22.locale.ctype.is HUP 0 7.330 259.490 300.090
        22.locale.ctype.narrow HUP 0 7.630 269.980 300.090
        22.locale.ctype HUP 0 8.090 274.500 300.130
        22.locale.ctype.scan 0 0 540926 2 99% 4.320 140.280 154.680
        22.locale.ctype.tolower HUP 0 7.720 275.110 300.090
        22.locale.ctype.toupper HUP 0 7.860 282.690 300.100
        {noformat}
        Travis Vitek made changes -
        Time Spent 2.5h [ 9000 ]
        Remaining Estimate 24h [ 86400 ] 21.5h [ 77400 ]
        Hide
        Martin Sebor added a comment -

        Travis, I think it might make sense to rename this issue to reflect the general solution we've decided to implement, something like: test driver support for canonical locale names and add subtasks for the major components, i.e.,

        • function to implement shell brace expansion
        • mapping from canonical locale names to native names
        • modify rw_locales() to accept queries with canonical locale names
        Show
        Martin Sebor added a comment - Travis, I think it might make sense to rename this issue to reflect the general solution we've decided to implement, something like: test driver support for canonical locale names and add subtasks for the major components, i.e., function to implement shell brace expansion mapping from canonical locale names to native names modify rw_locales() to accept queries with canonical locale names
        Martin Sebor made changes -
        Remaining Estimate 21.5h [ 77400 ] 19.5h [ 70200 ]
        Time Spent 2.5h [ 9000 ] 4.5h [ 16200 ]
        Martin Sebor made changes -
        Remaining Estimate 19.5h [ 70200 ] 17.5h [ 63000 ]
        Time Spent 4.5h [ 16200 ] 6.5h [ 23400 ]
        Travis Vitek made changes -
        Summary [IBM XLC++ 9.0/AIX 5.3] SIGHUP in ctype tests test driver support for canonical locale names
        Travis Vitek logged work - 06/Feb/08 20:05
        Travis Vitek made changes -
        Time Spent 6.5h [ 23400 ] 8.5h [ 30600 ]
        Remaining Estimate 17.5h [ 63000 ] 15.5h [ 55800 ]
        Travis Vitek made changes -
        Remaining Estimate 15.5h [ 55800 ] 0h [ 0 ]
        Travis Vitek made changes -
        Attachment countries [ 12373885 ]
        Travis Vitek made changes -
        Attachment encodings [ 12373886 ]
        Travis Vitek made changes -
        Attachment languages [ 12373887 ]
        Travis Vitek made changes -
        Attachment stdcxx-608.patch [ 12373884 ]
        Travis Vitek logged work - 07/Apr/08 18:49
        • Time Spent:
          1h
           
          Verify that new locale query code is compiles on most systems.
        Travis Vitek made changes -
        Time Spent 8.5h [ 30600 ] 9.5h [ 34200 ]
        Hide
        Travis Vitek added a comment -

        I think this is done. One change that we could implement would be to eliminate rw_locales(), or at least implement it in terms of rw_locale_query(). I opted to keep rw_locales() in place for the time being because it does offer some functionality not provided by rw_locale_query() [namely ensuring that the C locale appears at the head of the locale list], and to reduce the number of tests modified.

        Show
        Travis Vitek added a comment - I think this is done. One change that we could implement would be to eliminate rw_locales() , or at least implement it in terms of rw_locale_query() . I opted to keep rw_locales() in place for the time being because it does offer some functionality not provided by rw_locale_query() [namely ensuring that the C locale appears at the head of the locale list] , and to reduce the number of tests modified.
        Hide
        Travis Vitek added a comment -

        Seems to be working on trunk. Will close when merged to 4.2.x.

        Show
        Travis Vitek added a comment - Seems to be working on trunk. Will close when merged to 4.2.x.
        Travis Vitek made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Travis Vitek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        168d 14h 30m 1 Travis Vitek 07/Apr/08 20:41
        Resolved Resolved Closed Closed
        28d 5h 14m 1 Travis Vitek 06/May/08 01:56

          People

          • Assignee:
            Travis Vitek
            Reporter:
            Martin Sebor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 44h Original Estimate - 44h
              44h
              Remaining:
              Time Spent - 82.5h Remaining Estimate - 11h
              11h
              Logged:
              Time Spent - 82.5h Remaining Estimate - 11h
              82.5h

                Development