You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/07/30 02:31:52 UTC

[jira] Created: (STDCXX-503) std::ctype not thread safe

std::ctype not thread safe
--------------------------

                 Key: STDCXX-503
                 URL: https://issues.apache.org/jira/browse/STDCXX-503
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 22. Localization
         Environment: Intel C++ 10.0 20070613 on Linux/EM64T
            Reporter: Martin Sebor


The 22.locale.ctype.mt thread safety tests aborts at runtime indicating that there is a thread safety issue in the locale implementation. Running the test through the Intel Thread Checker reveals possible causes of the problem.

$ tcheck_cl --format html -o 22.locale.ctype.mt.html 22.locale.ctype.mt --nloops=1000
Intel(R) Thread Checker 3.1 command line instrumentation driver (24400)
Copyright (c) 2007 Intel Corporation. All rights reserved.
Building project

Running:  /build/sebor/stdcxx-icc-10.0.025-15S/tests/22.locale.ctype.mt --nloops=1000

# INFO (S1) (10 lines):
# TEXT: 
# COMPILER: Intel C++, __INTEL_COMPILER = 1000, __INTEL_COMPILER_BUILD_DATE = 20070613, __EDG_VERSION__ = 308
# ENVIRONMENT: x86_64/LP64 running linux-elf (Fedora Core release 6 (Zod)) with glibc 2.5
# FILE: 22.locale.ctype.mt.cpp
# COMPILED: Jul 29 2007, 16:10:58
# COMMENT: thread safety
############################################################

# CLAUSE: lib.locale.ctype

# NOTE (S2) (5 lines):
# TEXT: executing "locale -a > /tmp/tmpfile-wSljVr"
# CLAUSE: lib.locale.ctype
# FILE: process.cpp
# LINE: 270

# INFO (S1) (3 lines):
# TEXT: testing std::ctype<charT> with 2 threads, 1000 iterations each, in 16 locales { "aa_DJ" "aa_DJ.iso88591" "aa_DJ.utf8" "aa_ER" "aa_ER@saaho" "aa_ER.utf8" "aa_ER.utf8@saaho" "aa_ET" "aa_ET.utf8" "af_ZA" "af_ZA.iso88591" "af_ZA.utf8" "am_ET" "am_ET.utf8" "an_ES" "an_ES.iso885915" }
# CLAUSE: lib.locale.ctype

# INFO (S1) (3 lines):
# TEXT: exercising std::ctype<char>
# CLAUSE: lib.locale.ctype

# INFO (S1) (3 lines):
# TEXT: exercising std::ctype<wchar_t>
# CLAUSE: lib.locale.ctype

/home/sebor/stdcxx/tests/localization/22.locale.ctype.mt.cpp:156: void *thread_func(void *): Assertion 'wc == data->wwidened_ [cinx]' failed.
/build/sebor/stdcxx-icc-10.0.025-15S/tests/./22.locale.ctype.mt[0xbd20c5]

Application finished


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


[jira] Updated: (STDCXX-503) std::ctype not thread safe

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

Martin Sebor updated STDCXX-503:
--------------------------------

    Attachment: 22.locale.ctype.mt.html

Attached Intel Thread Checker output for the test.

> std::ctype not thread safe
> --------------------------
>
>                 Key: STDCXX-503
>                 URL: https://issues.apache.org/jira/browse/STDCXX-503
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization
>         Environment: Intel C++ 10.0 20070613 on Linux/EM64T
>            Reporter: Martin Sebor
>         Attachments: 22.locale.ctype.mt.html
>
>
> The 22.locale.ctype.mt thread safety tests aborts at runtime indicating that there is a thread safety issue in the locale implementation. Running the test through the Intel Thread Checker reveals possible causes of the problem.
> $ tcheck_cl --format html -o 22.locale.ctype.mt.html 22.locale.ctype.mt --nloops=1000
> Intel(R) Thread Checker 3.1 command line instrumentation driver (24400)
> Copyright (c) 2007 Intel Corporation. All rights reserved.
> Building project
> Running:  /build/sebor/stdcxx-icc-10.0.025-15S/tests/22.locale.ctype.mt --nloops=1000
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: Intel C++, __INTEL_COMPILER = 1000, __INTEL_COMPILER_BUILD_DATE = 20070613, __EDG_VERSION__ = 308
> # ENVIRONMENT: x86_64/LP64 running linux-elf (Fedora Core release 6 (Zod)) with glibc 2.5
> # FILE: 22.locale.ctype.mt.cpp
> # COMPILED: Jul 29 2007, 16:10:58
> # COMMENT: thread safety
> ############################################################
> # CLAUSE: lib.locale.ctype
> # NOTE (S2) (5 lines):
> # TEXT: executing "locale -a > /tmp/tmpfile-wSljVr"
> # CLAUSE: lib.locale.ctype
> # FILE: process.cpp
> # LINE: 270
> # INFO (S1) (3 lines):
> # TEXT: testing std::ctype<charT> with 2 threads, 1000 iterations each, in 16 locales { "aa_DJ" "aa_DJ.iso88591" "aa_DJ.utf8" "aa_ER" "aa_ER@saaho" "aa_ER.utf8" "aa_ER.utf8@saaho" "aa_ET" "aa_ET.utf8" "af_ZA" "af_ZA.iso88591" "af_ZA.utf8" "am_ET" "am_ET.utf8" "an_ES" "an_ES.iso885915" }
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<char>
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<wchar_t>
> # CLAUSE: lib.locale.ctype
> /home/sebor/stdcxx/tests/localization/22.locale.ctype.mt.cpp:156: void *thread_func(void *): Assertion 'wc == data->wwidened_ [cinx]' failed.
> /build/sebor/stdcxx-icc-10.0.025-15S/tests/./22.locale.ctype.mt[0xbd20c5]
> Application finished

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


[jira] Updated: (STDCXX-503) std::ctype not thread safe

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

Martin Sebor updated STDCXX-503:
--------------------------------

    Affects Version/s: 4.1.2
                       4.1.3
                       4.1.4

There's a good chance this exists in all previous versions of stdcxx.

> std::ctype not thread safe
> --------------------------
>
>                 Key: STDCXX-503
>                 URL: https://issues.apache.org/jira/browse/STDCXX-503
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization, Thread Safety
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4
>         Environment: Intel C++ 10.0 20070613 on Linux/EM64T
>            Reporter: Martin Sebor
>         Attachments: 22.locale.ctype.mt.html
>
>
> The 22.locale.ctype.mt thread safety tests aborts at runtime indicating that there is a thread safety issue in the locale implementation. Running the test through the Intel Thread Checker reveals possible causes of the problem.
> $ tcheck_cl --format html -o 22.locale.ctype.mt.html 22.locale.ctype.mt --nloops=1000
> Intel(R) Thread Checker 3.1 command line instrumentation driver (24400)
> Copyright (c) 2007 Intel Corporation. All rights reserved.
> Building project
> Running:  /build/sebor/stdcxx-icc-10.0.025-15S/tests/22.locale.ctype.mt --nloops=1000
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: Intel C++, __INTEL_COMPILER = 1000, __INTEL_COMPILER_BUILD_DATE = 20070613, __EDG_VERSION__ = 308
> # ENVIRONMENT: x86_64/LP64 running linux-elf (Fedora Core release 6 (Zod)) with glibc 2.5
> # FILE: 22.locale.ctype.mt.cpp
> # COMPILED: Jul 29 2007, 16:10:58
> # COMMENT: thread safety
> ############################################################
> # CLAUSE: lib.locale.ctype
> # NOTE (S2) (5 lines):
> # TEXT: executing "locale -a > /tmp/tmpfile-wSljVr"
> # CLAUSE: lib.locale.ctype
> # FILE: process.cpp
> # LINE: 270
> # INFO (S1) (3 lines):
> # TEXT: testing std::ctype<charT> with 2 threads, 1000 iterations each, in 16 locales { "aa_DJ" "aa_DJ.iso88591" "aa_DJ.utf8" "aa_ER" "aa_ER@saaho" "aa_ER.utf8" "aa_ER.utf8@saaho" "aa_ET" "aa_ET.utf8" "af_ZA" "af_ZA.iso88591" "af_ZA.utf8" "am_ET" "am_ET.utf8" "an_ES" "an_ES.iso885915" }
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<char>
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<wchar_t>
> # CLAUSE: lib.locale.ctype
> /home/sebor/stdcxx/tests/localization/22.locale.ctype.mt.cpp:156: void *thread_func(void *): Assertion 'wc == data->wwidened_ [cinx]' failed.
> /build/sebor/stdcxx-icc-10.0.025-15S/tests/./22.locale.ctype.mt[0xbd20c5]
> Application finished

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


[jira] Resolved: (STDCXX-503) std::ctype not thread safe

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

Travis Vitek resolved STDCXX-503.
---------------------------------

    Resolution: Cannot Reproduce

I haven't been able to reproduce this failure in manual builds, and I'm not seeing it in automated testing either.

> std::ctype not thread safe
> --------------------------
>
>                 Key: STDCXX-503
>                 URL: https://issues.apache.org/jira/browse/STDCXX-503
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization, Thread Safety
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: Intel C++ 10.0 20070613 on Linux/EM64T
>            Reporter: Martin Sebor
>            Assignee: Travis Vitek
>             Fix For: 4.2.1
>
>         Attachments: 22.locale.ctype.mt.html
>
>
> The 22.locale.ctype.mt thread safety tests aborts at runtime indicating that there is a thread safety issue in the locale implementation. Running the test through the Intel Thread Checker reveals possible causes of the problem.
> $ tcheck_cl --format html -o 22.locale.ctype.mt.html 22.locale.ctype.mt --nloops=1000
> Intel(R) Thread Checker 3.1 command line instrumentation driver (24400)
> Copyright (c) 2007 Intel Corporation. All rights reserved.
> Building project
> Running:  /build/sebor/stdcxx-icc-10.0.025-15S/tests/22.locale.ctype.mt --nloops=1000
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: Intel C++, __INTEL_COMPILER = 1000, __INTEL_COMPILER_BUILD_DATE = 20070613, __EDG_VERSION__ = 308
> # ENVIRONMENT: x86_64/LP64 running linux-elf (Fedora Core release 6 (Zod)) with glibc 2.5
> # FILE: 22.locale.ctype.mt.cpp
> # COMPILED: Jul 29 2007, 16:10:58
> # COMMENT: thread safety
> ############################################################
> # CLAUSE: lib.locale.ctype
> # NOTE (S2) (5 lines):
> # TEXT: executing "locale -a > /tmp/tmpfile-wSljVr"
> # CLAUSE: lib.locale.ctype
> # FILE: process.cpp
> # LINE: 270
> # INFO (S1) (3 lines):
> # TEXT: testing std::ctype<charT> with 2 threads, 1000 iterations each, in 16 locales { "aa_DJ" "aa_DJ.iso88591" "aa_DJ.utf8" "aa_ER" "aa_ER@saaho" "aa_ER.utf8" "aa_ER.utf8@saaho" "aa_ET" "aa_ET.utf8" "af_ZA" "af_ZA.iso88591" "af_ZA.utf8" "am_ET" "am_ET.utf8" "an_ES" "an_ES.iso885915" }
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<char>
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<wchar_t>
> # CLAUSE: lib.locale.ctype
> /home/sebor/stdcxx/tests/localization/22.locale.ctype.mt.cpp:156: void *thread_func(void *): Assertion 'wc == data->wwidened_ [cinx]' failed.
> /build/sebor/stdcxx-icc-10.0.025-15S/tests/./22.locale.ctype.mt[0xbd20c5]
> Application finished

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


[jira] Updated: (STDCXX-503) std::ctype not thread safe

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

Martin Sebor updated STDCXX-503:
--------------------------------

             Severity: Runtime Error
    Affects Version/s: 4.2.0
        Fix Version/s: 4.2.1
             Assignee: Travis Vitek

Added 4.2.0 to Affected Versions, scheduled for 4.2.1 and assigned to Travis.

> std::ctype not thread safe
> --------------------------
>
>                 Key: STDCXX-503
>                 URL: https://issues.apache.org/jira/browse/STDCXX-503
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization, Thread Safety
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: Intel C++ 10.0 20070613 on Linux/EM64T
>            Reporter: Martin Sebor
>            Assignee: Travis Vitek
>             Fix For: 4.2.1
>
>         Attachments: 22.locale.ctype.mt.html
>
>
> The 22.locale.ctype.mt thread safety tests aborts at runtime indicating that there is a thread safety issue in the locale implementation. Running the test through the Intel Thread Checker reveals possible causes of the problem.
> $ tcheck_cl --format html -o 22.locale.ctype.mt.html 22.locale.ctype.mt --nloops=1000
> Intel(R) Thread Checker 3.1 command line instrumentation driver (24400)
> Copyright (c) 2007 Intel Corporation. All rights reserved.
> Building project
> Running:  /build/sebor/stdcxx-icc-10.0.025-15S/tests/22.locale.ctype.mt --nloops=1000
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: Intel C++, __INTEL_COMPILER = 1000, __INTEL_COMPILER_BUILD_DATE = 20070613, __EDG_VERSION__ = 308
> # ENVIRONMENT: x86_64/LP64 running linux-elf (Fedora Core release 6 (Zod)) with glibc 2.5
> # FILE: 22.locale.ctype.mt.cpp
> # COMPILED: Jul 29 2007, 16:10:58
> # COMMENT: thread safety
> ############################################################
> # CLAUSE: lib.locale.ctype
> # NOTE (S2) (5 lines):
> # TEXT: executing "locale -a > /tmp/tmpfile-wSljVr"
> # CLAUSE: lib.locale.ctype
> # FILE: process.cpp
> # LINE: 270
> # INFO (S1) (3 lines):
> # TEXT: testing std::ctype<charT> with 2 threads, 1000 iterations each, in 16 locales { "aa_DJ" "aa_DJ.iso88591" "aa_DJ.utf8" "aa_ER" "aa_ER@saaho" "aa_ER.utf8" "aa_ER.utf8@saaho" "aa_ET" "aa_ET.utf8" "af_ZA" "af_ZA.iso88591" "af_ZA.utf8" "am_ET" "am_ET.utf8" "an_ES" "an_ES.iso885915" }
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<char>
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<wchar_t>
> # CLAUSE: lib.locale.ctype
> /home/sebor/stdcxx/tests/localization/22.locale.ctype.mt.cpp:156: void *thread_func(void *): Assertion 'wc == data->wwidened_ [cinx]' failed.
> /build/sebor/stdcxx-icc-10.0.025-15S/tests/./22.locale.ctype.mt[0xbd20c5]
> Application finished

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


[jira] Updated: (STDCXX-503) std::ctype not thread safe

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

Martin Sebor updated STDCXX-503:
--------------------------------

    Component/s: Thread Safety

Added Thread Safety to the list of components affected by this issue.

> std::ctype not thread safe
> --------------------------
>
>                 Key: STDCXX-503
>                 URL: https://issues.apache.org/jira/browse/STDCXX-503
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization, Thread Safety
>         Environment: Intel C++ 10.0 20070613 on Linux/EM64T
>            Reporter: Martin Sebor
>         Attachments: 22.locale.ctype.mt.html
>
>
> The 22.locale.ctype.mt thread safety tests aborts at runtime indicating that there is a thread safety issue in the locale implementation. Running the test through the Intel Thread Checker reveals possible causes of the problem.
> $ tcheck_cl --format html -o 22.locale.ctype.mt.html 22.locale.ctype.mt --nloops=1000
> Intel(R) Thread Checker 3.1 command line instrumentation driver (24400)
> Copyright (c) 2007 Intel Corporation. All rights reserved.
> Building project
> Running:  /build/sebor/stdcxx-icc-10.0.025-15S/tests/22.locale.ctype.mt --nloops=1000
> # INFO (S1) (10 lines):
> # TEXT: 
> # COMPILER: Intel C++, __INTEL_COMPILER = 1000, __INTEL_COMPILER_BUILD_DATE = 20070613, __EDG_VERSION__ = 308
> # ENVIRONMENT: x86_64/LP64 running linux-elf (Fedora Core release 6 (Zod)) with glibc 2.5
> # FILE: 22.locale.ctype.mt.cpp
> # COMPILED: Jul 29 2007, 16:10:58
> # COMMENT: thread safety
> ############################################################
> # CLAUSE: lib.locale.ctype
> # NOTE (S2) (5 lines):
> # TEXT: executing "locale -a > /tmp/tmpfile-wSljVr"
> # CLAUSE: lib.locale.ctype
> # FILE: process.cpp
> # LINE: 270
> # INFO (S1) (3 lines):
> # TEXT: testing std::ctype<charT> with 2 threads, 1000 iterations each, in 16 locales { "aa_DJ" "aa_DJ.iso88591" "aa_DJ.utf8" "aa_ER" "aa_ER@saaho" "aa_ER.utf8" "aa_ER.utf8@saaho" "aa_ET" "aa_ET.utf8" "af_ZA" "af_ZA.iso88591" "af_ZA.utf8" "am_ET" "am_ET.utf8" "an_ES" "an_ES.iso885915" }
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<char>
> # CLAUSE: lib.locale.ctype
> # INFO (S1) (3 lines):
> # TEXT: exercising std::ctype<wchar_t>
> # CLAUSE: lib.locale.ctype
> /home/sebor/stdcxx/tests/localization/22.locale.ctype.mt.cpp:156: void *thread_func(void *): Assertion 'wc == data->wwidened_ [cinx]' failed.
> /build/sebor/stdcxx-icc-10.0.025-15S/tests/./22.locale.ctype.mt[0xbd20c5]
> Application finished

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