Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug trace RPC error in Polygon Amoy #11936

Closed
bbaktaeho opened this issue Sep 10, 2024 · 1 comment
Closed

debug trace RPC error in Polygon Amoy #11936

bbaktaeho opened this issue Sep 10, 2024 · 1 comment
Assignees
Labels
imp1 High importance polygon

Comments

@bbaktaeho
Copy link
Contributor

System information

Erigon version: erigon version 2.60.7-93016a97

Chain/Network: Polygon/Amoy

Log

[EROR] [09-10|07:00:59.993] RPC method debug_traceBlockByNumber crashed: runtime error: index out of range [-1]
[service.go:219 panic.go:770 panic.go:114 plain_readonly.go:192 intra_block_state.go:477 intra_block_state.go:223 evm.go:192 evm.go:301 state_transition.go:420 state_transition.go:184 tracing.go:149 tracing.go:225 tracing.go:152 tracing.go:167 tracing.go:32 value.go:596 value.go:380 service.go:224 handler.go:549 handler.go:482 handler.go:421 handler.go:241 handler.go:334 asm_arm64.s:1222]

The following error occurs when requesting debug_traceBlockByNumber or debug_traceTransaction.
tx is 0x384dbaad812747e3e7dee071159787f2a39c2887d7f79e8166f37656fc80613d.

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": null,
  "error": {
    "code": -32000,
    "message": "method handler crashed"
  }
}
@sokiaoba
Copy link

sokiaoba commented Sep 12, 2024

Same here with 2.60.7. Could this error be version related?

@yperbasis yperbasis added polygon imp1 High importance labels Sep 13, 2024
shohamc1 added a commit that referenced this issue Sep 16, 2024
`sort.Search` returns 0 for when a valid record in
`systemContractLookup` was not found, and when we subtract 1 from it, it
leads to an invalid index and a crash.

Fixes #11936
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imp1 High importance polygon
Projects
None yet
Development

No branches or pull requests

4 participants