The RedCloth-3.0 regexp stack overflow: Copland manual

B

Bil Kleb

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,
 
J

Jamis Buck

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
 
B

Bil Kleb

Jamis said:
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? ;)

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,
 
J

Jamis Buck


*blush* I'll get right on it. Sir. :)
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. ;)
Thanks again,

Cheers,

Jamis
 
B

Bil Kleb

Jamis said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top