chromatic/modern_perl_book — Issue #214: deep recursion in chinese branch with pod2pdf?
Author: metalman
Created: 2011-12-21 10:54:15+00:00
State: open

Can't build pdf in chinese branch:

[zkc@myhost git]$ git clone https://github.com/horus/modern_perl_book.git
[zkc@myhost git]$ cd modern_perl_book/
[zkc@myhost modern_perl_book]$ perl build/tools/build_chapters.pl
...
[zkc@myhost modern_perl_book]$ perl build/tools/build_pdf.pl
Converting build/chapters/chapter_00.pod to pdf
Deep recursion on subroutine "App::pod2pdf::print_word" at /home/zkc/perl5/lib/perl5/App/pod2pdf.pm line 1025, <$in_fh> line 76.

env:

[zkc@myhost modern_perl_book]$ uname -a
Linux myhost 3.1.5-1-ARCH #1 SMP PREEMPT Sat Dec 10 14:43:09 CET 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+ AuthenticAMD GNU/Linux
[zkc@myhost modern_perl_book]$ perl --version

This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-thread-multi
...
[zkc@myhost modern_perl_book]$ cpan -D App:pod2pdf
Going to read '/home/zkc/.cpan/Metadata'
Database was generated on Tue, 20 Dec 2011 23:13:52 GMT
App:pod2pdf
-------------------------------------------------------------------------
(no description)
J/JO/JONALLEN/pod2pdf-0.42.tar.gz
/home/zkc/perl5/lib/perl5/App/pod2pdf.pm
Installed: 0.42
CPAN: 0.42 up to date
Jon Allen (JONALLEN)
jj@jonallen.info

It then eats up all memory.
It's OK in master branch.