bug-gettext
[Top][All Lists]
Advanced

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

[bug #64552] "error: too deeply nested expressions" for large Perl input


From: Gavin D. Smith
Subject: [bug #64552] "error: too deeply nested expressions" for large Perl input file
Date: Sun, 13 Aug 2023 10:23:00 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64552>

                 Summary: "error: too deeply nested expressions" for large
Perl input file
                   Group: GNU gettext
               Submitter: gavin
               Submitted: Sun 13 Aug 2023 02:22:59 PM UTC
                Category: Perl
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 13 Aug 2023 02:22:59 PM UTC By: Gavin D. Smith <gavin>
(Copying email sent, for bug tracker management:
https://lists.gnu.org/archive/html/bug-gettext/2023-07/msg00008.html)

In gettext 0.22, there is an error running xgettext with a large input
file:

$ /usr/local/bin/xgettext    HTML.pm     
HTML.pm:8052: error: too deeply nested expressions

This makes "make update-po" break in the Texinfo package.

I have tried to reduce the input file to a minimal case by deleting
chunks of the file but beyond a certain point the error disappears.

For example, just removing the three lines

  foreach my $def_command (keys(%def_commands)) {
    $formatted_line_commands{$def_command} = 1 if 
($line_commands{$def_command}); 
  }

from early in the file makes the error go away.

I expect whatever counting of "nested expressions" is being done
isn't counting correctly.






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Sun 13 Aug 2023 02:22:59 PM UTC  Name: HTML.pm.xz  Size: 47KiB   By:
gavin

<http://savannah.gnu.org/bugs/download.php?file_id=55033>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64552>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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