I've come up with some simple code that crashes my server (WIN/NT, using
IIS, Cold Fusion version 4.5 SP2 with duplicate() bug hot fix
[cfserver-duplicated-fix-win-ent-us.exe] already applied). The hot fix
for duplicate is for a different duplicate() bug.
It's the query that causes duplicate() to crash the server. Duplicate()
works fine until I add the query to the code snippet. I get errors like the
ones below.
I also have some structures where duplicate() works correctly, even though
it does have queries. They're buried under sub-sub-sub structures, though,
so maybe that's why. The simple code below crashes the server fairly
consistently, although sometimes I have to run it twice before the cold
fusion server crashes.
How do you submit a bug?
This bug was also posted as
http://forums.allaire.com/devconf/Thread.cfm?Message_ID=634348, but I don't
think any action was taken.
I also saw it referenced in cf-talk:
http://www.mail-archive.com/[email protected]/msg39394.html, but
again Alaire doesn't yet seem to have acknowledged it.
---- sample code -----------
<html>
<head>
<title>Untitled</title>
</head>
<cfif Not IsDefined("application.cust")>
<cfset application.cust = structnew()>
<cfset application.cust.abc = "abc">
<cfset application.cust.def = "def">
<cfset application.cust.qry = querynew("one,two,three")>
</cfif>
<cfset request.app = duplicate(application)>
<body>
<cfoutput>
request.cust = #request.app.cust.abc#, #request.app.cust.def#
</cfoutput>
</body>
</html>
----error messages----------------
Error Diagnostic Information An error has occurred while processing the
expression:
request.cfaDumpInited=CFTempOnlyForSetVariableNeverUseThisNameInYourCFMLCode
122333444455555654321
--------------------------------
Error Diagnostic Information Request canceled or ignored by serverServer
busy or unable to fulfill request. The server is unable to fulfill your
request due to extremely high traffic or an unexpected internal error.
Please attempt your request again (if you are repeatedly unsuccessful you
should notify the site administrator). (Location Code: 26)
--------------------------------
Error Diagnostic Information unknown exception condition
CFMLInterpreterImp::process ---
----------------------------------
Error Diagnostic Information Error occurred for unknown cause.
Normally the reason for this error is that a critical system resource (such
as memory or disk space) has been expended. You should check the available
disk space on all of your drives to make sure you have not run out. You
should also make sure that you are not running out of memory by running the
Performance Monitor and observing the effect of your application on free
system memory.
Another reason for this error may be that your ODBC driver is generating a
general protection fault. To help verify that your driver is funtioning
properly you should attempt to submit the query which is causing this error
to the data source using another ODBC application (such as MS Access or MS
Query).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists