Skip to content

[Bug]: panic: internal error: mpool freed more bytes than alloc #5491

Closed

Description

@aressu1985

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):0.6.0
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

1970, 19700101, 1970-11-11 22:22:22) Error: truncated type DATE value 19700101 for column f3, 1
github.com/matrixorigin/matrixone/pkg/frontend.logStatementStringStatus
/data1/sudong/mo-regression/matrixone/pkg/frontend/util.go:454
github.com/matrixorigin/matrixone/pkg/frontend.logStatementStatus
/data1/sudong/mo-regression/matrixone/pkg/frontend/util.go:446
github.com/matrixorigin/matrixone/pkg/frontend.(*MysqlCmdExecutor).doComQuery
/data1/sudong/mo-regression/matrixone/pkg/frontend/mysql_cmd_executor.go:2436
github.com/matrixorigin/matrixone/pkg/frontend.(*MysqlCmdExecutor).ExecRequest
/data1/sudong/mo-regression/matrixone/pkg/frontend/mysql_cmd_executor.go:2505
github.com/matrixorigin/matrixone/pkg/frontend.(*Routine).Loop
/data1/sudong/mo-regression/matrixone/pkg/frontend/routine.go:125
panic: internal error: mpool freed more bytes than alloc

goroutine 44523615 [running]:
github.com/matrixorigin/matrixone/pkg/common/mpool.(*MPoolStats).RecordFree(0xc530b3f040?, 0xc976de5bb8?)
/data1/sudong/mo-regression/matrixone/pkg/common/mpool/mpool.go:93 +0x74
github.com/matrixorigin/matrixone/pkg/common/mpool.(*MPool).Free(0xdf43e1ce10?, {0xd08c843010, 0xc8ae326cb8?, 0xdf43e1c780?})
/data1/sudong/mo-regression/matrixone/pkg/common/mpool/mpool.go:456 +0x85
github.com/matrixorigin/matrixone/pkg/container/vector.(*Vector).Free(0xc3211dc080, 0xc8ae326c60?)
/data1/sudong/mo-regression/matrixone/pkg/container/vector/vector.go:634 +0x4c
github.com/matrixorigin/matrixone/pkg/container/batch.(*Batch).Clean(0xc3211dc000, 0xdd0b311180)
/data1/sudong/mo-regression/matrixone/pkg/container/batch/batch.go:241 +0x75
github.com/matrixorigin/matrixone/pkg/vm/pipeline.(*Pipeline).MergeRun.func1()
/data1/sudong/mo-regression/matrixone/pkg/vm/pipeline/pipeline.go:130 +0xcd
github.com/matrixorigin/matrixone/pkg/vm/pipeline.(*Pipeline).MergeRun(0xc976de5d38, 0xc8ab00a3c0)
/data1/sudong/mo-regression/matrixone/pkg/vm/pipeline/pipeline.go:148 +0x1ce
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).MergeRun(0xc395716d20, 0xdd2b8c7e10)
/data1/sudong/mo-regression/matrixone/pkg/sql/compile/scope.go:110 +0x617
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).JoinRun(0xc395716d20, 0xdd2b8c7e10)
/data1/sudong/mo-regression/matrixone/pkg/sql/compile/scope.go:225 +0x505
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).ParallelRun(0xc397486fa0?, 0x417020?)

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s0
    on Oct 9, 2022
  2. added this to the v0.6.0 milestone on Oct 9, 2022
  3. m-schen commented on Oct 25, 2022

    @m-schen
    Contributor

    I have fixed this bug. please have a try.

  4. aressu1985 commented on Oct 29, 2022

    @aressu1985
    ContributorAuthor

    fixed: commit fc68576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions