Commit cb5520f
Add exclusions + force-load + whitelist for interception (still blocked)
- Add interception/ and PathConstraintAPI to GaletteTransformer exclusion
list to prevent Galette from adding shadow methods (signature mismatch)
- Force-load InterceptionPathUtils in premain() to prevent classloader
deadlock when transformed bytecode first references it
- Remove single-operand jump interception (IFEQ/IFLT/etc.) — too noisy
- Switch to whitelist approach: only intercept mir/ classes
Finding: the second-pass transformer approach is fundamentally blocked.
Even a no-op re-serialization of Galette-instrumented bytecode through
ClassWriter.COMPUTE_MAXS + ClassReader.EXPAND_FRAMES produces broken
class files that hang the JVM. Galette's instrumented bytecode has
custom frame structures that don't survive ASM re-serialization.
Next approach needed: either integrate interception into the FIRST-pass
Galette transformer (so it runs before shadow methods are added), or
use the GreenServer approach for out-of-process constraint solving.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 94c0a18 commit cb5520f
2 files changed
Lines changed: 24 additions & 33 deletions
File tree
- galette-agent/src/main/java/edu/neu/ccs/prl/galette/internal
- agent
- transform
Lines changed: 21 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
| 96 | + | |
87 | 97 | | |
88 | 98 | | |
89 | | - | |
| 99 | + | |
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
96 | 111 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
191 | 179 | | |
192 | 180 | | |
193 | 181 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments