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_traceTransaction on failed transaction #1942

Closed
jsvisa opened this issue Aug 29, 2022 · 11 comments · Fixed by #1968
Closed

debug_traceTransaction on failed transaction #1942

jsvisa opened this issue Aug 29, 2022 · 11 comments · Fixed by #1968

Comments

@jsvisa
Copy link
Contributor

jsvisa commented Aug 29, 2022

Description

Failed to run debug_traceTransaction on failed transaction

Current Behavior

I'm running a v1.6.10 archive node of Celo, but it seems there's something wrong on the tace model,

send the request

http http://127.0.0.1:8545 jsonrpc=2.0 method=debug_traceTransaction params:='["0xdadb528f757df61b56322d326a38aa0c5e9db93f632d3c4c3e344bbf8bd03d7c", {"tracer": "callTracer", "timeout": "120s"}]' id=67

got the response

{
    "jsonrpc": "2.0",
    "id": 67,
    "error": {
        "code": -32000,
        "message": "TypeError: cannot read property 'calls' of undefined    in server-side tracer function 'fault'"
    }
}

Context

If it makes sense, explain:

  • why is this important? Rationale for doing this
  • Is this part of a bigger initiatve, theme? Which?

Proposed Solution

BTW, maybe we need to cherry-pick the go-ethereum v1.10.xx's new go-native tracer model.

@a26nine
Copy link

a26nine commented Oct 6, 2022

Facing the same issue with debug_traceBlockByNumber on 1.6.0. Reverting to 1.5.8 resolves this.

Screenshot 2022-10-06 at 20 39 16

Another thing to note is that it didn't start at a specific block — it’s distributed.

For e.g.,
15000000 / 0xe4e1c0 ❌
14950000 / 0xe41e70 ✅
14900000 / 0xe35b20 ❌

@ymonye
Copy link

ymonye commented Oct 9, 2022

Facing the same issue with debug_traceBlockByNumber on 1.6.0. Reverting to 1.5.8 resolves this.

Screenshot 2022-10-06 at 20 39 16

Another thing to note is that it didn't start at a specific block — it’s distributed.

For e.g., 15000000 / 0xe4e1c0 x 14950000 / 0xe41e70 white_check_mark 14900000 / 0xe35b20 x

Confirmed v1.5.8 resolves this.

@a26nine
Copy link

a26nine commented Oct 9, 2022

Looks like it's an upstream issue. Let's wait for an update...

@palango
Copy link
Contributor

palango commented Oct 12, 2022

@jsvisa @a26nine @ymonye : @piersy cherry-picked a potential fix for this in #1968.

It would be helpful if you could verify that the fix solves the problems you encountered. There's a docker image with the fixes available at http://us.gcr.io/celo-testnet/geth:d1d4d002419678ad56b2e511f1a37fc6b13fad62 , otherwise we can also provide binaries.

@jsvisa
Copy link
Contributor Author

jsvisa commented Oct 13, 2022

@jsvisa @a26nine @ymonye : @piersy cherry-picked a potential fix for this in #1968.

It would be helpful if you could verify that the fix solves the problems you encountered. There's a docker image with the fixes available at http://us.gcr.io/celo-testnet/geth:d1d4d002419678ad56b2e511f1a37fc6b13fad62 , otherwise we can also provide binaries.

@palango seems this issue is fixed.

BTW, Is there any plan to backport the go-ethereum go-native trace into celo? The js's consuming too much CPU to run the tracing. If you're interested, I can have a try to implement this feature

@a26nine
Copy link

a26nine commented Oct 13, 2022

@jsvisa @a26nine @ymonye : @piersy cherry-picked a potential fix for this in #1968.

It would be helpful if you could verify that the fix solves the problems you encountered. There's a docker image with the fixes available at http://us.gcr.io/celo-testnet/geth:d1d4d002419678ad56b2e511f1a37fc6b13fad62 , otherwise we can also provide binaries.

A binary to test would helpful. 🙏🏻

@palango
Copy link
Contributor

palango commented Oct 13, 2022

A binary to test would helpful. 🙏🏻

@a26nine What system and OS do you need? You can also checkout the branch and build it yourself.

BTW, Is there any plan to backport the go-ethereum go-native trace into celo? The js's consuming too much CPU to run the tracing. If you're interested, I can have a try to implement this feature

Let me bring it up internally.

@a26nine
Copy link

a26nine commented Oct 13, 2022

A binary to test would helpful. 🙏🏻

@a26nine What system and OS do you need? You can also checkout the branch and build it yourself.

Okay. I can confirm this (#1968) works as well. 👍🏻

@a26nine
Copy link

a26nine commented Oct 13, 2022

@palango Any ETA for the PR merge and release?

@piersy
Copy link
Contributor

piersy commented Oct 13, 2022

@a26nine The PR has been merged, I'm not sure when this will make it into a release

@gastonponti
Copy link
Contributor

Fixed in the v1.6.1 (https://github.com/celo-org/celo-blockchain/releases/tag/v1.6.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants