Package: libstdc++6 Version: 4.2-20070609-1 Severity: important File: /usr/lib/libstdc++.so.6
Hello, compiling and running the attached program executable I got an exception (gdb) run Starting program: /tmp/a.out terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Program received signal SIGABRT, Aborted. 0xb7f87410 in __kernel_vsyscall () (gdb) bt #0 0xb7f87410 in __kernel_vsyscall () #1 0xb7d2ad60 in raise () from /lib/i686/cmov/libc.so.6 #2 0xb7d2c5b1 in abort () from /lib/i686/cmov/libc.so.6#3 0xb7f2df30 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
#4 0xb7f2b7d5 in ?? () from /usr/lib/libstdc++.so.6 #5 0xb7f2b812 in std::terminate () from /usr/lib/libstdc++.so.6 #6 0xb7f2b93a in __cxa_throw () from /usr/lib/libstdc++.so.6#7 0xb7ec4967 in std::__throw_runtime_error () from /usr/lib/libstdc++.so.6 #8 0xb7f2a3a1 in std::locale::facet::_S_create_c_locale () from /usr/lib/libstdc++.so.6
#9 0xb7ecb365 in std::locale::_Impl::_Impl () from /usr/lib/libstdc++.so.6 #10 0xb7ecccbd in std::locale::locale () from /usr/lib/libstdc++.so.6 #11 0x080484e9 in main () at cpptest.cpp:6 However, the empty string should be valid as a locale name, because the C++ standard says in [lib.locale.cons]The set of valid string argument values is "C", "", and any implementation-defined values.
The bug wasn't present in previous versions. Regards Jiri Palecek -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.20.3-rt8 (PREEMPT)Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2) (ignored: LC_ALL set to cs_CZ)
Shell: /bin/sh linked to /bin/dash Versions of packages libstdc++6 depends on:ii gcc-4.2-base 4.2-20070609-1 The GNU Compiler Collection (base ii libc6 2.5-11 GNU C Library: Shared libraries
ii libgcc1 1:4.2-20070609-1 GCC support library libstdc++6 recommends no packages. -- no debconf information
cpptest.cpp
Description: Binary data