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

unstable location assert in tests #53375

Closed
lcwangchao opened this issue May 20, 2024 · 0 comments · Fixed by #53376
Closed

unstable location assert in tests #53375

lcwangchao opened this issue May 20, 2024 · 0 comments · Fixed by #53376
Labels
severity/moderate type/bug The issue is confirmed as a bug.

Comments

@lcwangchao
Copy link
Collaborator

https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftidb%2Fghpr_check2/detail/ghpr_check2/9687/pipeline/394/

[2024/05/17 07:32:17.193 +00:00] [INFO] [job_table.go:349] ["the owner sets owner operator value"] [category=ddl] [ownerOp=none]

panic: assert failed, location mismatch, ctxLoc: UTC, varsLoc: UTC, stmtLoc: UTC [recovered]

	panic: assert failed, location mismatch, ctxLoc: UTC, varsLoc: UTC, stmtLoc: UTC



goroutine 285 [running]:

github.com/pingcap/tidb/pkg/executor.(*Compiler).Compile.func1()

	pkg/executor/compiler.go:57 +0x4a5

panic({0x590d5c0?, 0xc000c2ddd0?})

	GOROOT/src/runtime/panic.go:914 +0x21f

github.com/pingcap/tidb/pkg/util/intest.doPanic(...)

	pkg/util/intest/assert.go:59

github.com/pingcap/tidb/pkg/util/intest.Assert(0x9d?, {0xc002662bc8?, 0xc00152b200?, 0x0?})

	pkg/util/intest/assert.go:27 +0x65

github.com/pingcap/tidb/pkg/expression/context.AssertLocationWithSessionVars(0xa263aa0, 0xc000b02000)

	pkg/expression/context/context.go:151 +0x193

github.com/pingcap/tidb/pkg/expression/contextsession.(*SessionEvalContext).TypeCtx(0xc000b1a120)

	pkg/expression/contextsession/sessionctx.go:183 +0xbd

github.com/pingcap/tidb/pkg/expression.checkEvalCtx({0x6c74a68, 0xc000b1a120})

	pkg/expression/context.go:98 +0x42

github.com/pingcap/tidb/pkg/expression.wrapEvalAssert({0x6c74a68?, 0xc000b1a120?}, {0x6c8f418?, 0xc00154ac60})

	pkg/expression/context.go:89 +0xff

github.com/pingcap/tidb/pkg/expression.(*ScalarFunction).EvalInt(0xc0007eaf50, {0x6c74a68, 0xc000b1a120}, {0x0?, 0x0?})

	pkg/expression/scalar_function.go:466 +0x74

github.com/pingcap/tidb/pkg/expression.(*ScalarFunction).Eval(0xc0007eaf50, {0x6c74a68?, 0xc000b1a120}, {0x0?, 0x6c24b10?})

	pkg/expression/scalar_function.go:426 +0x1bf

github.com/pingcap/tidb/pkg/expression.foldConstant({0x7f4f1c7836e0, 0xc001c7fe60}, {0x6cb50a0?, 0xc0007eae70?})

	pkg/expression/constant_fold.go:211 +0x12f0

github.com/pingcap/tidb/pkg/expression.FoldConstant({0x7f4f1c7836e0?, 0xc001c7fe60?}, {0x6cb50a0?, 0xc0007eae70?})

	pkg/expression/constant_fold.go:40 +0x45

github.com/pingcap/tidb/pkg/expression.newFunctionImpl({0x7f4f1c7836e0, 0xc001c7fe60}, 0x1, {0x61ddb4e?, 0x80?}, 0xc00152b000, 0x5f9d040?, {0xc0015486e0, 0x2, 0x2})

	pkg/expression/scalar_function.go:264 +0xc15

github.com/pingcap/tidb/pkg/expression.NewFunction({0x7f4f1c7836e0?, 0xc001c7fe60?}, {0x61ddb4e?, 0xc00152b000?}, 0x0?, {0xc0015486e0?, 0x1e2e1a5?, 0x78?})

	pkg/expression/scalar_function.go:300 +0x57

github.com/pingcap/tidb/pkg/expression.NewFunctionInternal({0x7f4f1c7836e0?, 0xc001c7fe60?}, {0x61ddb4e?, 0x6cb5380?}, 0xc00264bb80?, {0xc0015486e0?, 0xc000b02928?, 0xc002663530?})

	pkg/expression/scalar_function.go:320 +0x34

github.com/pingcap/tidb/pkg/expression.evaluateExprWithNullInNullRejectCheck({0x7f4f1c7836e0, 0xc001c7fe60}, 0xc0008548c0, {0x6cb50a0?, 0xc0007eaaf0?})

	pkg/expression/expression.go:945 +0x52b

github.com/pingcap/tidb/pkg/expression.EvaluateExprWithNull({0x7f4f1c7836e0, 0xc001c7fe60}, 0x61de10f?, {0x6cb50a0?, 0xc0007eaaf0})

	pkg/expression/expression.go:871 +0x12f

github.com/pingcap/tidb/pkg/planner/util.IsNullRejected({0x6c7b9e0, 0xc001c7fe70}, 0x2?, {0x6cb50a0, 0xc0007eaaf0})

	pkg/planner/util/null_misc.go:41 +0x1de

github.com/pingcap/tidb/pkg/planner/core.(*LogicalJoin).ExtractOnCondition(0xc000a52400, {0xc0015486a0?, 0x2, 0x4?}, 0xc0008548c0, 0xc000854be0, 0x1, 0x1)

	pkg/planner/core/logical_plan_builder.go:567 +0x5ff

github.com/pingcap/tidb/pkg/planner/core.(*LogicalJoin).extractOnCondition(0xc000a52400, {0xc0015486a0, 0x2, 0x2}, 0x0?, 0x4?)

	pkg/planner/core/logical_plan_builder.go:529 +0xe5

github.com/pingcap/tidb/pkg/planner/core.(*LogicalJoin).PredicatePushDown(0xc000a52400, {0xc000c2d870?, 0x1, 0x1?}, 0x2?)

	pkg/planner/core/rule_predicate_push_down.go:213 +0x146e

github.com/pingcap/tidb/pkg/planner/core.(*LogicalSelection).PredicatePushDown(0xc002972300, {0xa2966a0?, 0x6cb5380?, 0xc002666780?}, 0xc002663d28?)

	pkg/planner/core/rule_predicate_push_down.go:111 +0x1b8

github.com/pingcap/tidb/pkg/planner/core.(*baseLogicalPlan).PredicatePushDown(0xc002972480, {0xa2966a0?, 0xc000800400?, 0xc000c2d550?}, 0x0?)

	pkg/planner/core/rule_predicate_push_down.go:84 +0x6c

github.com/pingcap/tidb/pkg/planner/core.(*baseLogicalPlan).PredicatePushDown(0xc000d2c6b0, {0xa2966a0?, 0x0?, 0xc002663d78?}, 0xc001894738?)

	pkg/planner/core/rule_predicate_push_down.go:84 +0x6c

github.com/pingcap/tidb/pkg/planner/core.(*LogicalProjection).PredicatePushDown(0xc000d2c690, {0x0, 0x0, 0x0}, 0xc0013ba570?)

	pkg/planner/core/rule_predicate_push_down.go:425 +0x147

github.com/pingcap/tidb/pkg/planner/core.(*ppdSolver).optimize(0x6c1c368, {0xa2966a0?, 0x621ce1c?}, {0x6cb0d00?, 0xc000d2c690?}, 0xc000ad3bc0?)

	pkg/planner/core/rule_predicate_push_down.go:49 +0x38

github.com/pingcap/tidb/pkg/planner/core.logicalOptimize({0x6c3ad60, 0xc001ba4db0}, 0x7f934a, {0x6cb0d00, 0xc000d2c690})

	pkg/planner/core/optimizer.go:1005 +0x4cf

github.com/pingcap/tidb/pkg/planner/core.doOptimize({0x6c3ad60, 0xc001ba4db0}, {0x6c7b9e0?, 0xc001c7fe70?}, 0xc002664088?, {0x6cb0d00, 0xc000d2c690})

	pkg/planner/core/optimizer.go:289 +0xae

github.com/pingcap/tidb/pkg/planner/core.DoOptimize({0x6c3ad60, 0xc001ba4db0}, {0x6c7b9e0, 0xc001c7fe70}, 0xc001887450?, {0x6cb0d00, 0xc000d2c690})

	pkg/planner/core/optimizer.go:348 +0x14e

github.com/pingcap/tidb/pkg/planner.optimize({0x6c3ad60, 0xc001ba4db0}, {0x6c7b9e0?, 0xc001c7fe70}, {0x6c466d0, 0xc000aa2480}, {0x6c7cd00, 0xc001ba4e70})

	pkg/planner/optimize.go:503 +0x91e

github.com/pingcap/tidb/pkg/planner.Optimize({0x6c3ad60, 0xc001ba4db0}, {0x6cb8990?, 0xc001a6a480}, {0x6c466d0, 0xc000aa2480}, {0x6c7cd00, 0xc001ba4e70})

	pkg/planner/optimize.go:334 +0x1dce

github.com/pingcap/tidb/pkg/executor.(*Compiler).Compile(0xc002665308, {0x6c3ad60?, 0xc001ba4db0?}, {0x6c515b8?, 0xc000aa2480})

	pkg/executor/compiler.go:99 +0x552

github.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt(0xc001a6a480, {0x6c3ad60?, 0xc001ba4db0?}, {0x6c515b8, 0xc000aa2480?})

	pkg/session/session.go:2094 +0xaf1

github.com/pingcap/tidb/pkg/session.(*session).ExecuteInternal(0xc001a6a480, {0x6c3ad60, 0xc001ba4db0}, {0xc00250a0d0, 0xcf}, {0x0, 0x0, 0x0})

	pkg/session/session.go:1519 +0x25d

github.com/pingcap/tidb/pkg/ddl/internal/session.(*Session).Execute(0xc001c7fe80, {0x6c3acb8, 0xa2966a0}, {0xc00250a0d0, 0xcf}, {0x6206561, 0xf})

	pkg/ddl/internal/session/session.go:87 +0x1f8

github.com/pingcap/tidb/pkg/ddl.(*ddl).getJob(0xc00186acf0, 0x0?, 0x0?, 0xc002665968)

	pkg/ddl/job_table.go:100 +0x1d5

github.com/pingcap/tidb/pkg/ddl.(*ddl).getGeneralJob(0xc0026599a0?, 0x1f13b2f?)

	pkg/ddl/job_table.go:208 +0x49

github.com/pingcap/tidb/pkg/ddl.(*ddl).loadDDLJobAndRun(0xc00186acf0, 0xc002659c01?, 0xc001bce7e0, 0xc002659cc0)

	pkg/ddl/job_table.go:365 +0x150

github.com/pingcap/tidb/pkg/ddl.(*ddl).startDispatchLoop(0xc00186acf0)

	pkg/ddl/job_table.go:311 +0xb14

github.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run.func1()

	pkg/util/wait_group_wrapper.go:157 +0x59

created by github.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).Run in goroutine 95

	pkg/util/wait_group_wrapper.go:155 +0x7c

--
@lcwangchao lcwangchao added type/bug The issue is confirmed as a bug. severity/moderate labels May 20, 2024
ti-chi-bot bot pushed a commit that referenced this issue May 22, 2024
RidRisR pushed a commit to RidRisR/tidb that referenced this issue May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant