Bug#608181: /usr/bin/xgettext: xgettext segmentation fault (fwd)

2011-08-05 Thread Santiago Vila
B1;2801;0cOn Sun, 31 Jul 2011, Jean-Luc Coulon (f5ibh) wrote:

 I is a consequence the way I've got an unstripped version of xgettext:
 
 1st, I grabbed the debian source (apt-get source gettext)
 2dn I applied your patch to the tree
 3rd I build it (debuid) and installed it (debi)
 
 As the default behaviour is to build binaries unstripped, I moved the 
 unstripped version from the tree to /usr/bin.

Ok, some comments:

*) Sorry, I forgot: Please reply to the 608...@bugs.debian.org
address, so that I can receive all the emails automatically. [ Not a
big problem because I can retrieve past messages from the web page ].

*) You don't need to move binaries around, you can also do this

export DEB_BUILD_OPTIONS=noopt,nostrip
dpkg-buildpackage

and you get .deb pacakges with unstripped binaries and without
optimization that you can install with dpkg -i. This is not just for
gettext, every Debian package should support DEB_BUILD_OPTIONS
according to policy.

*) I can't reproduce the segfault anymore after applying the patch by
Bruno (thanks a lot, Bruno!) which is why I have uploaded a new
version and closed the bug. If you can still reproduce it, just report
another bug as Bruno says.

Thanks.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608181: /usr/bin/xgettext: xgettext segmentation fault

2011-07-28 Thread Santiago Vila
  As I don't have the contents of fichiersphp.lst, this is imposible for me.
  
  Could you please provide a minimal test case which is complete, so
  that I can forward this upstream?
  
  Thanks.
 
 Please find it attached.
 It is the list of *.php files from a wordpress tree.

Sorry. I'm still unable to reproduce it.

Please provide a *minimal* test case, which is complete*.

By complete I mean that every time the command line references a
file, you should send me the file as well.

You don't need to send me all the .php files. If you tell me that they
are taken *verbatim* from some known wordpress version (preferably,
the latest that you can find), that's ok.

By minimal I mean that you should try to trim both the command line
and the number of files as much as you can and see if you can
reproduce it with a shorter command line or less files.

Thanks.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608181: /usr/bin/xgettext: xgettext segmentation fault

2011-05-03 Thread Santiago Vila
On Tue, 28 Dec 2010, Jean-Luc Coulon (f5ibh) wrote:

 Package: gettext
 Version: 0.18.1.1-3
 Severity: important
 File: /usr/bin/xgettext
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 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

I should forward this upstream, but before doing so, we should find a
minimal test case showing the error.

As I don't have the contents of fichiersphp.lst, this is imposible for me.

Could you please provide a minimal test case which is complete, so
that I can forward this upstream?

Thanks.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#608181: /usr/bin/xgettext: xgettext segmentation fault

2011-05-03 Thread Jean-Luc Coulon
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 03/05/2011 14:04, Santiago Vila a écrit :
 On Tue, 28 Dec 2010, Jean-Luc Coulon (f5ibh) wrote:

[... ]


 I should forward this upstream, but before doing so, we should find a
 minimal test case showing the error.
 
 As I don't have the contents of fichiersphp.lst, this is imposible for me.
 
 Could you please provide a minimal test case which is complete, so
 that I can forward this upstream?
 
 Thanks.

Please find it attached.
It is the list of *.php files from a wordpress tree.

Regards

Jean-Luc
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNv/ngUdGGXzzGnNARAhKZAJwPPJTQ0yF+T8zJ8F8kwVHMiuuhgACcCqFN
DXTNtJa1IqBrR5VngG7aZi0=
=a7O8
-END PGP SIGNATURE-
../../wp-rss.php
../../wp-cron.php
../../wp-feed.php
../../wp-blog-header.php
../../wp-trackback.php
../../wp-content/languages/fichiersphp.lst
../../wp-content/index.php
../../wp-content/plugins/hello.php
../../wp-content/plugins/index.php
../../wp-content/plugins/akismet/admin.php
../../wp-content/plugins/akismet/akismet.php
../../wp-content/plugins/akismet/legacy.php
../../wp-content/plugins/akismet/widget.php
../../wp-pass.php
../../wp-activate.php
../../wp-rss2.php
../../wp-login.php
../../wp-load.php
../../wp-commentsrss2.php
../../wp-atom.php
../../wp-links-opml.php
../../xmlrpc.php
../../wp-includes/feed-atom-comments.php
../../wp-includes/vars.php
../../wp-includes/link-template.php
../../wp-includes/ms-deprecated.php
../../wp-includes/cron.php
../../wp-includes/taxonomy.php
../../wp-includes/class-wp-ajax-response.php
../../wp-includes/feed-rdf.php
../../wp-includes/script-loader.php
../../wp-includes/class-wp-http-ixr-client.php
../../wp-includes/ms-blogs.php
../../wp-includes/feed-rss.php
../../wp-includes/class-wp-error.php
../../wp-includes/post-template.php
../../wp-includes/feed-rss2-comments.php
../../wp-includes/plugin.php
../../wp-includes/class-json.php
../../wp-includes/class.wp-dependencies.php
../../wp-includes/registration.php
../../wp-includes/compat.php
../../wp-includes/load.php
../../wp-includes/cache.php
../../wp-includes/atomlib.php
../../wp-includes/class-phpass.php
../../wp-includes/class-oembed.php
../../wp-includes/functions.wp-scripts.php
../../wp-includes/theme-compat/footer.php
../../wp-includes/theme-compat/comments-popup.php
../../wp-includes/theme-compat/header.php
../../wp-includes/theme-compat/sidebar.php
../../wp-includes/theme-compat/comments.php
../../wp-includes/wp-db.php
../../wp-includes/bookmark.php
../../wp-includes/class-snoopy.php
../../wp-includes/class-simplepie.php
../../wp-includes/version.php
../../wp-includes/bookmark-template.php
../../wp-includes/class-phpmailer.php
../../wp-includes/widgets.php
../../wp-includes/ms-default-filters.php
../../wp-includes/default-widgets.php
../../wp-includes/capabilities.php
../../wp-includes/post.php
../../wp-includes/media.php
../../wp-includes/class-wp-walker.php
../../wp-includes/ms-default-constants.php
../../wp-includes/http.php
../../wp-includes/admin-bar.php
../../wp-includes/functions.php
../../wp-includes/deprecated.php
../../wp-includes/class-feed.php
../../wp-includes/class-http.php
../../wp-includes/wp-diff.php
../../wp-includes/feed-atom.php
../../wp-includes/category-template.php
../../wp-includes/default-embeds.php
../../wp-includes/default-constants.php
../../wp-includes/ms-files.php
../../wp-includes/kses.php
../../wp-includes/rss-functions.php
../../wp-includes/class-smtp.php
../../wp-includes/class-wp.php
../../wp-includes/general-template.php
../../wp-includes/nav-menu-template.php
../../wp-includes/formatting.php
../../wp-includes/user.php
../../wp-includes/rewrite.php
../../wp-includes/comment-template.php
../../wp-includes/feed.php
../../wp-includes/nav-menu.php
../../wp-includes/Text/Diff.php
../../wp-includes/Text/Diff/Renderer.php
../../wp-includes/Text/Diff/Engine/native.php
../../wp-includes/Text/Diff/Engine/string.php
../../wp-includes/Text/Diff/Engine/shell.php
../../wp-includes/Text/Diff/Engine/xdiff.php
../../wp-includes/Text/Diff/Renderer/inline.php
../../wp-includes/meta.php
../../wp-includes/ms-settings.php
../../wp-includes/ms-load.php
../../wp-includes/class-IXR.php
../../wp-includes/comment.php
../../wp-includes/author-template.php
../../wp-includes/theme.php
../../wp-includes/query.php
../../wp-includes/pluggable.php
../../wp-includes/canonical.php
../../wp-includes/template-loader.php
../../wp-includes/class-wp-admin-bar.php
../../wp-includes/shortcodes.php
../../wp-includes/locale.php
../../wp-includes/js/tinymce/wp-tinymce.php
../../wp-includes/js/tinymce/wp-mce-help.php
../../wp-includes/js/tinymce/plugins/spellchecker/includes/general.php
../../wp-includes/js/tinymce/plugins/spellchecker/classes/GoogleSpell.php
../../wp-includes/js/tinymce/plugins/spellchecker/classes/SpellChecker.php
../../wp-includes/js/tinymce/plugins/spellchecker/classes/EnchantSpell.php

Bug#608181: /usr/bin/xgettext: xgettext segmentation fault

2010-12-28 Thread Jean-Luc Coulon (f5ibh)
Package: gettext
Version: 0.18.1.1-3
Severity: important
File: /usr/bin/xgettext

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

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  0x00408aaf in arglist_parser_done (ap=0x84f4d0, 
argnum=value optimized out) at xgettext.c:2937
#2  0x00421e71 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  0x00421f1c 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  0x00421f1c 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  0x004221ea 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  0x0040741f in extract_from_file (
file_name=0x701f60 ../../wp-admin/ms-admin.php, extractor=..., 
mdlp=value optimized out) at xgettext.c:1957
#7  0x00407ed6 in main (argc=value optimized out, 
argv=value optimized out) at xgettext.c:779
(gdb) 


Regards

Jean-Luc


- -- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc7-k8-1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gettext depends on:
ii  dpkg  1.15.8.7   Debian package management system
ii  gettext-base  0.18.1.1-3 GNU Internationalization utilities
ii  install-info  4.13a.dfsg.1-6 Manage installed documentation in 
ii  libc6 2.11.2-7   Embedded GNU C Library: Shared lib
ii  libcroco3 0.6.2-1a generic Cascading Style Sheet (C
ii  libglib2.0-0  2.27.5-1   The GLib library of C routines
ii  libgomp1  4.4.5-10   GCC OpenMP (GOMP) support library
ii  libncurses5   5.7+20100313-4 shared libraries for terminal hand
ii  libunistring0 0.9.3-3Unicode string library for C
ii  libxml2   2.7.8.dfsg-2   GNOME XML library

Versions of packages gettext recommends:
ii  autopoint 0.18.1.1-3 The autopoint program from GNU get
ii  curl  7.21.2-4   Get a file from an HTTP, HTTPS or 
ii  wget  1.12-2.1   retrieves files from the web

Versions of packages gettext suggests:
pn  gettext-doc   none (no description available)

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFNGdE7UdGGXzzGnNARAlY1AKCJU+/NvfVcMetNKpLegB2p+Bp6fACgnRjj
ZZetYEo4utaqhdei91P0V5U=
=W+rO
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org