tracker issue : CF-4205375

select a category, or use search below
(searches all categories and all time range)

Out of memory error on Strange increment syntax

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/PRNeedInfo

Reporter/Name(from Bugbase): James M. / ()

Created: 10/08/2019

Components: Language

Versions: 2018

Failure Type: Memory Leak

Found In Build/Fixed In Build: 2018 update 5 / CF2018U6

Priority/Frequency: Normal / All users will encounter

Locale/System: / Win 2012 Server x64

Vote Count: 0

Problem Description:

Code compiles but throws error

Steps to Reproduce:

Run this

<cfset theCount = 0++>

Actual Result:

{"status":500,"error":"Internal Server Error","message":"GC overhead limit exceeded","timeStamp":1570564484803,"path":null}

Expected Result:

Either a syntax error or the number 1

Any Workarounds:

Probably none. This is a strange looking syntax



Could you please try this syntax "<cfset theCount = 0++>" inĀ  coldfusion 2018.0.05.315699, as I get the below mentioned error in CF2018 latest update. "Invalid CFML construct found on line 1 at column 20". looks like the syntax is incorrect, so it's throwing exception. Post increment operator can used with variables and not the numbers. Please let us know the steps to repro this issue and also the build# on which you are running.
Comment by Yogesh P.
31649 | October 19, 2019 05:26:59 AM GMT
I just ran this on cffiddle 2016 update 13 and 2018 update 6. In both cases an error was thrown. OK to close this issue
Comment by James M.
32053 | December 31, 2019 07:06:24 PM GMT