Issue Details (XML | Word | Printable)

Key: STDCXX-380
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Martin Sebor
Reporter: Scott (Yu) Zhong
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

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

Created: 30/Mar/07 09:58 PM   Updated: 06/Apr/08 11:42 PM
Return to search
Component/s: Tests
Affects Version/s: 4.2.0
Fix Version/s: 4.2.1

Time Tracking:
Original Estimate: 1h
Original Estimate - 1h
Remaining Estimate: 0h
Time Spent - 1h
Time Spent: 1h
Time Spent - 1h

Environment: openSuSE 10.2, gcc 4.1.2, x86
Issue Links:
Incorporates
 

Severity: Runtime Error
Resolution Date: 06/Apr/08 11:42 PM


 Description  « Hide
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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Farid Zaripov made changes - 02/Nov/07 04:20 PM
Field Original Value New Value
Link This issue is part of STDCXX-639 [ STDCXX-639 ]
Martin Sebor added a comment - 06/Apr/08 11:40 PM
Adjusted Summary. Corrected Component/s, set Severity, scheduled for 4.2.1 and assigned to self.

Martin Sebor made changes - 06/Apr/08 11:40 PM
Component/s 22. Localization [ 12310134 ]
Component/s Tests [ 12310146 ]
Severity Runtime Error
Fix Version/s 4.2.1 [ 12312690 ]
Original Estimate 1h [ 3600 ]
Assignee Martin Sebor [ sebor ]
Remaining Estimate 1h [ 3600 ]
Summary [GCC 4.1.2] segv on 22.locale.ctype [gcc 4.1.2/Linux] SIGSEGV in 22.locale.ctype
Martin Sebor logged work - 06/Apr/08 11:42 PM
Time Worked: 1h
Verified.
Martin Sebor added a comment - 06/Apr/08 11:42 PM
22.locale.ctype runs to completion (albeit with failed assertions) on both SuSE and Red Hat.

Martin Sebor made changes - 06/Apr/08 11:42 PM
Resolution Cannot Reproduce [ 5 ]
Status Open [ 1 ] Closed [ 6 ]
Martin Sebor made changes - 06/Apr/08 11:42 PM
Time Spent 1h [ 3600 ]
Remaining Estimate 1h [ 3600 ] 0h [ 0 ]