-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
The test for the package “./executor” fails when using -asan. #32952
Comments
The root cause is the line 542 of the ./util/chunk/column.go: the code of The option |
Good jobs! |
@zhangfannie Are you interested in fixing this bug? |
@hawkingrei I am not working on tidb project. It would be great if you were willing to fix this. 🙂 |
Thank you for your discovery. |
Though it reports a warning, the logic itself guarantees that the capacity of |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
go test -asan -c && ./executor.test
2. What did you expect to see? (Required)
pass
3. What did you see instead (Required)
==4500==ERROR: AddressSanitizer: use-after-poison on address 0x2040019e0918 at pc 0x0000024539e8 bp 0x000000000000 sp 0x204001a09670
READ of size 8 at 0x2040019e0918 thread T2
#0 0x24539e7 in github.com/pingcap/tidb/util/codec.encodeHashChunkRowIdx /home/fanzha02/sharefolder/asanprojecttest/tidb/util/chunk/column.go:542
#1 0xffff8a4b7c47 (/usr/lib/aarch64-linux-gnu/libasan.so.4+0xdac47)
#2 0x13816cf in asancall /home/fanzha02/work/go_project/gotest/src/runtime/asan_arm64.s:66
Address 0x2040019e0918 is a wild pointer.
SUMMARY: AddressSanitizer: use-after-poison /home/fanzha02/sharefolder/asanprojecttest/tidb/util/chunk/column.go:542 in github.com/pingcap/tidb/util/codec.encodeHashChunkRowIdx
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: