[
https://issues.apache.org/jira/browse/STDCXX-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Liviu Nicoara updated STDCXX-1043:
----------------------------------
Summary: [Como como 4.3.10.1] std::cout << std::endl causes SIGSEGV on
Linux (was: [Como como 4.3.10.1] std::cout << std::endl cayses SIGSEGV on
Linux)
> [Como como 4.3.10.1] std::cout << std::endl causes 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira