bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xgettext bus error on Solaris


From: Watts, Simon (UK)
Subject: xgettext bus error on Solaris
Date: Wed, 29 Sep 2004 11:56:32 +0100

xgettext 1.14.1 on Solaris 2.7 sparc, built with GCC 3.2

GNU xgettext crashes on Solaris, with a bus error, when trying to extract
certain MessageFormat strings in Java source code.  A minimal example (non
compilable src):

        // A.java
        class A
        {
                String s = getString ("{0} {1}");
        }

        $ xgettext A.java
        Bus Error (core dumped)

This applies to GNU gettext versions 0.14 and 0.14.1, both built natively on
Solaris sparc.  This problem is not seen with xgettext 0.14.1 on Cygwin.

The cause of the crashes appears to be MessageFormat strings, containing
braced numbers, for example:
        "{0} {1}"
The actual cause is pinned to the first occurance of the sequence
'{[:space:]*[0-9]'.  If there are no spaces, xgettext crashes.  Subsequent
braced tokens do not appear to cause problems.

For example:
        "{0} {1}"       ... crash
        "{ 0} {1}"      ... ok

This may be an build/installation issue, but I have no comparison.




PLATFORM AND VERSION DETAILS:

XGETTEXT 1.14.1 build with GCC 3.2 on Solaris 2.7.  Platform specifics:

uname -a: 
        SunOS XXX 5.7 Generic_106541-33 sun4u sparc SUNW,Ultra-5_10 Solaris

xgettext --version:
        xgettext (GNU gettext-tools) 0.14.1

ldd xgettext:
        libgettextsrc-0.14.1.so =>
/usr/gnu/lib/libgettextsrc-0.14.1.so
        libgettextlib-0.14.1.so =>
/usr/gnu/lib/libgettextlib-0.14.1.so
        libintl.so.3 =>  /usr/gnu/lib/libintl.so.3
        libiconv.so.2 =>         /usr/gnu/lib/libiconv.so.2
        libc.so.1 =>     /usr/lib/libc.so.1
        libexpat.so.0 =>         /usr/gnu/lib/libexpat.so.0
        libgcc_s.so.1 =>         /usr/gnu/lib/sparcv9/libgcc_s.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

gcc --version:
        gcc (GCC) 3.2

[g]as --version:
        GNU assembler 2.13
        This assembler was configured for a target of
`sparc-sun-solaris2.7'.

ld --version:
        GNU ld version 2.13




===============================================================
Simon A Watts                          Senior Software Engineer            
                    Northrop Grumman Mission Systems Europe Ltd
---------------------------------------------------------------
Alpha House                            Tel +44 (0) 23 8076 0484
Chilworth Science Park                 Fax +44 (0) 23 8076 0483
Southampton SO16 7NS                  mailto:address@hidden
United Kingdom                                  www.ngms.eu.com
---------------------------------------------------------------
Northrop Grumman Mission Systems Europe is a subsidiary of the        
    Mission System sector of Northrop Grumman Corporation     
===============================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]