bugGNU gettext - Bugs: bug #64552, "error: too deeply nested...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Gavin D. Smith <gavin>
Submitted:  Sun 13 Aug 2023 02:22:59 PM UTC
   
 
Category:  Perl Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Tue 19 Sep 2023 08:39:04 AM UTC, comment #4: 

The fix is contained in gettext 0.22.1.

Bruno Haible <haible>
Group administrator
Mon 18 Sep 2023 07:08:27 PM UTC, comment #3: 
Bruno Haible <haible>
Group administrator
Sun 13 Aug 2023 06:26:23 PM UTC, comment #2: 

Good to hear it! Thanks for looking into it.

Gavin D. Smith <gavin>
Sun 13 Aug 2023 02:24:45 PM UTC, comment #1: 

I started working on it when you submitted the issue to the mailing list. Have made partial progress so far.

Bruno Haible <haible>
Group administrator
Sun 13 Aug 2023 02:22:59 PM UTC, original submission:  

(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.

Gavin D. Smith <gavin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #55033:  HTML.pm.xz added by gavin (47KiB - application/x-xz)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by gavin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-09-19 haible StatusFixed Fix Released
    2023-09-18 haible StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2023-08-13 haible StatusNone In Progress
        Assigned toNone haible
    2023-08-13 gavin Attached File- Added HTML.pm.xz, #55033

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code