Commit 2ffa640
authored
Fix Exception Replay in Lambda (#10505)
Fix Exception Replay in Lambda
In Lambda, the inner stack trace is truncated -- stack frames from
fileName='AWSLambda.java' are removed. Therefore, in the original
code, we would end up with a negative currentIdx, resulting in an
error occurring in sanityCheckSnapshotAssignment. This PR adds a
fallback to fix the mismatched pointer.
Co-authored-by: jean-philippe.bempel <[email protected]>1 parent ab02a41 commit 2ffa640
File tree
2 files changed
+43
-0
lines changed- dd-java-agent/agent-debugger/src
- main/java/com/datadog/debugger/exception
- test/java/com/datadog/debugger/exception
2 files changed
+43
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
| |||
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
281 | 319 | | |
282 | 320 | | |
283 | 321 | | |
| |||
0 commit comments