Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 66119 invoked from network); 24 Mar 2007 00:34:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Mar 2007 00:34:52 -0000 Received: (qmail 42758 invoked by uid 500); 24 Mar 2007 00:35:00 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 42743 invoked by uid 500); 24 Mar 2007 00:35:00 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 42732 invoked by uid 99); 24 Mar 2007 00:35:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2007 17:35:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2007 17:34:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 292DD714046 for ; Fri, 23 Mar 2007 17:34:32 -0700 (PDT) Message-ID: <12858258.1174696472149.JavaMail.jira@brutus> Date: Fri, 23 Mar 2007 17:34:32 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-370) SIGSEGV in localedef on "<" as negative_sign in LC_MONETARY MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org SIGSEGV in localedef on "<" as negative_sign in LC_MONETARY ----------------------------------------------------------- Key: STDCXX-370 URL: https://issues.apache.org/jira/browse/STDCXX-370 Project: C++ Standard Library Issue Type: Bug Components: Utilities Affects Versions: 4.1.3 Reporter: Martin Sebor The following made up LC_MONETARY section causes localedef to die with a SIGSEGV: $ cat foo.src && ./localedef -w -c -f /nfs/devco/sebor/stdcxx/etc/nls/charmaps/ISO-8859-1 -i foo.src foo || gdb -q ./localedef LC_MONETARY int_curr_symbol "ABCD" currency_symbol "klmn" mon_decimal_point "@" mon_thousands_sep "|" mon_grouping 5 positive_sign "<" negative_sign ">" int_frac_digits 6 frac_digits 7 p_cs_precedes 1 p_sep_by_space 1 n_cs_precedes 1 n_sep_by_space 1 p_sign_posn 1 n_sign_posn 2 END LC_MONETARY Segmentation fault Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) run -w -c -f /nfs/devco/sebor/stdcxx/etc/nls/charmaps/ISO-8859-1 -i foo.src foo Starting program: /build/sebor/stdcxx-gcc-3.4.6-11S/bin/localedef -w -c -f /nfs/devco/sebor/stdcxx/etc/nls/charmaps/ISO-8859-1 -i foo.src foo Detaching after fork from child process 28327. Program received signal SIGSEGV, Segmentation fault. 0x00000000004496a8 in Def::convert_string (this=0x7fbfffdda0, str1=@0x7fbfffdea0) at /amd/devco/sebor/stdcxx/util/def.cpp:286 286 while (str[idx] != '>') { (gdb) where #0 0x00000000004496a8 in Def::convert_string (this=0x7fbfffdda0, str1=@0x7fbfffdea0) at /amd/devco/sebor/stdcxx/util/def.cpp:286 #1 0x000000000045c5d3 in Def::process_monetary (this=0x7fbfffdda0) at /amd/devco/sebor/stdcxx/util/monetary.cpp:142 #2 0x000000000044a13a in Def::process_input (this=0x7fbfffdda0) at /amd/devco/sebor/stdcxx/util/def.cpp:502 #3 0x0000000000403c07 in create_locale (std_src= {> = {}, static npos = 18446744073709551615, static _C_null_ref = {<__rw::__string_ref,std::allocator >> = {_C_refs = 0, _C_cap = 0, _C_size = {_C_size = 0, _C_dummy = 0 '\0'}}, _C_eos = 0 '\0'}, _C_data = 0x6a1608 "foo.src"}, std_cmap= {> = {}, static npos = 18446744073709551615, static _C_null_ref = {<__rw::__string_ref,std::allocator >> = {_C_refs = 0, _C_cap = 0, _C_size = {_C_size = 0, _C_dummy = 0 '\0'}}, _C_eos = 0 '\0'}, _C_data = 0x6a15a8 "/nfs/devco/sebor/stdcxx/etc/nls/charmaps/ISO-8859-1"}, outdir= {> = {}, static npos = 18446744073709551615, static _C_null_ref = {<__rw::__string_ref,std::allocator >> = {_C_refs = 0, _C_cap = 0, _C_size = {_C_size = 0, _C_dummy = 0 '\0'}}, _C_eos = 0 '\0'}, _C_data = 0x68e378 ""}, std_locale= {> = {}, static npos = 18446744073709551615, static _C_null_ref = {<__rw::__string_ref,std::allocator >> = {_C_refs = 0, _C_cap = 0, _C_size = {_C_size = 0, _C_dummy = 0 '\0'}}, _C_eos = 0 '\0'}, _C_data = 0x6a1558 "foo"}, force_output=true, use_ucs=false, no_position=false, link_aliases=false) at /amd/devco/sebor/stdcxx/util/localedef.cpp:210 #4 0x000000000040574f in main (argc=8, argv=0x7fbffff578) at /amd/devco/sebor/stdcxx/util/localedef.cpp:558 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.