The RedCloth-3.0 regexp stack overflow: Copland manual

So I was following up on converting our FUN3D manual
to _why's RedCloth+YAML method and got stymied trying
to reproduce the Copland manual,

Processing chapter #3...
/usr/local/pkgs/ruby-1.8.2/lib/ruby/gems/1.8/gems/RedCloth-3.0.0/lib/redcloth.rb:566:in `gsub!': Stack overflow in regexp matcher: /((?:\n*[\# ](?:[^\n]|\n+[\# ]|\n(?!\n|\Z))+)|(?:\n*[\* ](?:[^\n]|\n+[\* ]|\n(?!\n|\Z))+)|(?:\n*[> ](?:[^\n]|\n+[> ]|\n(?!\n|\Z))+))|((?:[^\n]+|\n+ +|\n(?![#*\n]|\Z))+)/m (RegexpError)
         from /usr/local/pkgs/ruby-1.8.2/lib/ruby/gems/1.8/gems/RedCloth-3.0.0/lib/redcloth.rb:566:in `blocks'
         from /usr/local/pkgs/ruby-1.8.2/lib/ruby/gems/1.8/gems/RedCloth-3.0.0/lib/redcloth.rb:276:in `to_html'
         from chapter.erb:15

I tried the patch _why offered from the beginning of
November, but to no avail.

Any recommendations?

Jamis, on what platform and for what versions of Ruby,
RedCloth, and so forth does this work for you?

Thanks,

···

--
Bil Kleb, Hampton, Virginia
http://fun3d.larc.nasa.gov

Jamis, on what platform and for what versions of Ruby,
RedCloth, and so forth does this work for you?

Bil,

I haven't tried building the Copland manual since the 2.x series of
RedCloth--I know it worked with that, using the 1.8.2 prereleases.

- Jamis

···

On 06:06 Mon 27 Dec , Bil Kleb wrote:

Thanks,
--
Bil Kleb, Hampton, Virginia
http://fun3d.larc.nasa.gov

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis

Jamis Buck wrote:

I haven't tried building the Copland manual since the 2.x series of
RedCloth--I know it worked with that, using the 1.8.2 prereleases.

What!? It's not under a http://damagecontrol.codehaus.org/ build? :wink:

Anyway, thanks for the tip. I pulled 2.011 down and now I can
make beautiful Copland manuals anytime I feel like it. So there!

I don't know what took me so long to look into YAML; I sure
have been missing out. Why's cookbook was a perfect introduction.

Then I went on to Why's Textile Reference, again perfect. Thanks
Why!

I feel like I've gained the power of 10 grinches, plus two.

Thanks again,

···

--
Bil Kleb, Hampton, Virginia
http://fun3d.larc.nasa.gov

Jamis Buck wrote:
>
>I haven't tried building the Copland manual since the 2.x series of
>RedCloth--I know it worked with that, using the 1.8.2 prereleases.

What!? It's not under a http://damagecontrol.codehaus.org/ build? :wink:

*blush* I'll get right on it. Sir. :slight_smile:

Anyway, thanks for the tip. I pulled 2.011 down and now I can
make beautiful Copland manuals anytime I feel like it. So there!

Incidentally, I just tried building the manual with RedCloth 3.0 and
it worked okay for me... not sure what environmental factors are
involved (RAM?).

I don't know what took me so long to look into YAML; I sure
have been missing out. Why's cookbook was a perfect introduction.

Then I went on to Why's Textile Reference, again perfect. Thanks
Why!

I feel like I've gained the power of 10 grinches, plus two.

Guess it's a good thing Christmas is already over. :wink:

Thanks again,
--
Bil Kleb, Hampton, Virginia
http://fun3d.larc.nasa.gov

Cheers,

Jamis

···

On 12:26 Mon 27 Dec , Bil Kleb wrote:

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis

Jamis Buck wrote:

Incidentally, I just tried building the manual with RedCloth 3.0 and
it worked okay for me... not sure what environmental factors are
involved (RAM?).

Hmmm. The ol' "works for me" deal, eh? Da_n.

FWIW, I'm running Fedora Core 3 (2.6.9-1.681_FC3) with ruby 1.8.2
(2004-07-29) compiled from source on an i686 with 1GB. I tried
`ulimit -s unlimited` just for fun.

Maybe I'll open Matz's xmas present and try that with RC-3.0.

Regards,

···

--
Bil Kleb, Hampton, Virginia
http://fun3d.larc.nasa.gov