You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Jaroslaw Zola (JIRA)" <ji...@apache.org> on 2009/09/08 17:04:57 UTC
[jira] Created: (STDCXX-1043) [Como como 4.3.10.1] std::cout <<
std::endl cayses SIGSEGV on Linux
[Como como 4.3.10.1] std::cout << std::endl cayses SIGSEGV on Linux
-------------------------------------------------------------------
Key: STDCXX-1043
URL: https://issues.apache.org/jira/browse/STDCXX-1043
Project: C++ Standard Library
Issue Type: Bug
Components: 22. Localization
Affects Versions: 4.2.1
Environment: Linux Gentoo x86_64, como 4.3.10.1, GCC 4.3.2 backend with -m32 switch.
stdcxx 4.2.1 BUILDTYPE 12s with full locales installed.
Reporter: Jaroslaw Zola
Priority: Critical
The program below
x.cpp:
#include <iostream>
int main() {
std::cout << std::endl;
return 0;
}
results in SIGSEGV.
como -g3 -gstabs x.cpp -o x
./x
Segmentation fault (core dumped)
gdb ./x core
[...]
Core was generated by `./x'.
Program terminated with signal 11, Segmentation fault.
[New process 6685]
#0 0xf7e46cb3 in strchr () from /lib32/libc.so.6
(gdb) bt
#0 0xf7e46cb3 in strchr () from /lib32/libc.so.6
#1 0x080571bf in std::locale::_C_get_std_facet ()
#2 0x08049a6a in _ZN4__rw18__rw_get_std_facetERKSt6localeNS_10__rw_facet13_C_facet_typeEPFPS3_jPKcE (__11910_42___loc=0xff8ac138,
__11911_48___type=__N4__rw10__rw_facet8_C_ctypeE, __11912_48___ctor=0x804a7b9 <__rw::__rw_ct_ctype(unsigned int, char const*)>)
at /opt/stdcxx-4.2.1-como/include/loc/_locale.h:369
#3 0x0804995f in _ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc (this=0x8091ae4, __15295_27___c=10 '\n') at /opt/stdcxx-4.2.1-como/include/rw/_basic_ios.h:225
#4 0x080499fb in _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_ (__16097_39___strm=0x8091ae0) at /opt/stdcxx-4.2.1-como/include/ostream:480
#5 0x08049824 in main () at x.cpp:4
changing LANG, LC_ALL, etc. to C or any other locale seems to have no effect on the program's behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (STDCXX-1043) [Como como 4.3.10.1] std::cout <<
std::endl cayses SIGSEGV on Linux
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752608#action_12752608 ]
Martin Sebor commented on STDCXX-1043:
--------------------------------------
Does an unoptimized non-reentrant build (11s) work? We use EDG eccp only for conformance testing; optimization or thread safety might have problems, shared library builds are known not to work at all.
> [Como como 4.3.10.1] std::cout << std::endl cayses SIGSEGV on Linux
> -------------------------------------------------------------------
>
> Key: STDCXX-1043
> URL: https://issues.apache.org/jira/browse/STDCXX-1043
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 22. Localization
> Affects Versions: 4.2.1
> Environment: Linux Gentoo x86_64, como 4.3.10.1, GCC 4.3.2 backend with -m32 switch.
> stdcxx 4.2.1 BUILDTYPE 12s with full locales installed.
> Reporter: Jaroslaw Zola
> Priority: Critical
>
> The program below
> x.cpp:
> #include <iostream>
> int main() {
> std::cout << std::endl;
> return 0;
> }
> results in SIGSEGV.
> como -g3 -gstabs x.cpp -o x
> ./x
> Segmentation fault (core dumped)
> gdb ./x core
> [...]
> Core was generated by `./x'.
> Program terminated with signal 11, Segmentation fault.
> [New process 6685]
> #0 0xf7e46cb3 in strchr () from /lib32/libc.so.6
> (gdb) bt
> #0 0xf7e46cb3 in strchr () from /lib32/libc.so.6
> #1 0x080571bf in std::locale::_C_get_std_facet ()
> #2 0x08049a6a in _ZN4__rw18__rw_get_std_facetERKSt6localeNS_10__rw_facet13_C_facet_typeEPFPS3_jPKcE (__11910_42___loc=0xff8ac138,
> __11911_48___type=__N4__rw10__rw_facet8_C_ctypeE, __11912_48___ctor=0x804a7b9 <__rw::__rw_ct_ctype(unsigned int, char const*)>)
> at /opt/stdcxx-4.2.1-como/include/loc/_locale.h:369
> #3 0x0804995f in _ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc (this=0x8091ae4, __15295_27___c=10 '\n') at /opt/stdcxx-4.2.1-como/include/rw/_basic_ios.h:225
> #4 0x080499fb in _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_ (__16097_39___strm=0x8091ae0) at /opt/stdcxx-4.2.1-como/include/ostream:480
> #5 0x08049824 in main () at x.cpp:4
> changing LANG, LC_ALL, etc. to C or any other locale seems to have no effect on the program's behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.