Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-380

[gcc 4.1.2/Linux] SIGSEGV in 22.locale.ctype

    XMLWordPrintableJSON

    Details

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

      openSuSE 10.2, gcc 4.1.2, x86

    • Severity:
      Runtime Error

      Description

      http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200703.mbox/%3cD730FF7CEDDCA64483F9E99D999A158B1556FB@qxvcexch01.ad.quovadx.com%3e

      stack trace:

      #0 0xb7d9dad9 in memchr () from /lib/libc.so.6
      #1 0xb7f0012a in _rw::_rw_memattr (addr=0xffffffa5, nbytes=4294967295, attr=-1) at /home/scottz/stdcxx/src/memattr.cpp:211
      #2 0x08069dca in _rw_fmtarray<char> (spec=@0xbfa194a4, buf=@0xbfa19ad0,
      array=0xffffffa5 <Address 0xffffffa5 out of bounds>, nelems=4294967295, flags=3)
      at /home/scottz/stdcxx/tests/src/printf.cpp:1936
      #3 0x0805f073 in _rw_fmtstr (spec=@0xbfa194a4, buf=@0xbfa19ad0, str=0xffffffa5 <Address 0xffffffa5 out of bounds>,
      len=4294967295) at /home/scottz/stdcxx/tests/src/printf.cpp:2370
      #4 0x08062096 in _rw_vasnprintf_c99 (pspec=0xbfa193dc, paramno=5, buf=@0xbfa19ad0, pva=0xbfa19ac8)
      at /home/scottz/stdcxx/tests/src/printf.cpp:597
      #5 0x08063d42 in _rw_pvasnprintf (buf=@0xbfa19ad0, fmt=0x807159c ") returned false in locale(%#s)", pva=0xbfa19ac8)
      at /home/scottz/stdcxx/tests/src/printf.cpp:901
      #6 0x080640cc in rw_vasnprintf (pbuf=0xbfa19b9c, pbufsize=0xbfa19ae0,
      fmt=0x8071514 "ctype<%s>::is (std::ctype_base::alpha, %

      {#lc}) || !ctype<char>::is (std::ctype_base::alpha, ctype<%1$s>::narrow (%{#lc}

      , %

      {#c}) = %{#lc}) returned false in locale(%#s)", varg=0xbfa19c50 "G\034\a\b\220")
      at /home/scottz/stdcxx/tests/src/printf.cpp:1013
      #7 0x0805b4ab in _rw_vissue_diag (diag=diag_assert, severity=7, file=0x0, line=1120,
      fmt=0x8071514 "ctype<%s>::is (std::ctype_base::alpha, %{#lc}) || !ctype<char>::is (std::ctype_base::alpha, ctype<%1$s>::narrow (%{#lc}, %{#c}

      ) = %

      {#lc}) returned false in locale(%#s)", va=0xbfa19c50 "G\034\a\b\220")
      at /home/scottz/stdcxx/tests/src/driver.cpp:1244
      #8 0x0805b9e2 in _rw_vdiag (diag=diag_assert, severity=7, file=0x0, line=1120,
      fmt=0x8071514 "ctype<%s>::is (std::ctype_base::alpha, %{#lc}

      ) || !ctype<char>::is (std::ctype_base::alpha, ctype<%1$s>::narrow (%

      {#lc}, %{#c}) = %{#lc}

      ) returned false in locale(%#s)", va=0xbfa19c50 "G\034\a\b\220")
      at /home/scottz/stdcxx/tests/src/driver.cpp:1428
      #9 0x0805bb5a in rw_assert (success=0, file=0x0, line=1120,
      fmt=0x8071514 "ctype<%s>::is (std::ctype_base::alpha, %

      {#lc}) || !ctype<char>::is (std::ctype_base::alpha, ctype<%1$s>::narrow (%{#lc}

      , %

      {#c}

      ) = %

      {#lc}

      ) returned false in locale(%#s)") at /home/scottz/stdcxx/tests/src/driver.cpp:1481
      #10 0x0805696f in test_narrow_widen<wchar_t> (cname=0x8071c47 "wchar_t")
      at /home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp:1120
      #11 0x080577f9 in test_libc<wchar_t> (cname=0x8071c47 "wchar_t")
      at /home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp:1417
      #12 0x0805784e in run_test<wchar_t> (cname=0x8071c47 "wchar_t")
      at /home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp:1680
      #13 0x0804b802 in run_test () at /home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp:1689
      #14 0x0805c0a5 in rw_vtest (argc=1, argv=0xbfa1aff4,
      file_name=0x8070154 "/home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp",
      clause=0x8070141 "lib.category.ctype", comment=0x0, fun=0x804b7d4 <run_test>, optstr=0x8070140 "",
      va=0xbfa1af4c "") at /home/scottz/stdcxx/tests/src/driver.cpp:1038
      #15 0x0805c40e in rw_test (argc=1, argv=0xbfa1aff4,
      fname=0x8070154 "/home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp",
      clause=0x8070141 "lib.category.ctype", comment=0x0, testfun=0x804b7d4 <run_test>, optstr=0x8070140 "")
      at /home/scottz/stdcxx/tests/src/driver.cpp:1136
      #16 0x0804a816 in main (argc=Cannot access memory at address 0x0
      ) at /home/scottz/stdcxx/tests/localization/22.locale.ctype.cpp:1703

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebor Martin Sebor
                Reporter:
                scottz Scott (Yu) Zhong
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h