lucee.runtime.exp.NativeException: java.lang.StackOverflowError

Description

I have been able to identify a regression when runing the ColdBox test suites. Once you add some object references to a struct via a `put()` operation, lucee throws a stack overflow error. You can see the full regression in the build: https://travis-ci.org/ColdBox/coldbox-platform/jobs/584141244

The offending code can be found here: https://github.com/ColdBox/coldbox-platform/blob/development/system/core/events/EventPool.cfc#L48

I have changed it to a CFML struct and an ordered struct to test and all 3 cases the exception is thrown as well. The CFC instance I was trying to store was the CFC that was actually being executed (The Test).

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 lucee.runtime.exp.NativeException: java.lang.StackOverflowError [exec] at java.util.ArrayList.iterator(ArrayList.java:834) [exec] at lucee.runtime.type.wrap.ListAsArray.iterator(ListAsArray.java:399) [exec] at java.util.AbstractList.hashCode(AbstractList.java:540) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712) [exec] at java.util.AbstractMap.hashCode(AbstractMap.java:530) [exec] at lucee.runtime.type.StructImpl.hashCode(StructImpl.java:290) [exec] at java.util.AbstractList.hashCode(AbstractList.java:541) [exec] at java.util.AbstractMap$SimpleEntry.hashCode(AbstractMap.java:712)

Environment

None

Status

Assignee

Michael Offner

Reporter

Luis Majano

Labels

Sprint

Fix versions

Affects versions

5.3.3.54

Priority

Blocker
Configure