stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaroslaw Zola (JIRA)" <>
Subject [jira] Created: (STDCXX-1043) [Como como] std::cout << std::endl cayses SIGSEGV on Linux
Date Tue, 08 Sep 2009 15:04:57 GMT
[Como como] std::cout << std::endl cayses SIGSEGV on Linux

                 Key: STDCXX-1043
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 22. Localization
    Affects Versions: 4.2.1
         Environment: Linux Gentoo x86_64, como, 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

#include <iostream>

int main() {
    std::cout << std::endl;
    return 0;

results in SIGSEGV.

como -g3 -gstabs x.cpp -o 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/
(gdb) bt
#0  0xf7e46cb3 in strchr () from /lib32/
#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
    __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

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

View raw message