Hi.

Using ColdFusion 5 on RedHat 7.2.

I am trying to invoke /opt/coldfusion/webserver/cgi/cfml to invoke
ColdFusion pages from the command line and from my mathopd web server. I
simply do this:-

 /opt/coldfusion/webserver/cgi/cfml /var/www/html/test.cfm

This crashes every time I try it. If I do not specify a command line
argument but rely on the good old template= query string hack things work.
But that is not what I want.

It appears that the following occurs inside cfml (obtained through gdb)

The cfml program checks for either argv[1] or PATH_TRANSLATED (in that
order) and if one of them is defined and not empty it will call putenv()
to create a new environment variable CF_TEMPLATE_PATH with the value of
argv[1] or PATH_TRANSLATED, respectively. Unfortunately some other
function, RequestContextInit() overwrites the memory storage for
CF_TEMPLATE_PATH with zero bytes which causes a crash later on.

Is this a known bug? I would love to get this to work. CF5 on Solaris does
not have this problem, by the way, but that may just be a coincidence.

Cheers
Michiel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to