Hi My memory is also foggy...we had a problem like this along time ago. I THINK that a quick fix was to actually add some template code into the file so that the regex will split the content up. I can't remember if just setting a dummy var to a value in the middle of the content works (I think we did that) or whether you have to split the content into blocks. Sorry that it's only a workaround.
Colin -----Original Message----- From: l.m.orchard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 10:53 PM To: [EMAIL PROTECTED] Subject: [Templates] Template length causing segfault while using INTERPOLATE? Hey out there in TT land, it's been awhile since I piped up in here. Probably about 6 months ago, I encountered a bug where, if INTERPOLATE is enabled and my template is over some magic size (I'd measured it then, but forgot it now), using Template Toolkit causes my app to segfault. I don't think I ever found a bug fix-- I seem to remember it had something to do with a bug in regexes affecting the safe length able to be handled by the regex engine. Memory is foggy on this. Well, that was quite a few revisions of TT ago, and now I'm using 2.04 and decided to reenable INTERPOLATE. Well, now in mod_perl, I get "child pid #### exit signal Illegal Instruction (4)" When I go back and turn INTERPOLATE back off, the error goes away. Now, this isn't a particularly complex template (in fact, at the moment it's straight HTML without a lick of TT code or variable interpolations) and it's only 6881 bytes. I'm also using perl v5.6.0. Any ideas? I forget what discussion on this bug there was the last time I mumbled about it, but is this a 5.6.0 bug? should I upgrade? Not having INTERPOLATE isn't the end of the world, but it's annoying. -- Leslie Michael Orchard <[EMAIL PROTECTED]> ICQ: 492905 (home) 11082089 (work) "...see you space cowboy..." _______________________________________________ templates mailing list [EMAIL PROTECTED] http://www.template-toolkit.org/mailman/listinfo/templates
