stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STDCXX-62) std::money_get::get() SIGABRT on EOF
Date Fri, 18 Apr 2008 17:36:21 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor closed STDCXX-62.
------------------------------


Regression test added in [r649620|http://svn.apache.org/viewvc?rev=649620&view=rev].
Closing.

> std::money_get::get() SIGABRT on EOF
> ------------------------------------
>
>                 Key: STDCXX-62
>                 URL: https://issues.apache.org/jira/browse/STDCXX-62
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization
>    Affects Versions: 4.1.2
>         Environment: all
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> The program below aborts in money_get<char>::do_get():
> $ cat t.cpp && make t -r && ./t 2>&1 | c++filt
> #include <ios>
> #include <locale>
> int main ()
> {
>     typedef std::money_get<char> MoneyGet;
>     const MoneyGet &mg = std::use_facet<MoneyGet>(std::locale::classic ());
>     std::ios io (0);
>     std::ios::iostate err;
>     long double x;
>     mg.get (std::istreambuf_iterator<char>(), std::istreambuf_iterator<char>(),
>             false, io, err, x);
> }
> gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG   -pthreads -D_RWSTD_USE_CONFIG
-I/build/sebor/gcc-3.4.3-15s/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include
 -pedantic -nostdinc++ -g  -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long
 t.cpp
> gcc t.o -o t -pthreads -L/build/sebor/gcc-3.4.3-15s/lib -lstd15s  -lsupc++ -lm
> /build/sebor/dev/stdlib/include/rw/_ioiter.h:146: typename std::istreambuf_iterator<_CharT,
_Traits>::char_type std::istreambuf_iterator<_CharT, _Traits>::operator*() const
[with _CharT = char, _Traits = std::char_traits<char>]: Assertion '0 != _C_sb' failed.
> /build/sebor/gcc-3.4.3-15s/examples/t:__rw::__rw_assert_fail(char const*, char const*,
int, char const*)+0x7c
> /build/sebor/gcc-3.4.3-15s/examples/t:std::istreambuf_iterator<char, std::char_traits<char>
>::operator*() const+0x38
> /build/sebor/gcc-3.4.3-15s/examples/t:std::money_get<char, std::istreambuf_iterator<char,
std::char_traits<char> > >::_C_get(std::istreambuf_iterator<char, std::char_traits<char>
>, std::istreambuf_iterator<char, std::char_traits<char> >, bool, std::ios_base&,
__rw::__rw_iostate&, void*, std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*) const+0x61c
> /build/sebor/gcc-3.4.3-15s/examples/t:std::money_get<char, std::istreambuf_iterator<char,
std::char_traits<char> > >::do_get(std::istreambuf_iterator<char, std::char_traits<char>
>, std::istreambuf_iterator<char, std::char_traits<char> >, bool, std::ios_base&,
__rw::__rw_iostate&, long double&) const+0x6c
> /build/sebor/gcc-3.4.3-15s/examples/t:std::money_get<char, std::istreambuf_iterator<char,
std::char_traits<char> > >::get(std::istreambuf_iterator<char, std::char_traits<char>
>, std::istreambuf_iterator<char, std::char_traits<char> >, bool, std::ios_base&,
__rw::__rw_iostate&, long double&) const+0x78
> /build/sebor/gcc-3.4.3-15s/examples/t:main+0x90
> /build/sebor/gcc-3.4.3-15s/examples/t:_start+0x5c
> Abort (core dumped)

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


Mime
View raw message