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-289) localedef SIAGABRT on an incomplete day definition in LC_TIME
Date Sun, 17 Sep 2006 21:26:22 GMT
localedef SIAGABRT on an incomplete day definition in LC_TIME
-------------------------------------------------------------

                 Key: STDCXX-289
                 URL: http://issues.apache.org/jira/browse/STDCXX-289
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 4.1.2, 4.1.3
         Environment: all
            Reporter: Martin Sebor
         Assigned To: Martin Sebor
             Fix For: 4.2


The localedef utility aborts on LC_TIME definitions containing fewer than the usual number
of strings for multistring keywords such as day, abday, etc,

$ cat charmap && cat locale.src && ../bin/localedef -c -w -f charmap -i locale.src
dummy || gdb -q ../bin/localedef core
CHARMAP
END CHARMAP
LC_TIME
day "Sun";"Mon";"Tue"
END LC_TIME
Assertion failed: str1[0] == '\"', file /build/sebor/stdcxx-4.1.3/util/def.cpp, line 254
Abort (core dumped)
Core was generated by `../bin/localedef -c -w -f charmap -i locale.src dummy'.
Program terminated with signal 6, Aborted.
...
#0  0xff31d3d4 in _libc_kill () from /usr/lib/libc.so.1
(gdb) where
#0  0xff31d3d4 in _libc_kill () from /usr/lib/libc.so.1
#1  0xff2b5698 in abort () from /usr/lib/libc.so.1
#2  0xff2b5938 in _assert () from /usr/lib/libc.so.1
#3  0x0007e050 in Def::convert_string (this=0xffbfe910, str1=@0xffbfe990)
    at /build/sebor/stdcxx-4.1.3/util/def.cpp:254
#4  0x0009f964 in Def::process_time (this=0xffbfe910)
    at /build/sebor/stdcxx-4.1.3/util/time.cpp:184
#5  0x0007d5e0 in Def::process_input (this=0xffbfe910)
    at /build/sebor/stdcxx-4.1.3/util/def.cpp:506
#6  0x00013cac in create_locale ()
#7  0x00015a2c in main (argc=8, argv=0xffbffb8c)
    at /build/sebor/stdcxx-4.1.3/util/localedef.cpp:560


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message