incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-485) SIGSEGV repeatedly constructing large number of locales
Date Fri, 13 Jul 2007 23:23:04 GMT
SIGSEGV repeatedly constructing large number of locales
-------------------------------------------------------

                 Key: STDCXX-485
                 URL: https://issues.apache.org/jira/browse/STDCXX-485
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 22. Localization
    Affects Versions: 4.1.3
            Reporter: Martin Sebor
            Assignee: Martin Sebor
             Fix For: 4.2


The program below segfaults:

$ $ uname -sr && gcc -dumpversion
Linux 2.6.5-7.244-smp
3.3.3

$ cat t.cpp && nice make t && LD_LIBRARY_PATH=../lib ./t `locale -a | head
-n 11`
#include <cassert>
#include <locale>

int main (int argc, char *argv[])
{
    for (int j = 0; j != 2; ++j) {
        std::locale locales [64];

        for (int i = 1; i < argc; ++i)
            locales [i] = std::locale (argv [i]);

        for (int i = 1; i < argc; ++i)
            assert (std::has_facet<std::collate<char> >(locales [i]));
    }
}
gcc -c -I/amd/devco/sebor/stdcxx-4.1.3/include/ansi   -pthread -D_RWSTD_USE_CONFIG -I/build/sebor/stdcxx-4.1.3-gcc-3.3.3_43.31-12d/include
-I/amd/devco/sebor/stdcxx-4.1.3/include -I/amd/devco/sebor/stdcxx-4.1.3/examples/include 
-pedantic -nostdinc++ -O2  -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long
-Wcast-align  t.cpp
gcc t.o -o t -pthread -L/build/sebor/stdcxx-4.1.3-gcc-3.3.3_43.31-12d/lib -lstd12d  -lsupc++
-lm
Segmentation fault


-- 
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