bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] Bug#608181: /usr/bin/xgettext: xgettext segmentation fault


From: Santiago Vila
Subject: [bug-gettext] Bug#608181: /usr/bin/xgettext: xgettext segmentation fault (fwd)
Date: Fri, 29 Jul 2011 10:58:21 +0200 (CEST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

Hello.

I received this report from the Debian bug system.

I asked the submitter for a way to reproduce it and he sent me a
tarball including all the required files, so I have made this short
recipe to reproduce the segfault:

wget http://people.debian.org/~sanvila/bug-608181/wp-mini-gettext-pb.tar.bz2
tar xjvf wp-mini-gettext-pb.tar.bz2 
cd wp/wp-content/languages
./extractpo.sh

Thanks.

---------- Forwarded message ----------
From: "Jean-Luc Coulon (f5ibh)" <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Tue, 28 Dec 2010 12:59:55 +0100
Subject: Bug#608181: /usr/bin/xgettext: xgettext segmentation fault

Package: gettext
Version: 0.18.1.1-3
Severity: important
File: /usr/bin/xgettext

Hi,

While trying to extract translatable strings (from WordPress), I get
a Segmentation fault.

I use the following command:

xgettext --width=80 --from-code=utf-8 \
        --keyword=__ --keyword=_e --keyword=esc_attr__ --keyword=esc_attr_e \
        --keyword=esc_html__ --keyword=esc_html_e \
        --keyword=_x:1,2c --keyword=esc_attr_x:1,2c
        --keyword=esc_html_x:1,2c \
        --keyword=_n:1,2 --keyword=_nx:1,2,4c \
        --keyword=_ex:1,2c \
        --keyword=_n_noop:1,2 --keyword=_nx_noop:1,2,3c \
        --default-domain=wp \
        --language=php \
        --files-from=fichiersphp.lst \
        --exclude-file=cities.pot \
        --exclude-file=ms.pot \
        --output=wp.pot

If I remove the option "--exclude-file=ms.pot" (this file is extracted a
similar way), I've not the Segmentation Fault.

If I run it from gdb, I get:
Program received signal SIGSEGV, Segmentation fault.
remember_a_message_plural (mp=0x0, string=0x84bca0 "%s users", context=..., 
    pos=0x84f570, comment=<value optimized out>) at xgettext.c:2438
    2438          if (mp->msgid_plural == NULL)
    (gdb) bt
    #0  remember_a_message_plural (mp=0x0, string=0x84bca0 "%s users", 
        context=..., pos=0x84f570, comment=<value optimized out>)
        at xgettext.c:2438
    #1  0x0000000000408aaf in arglist_parser_done (ap=0x84f4d0, 
        argnum=<value optimized out>) at xgettext.c:2937
    #2  0x0000000000421e71 in extract_balanced (mlp=<value optimized out>, 
        delim=<value optimized out>, outer_context=..., context_iter=..., 
        argparser=<value optimized out>) at x-php.c:1513
    #3  0x0000000000421f1c in extract_balanced (mlp=<value optimized out>, 
        delim=<value optimized out>, outer_context=..., context_iter=..., 
        argparser=<value optimized out>) at x-php.c:1466
    #4  0x0000000000421f1c in extract_balanced (mlp=<value optimized out>, 
        delim=<value optimized out>, outer_context=..., context_iter=..., 
        argparser=<value optimized out>) at x-php.c:1466
    #5  0x00000000004221ea in extract_php (f=<value optimized out>, 
        real_filename=<value optimized out>, 
        logical_filename=<value optimized out>, flag_table=0x636580, 
        mdlp=<value optimized out>) at x-php.c:1586
    #6  0x000000000040741f in extract_from_file (
        file_name=0x701f60 "../../wp-admin/ms-admin.php", extractor=..., 
        mdlp=<value optimized out>) at xgettext.c:1957
    #7  0x0000000000407ed6 in main (argc=<value optimized out>, 
        argv=<value optimized out>) at xgettext.c:779
(gdb) 


Regards

Jean-Luc



reply via email to

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