Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flake in eth/tracers test #1345

@alarso16

Description

@alarso16

There's a weird flake in the eth/tracer tests that seems to have appeared once the test was introduced: https://github.com/ava-labs/coreth/actions/runs/18568007433/job/52934285055
It happens on ubuntu with race detection about 0.5% of the time for me.

The ultimate source is that this error is being returned on the final tracer test:

       { // Override blocknumber with block n+1 and query a blockhash (resolves issue #32175)
			blockNumber: rpc.LatestBlockNumber,
			call: ethapi.TransactionArgs{
				From: &accounts[0].addr,
				Input: newRPCBytes([]byte{
					byte(vm.PUSH1), byte(genBlocks),
					byte(vm.BLOCKHASH),
					byte(vm.PUSH1), 0x00,
					byte(vm.MSTORE),
					byte(vm.PUSH1), 0x20,
					byte(vm.PUSH1), 0x00,
					byte(vm.RETURN),
				}),
			},
			config: &TraceCallConfig{
				BlockOverrides: &ethapi.BlockOverrides{Number: (*hexutil.Big)(big.NewInt(int64(genBlocks + 1)))},
			},
			want: fmt.Sprintf(`{"gas":59592,"failed":false,"returnValue":"%x"}`, backend.chain.GetHeaderByNumber(uint64(genBlocks)).Hash()),
		}

This test was added in #1301 and can be replicated with HashDB. I'm not sure what part of this behavior is non-deterministic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions