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

ubuntu2004, clang-10 ASAN failed #3690

Closed
critical27 opened this issue Jan 11, 2022 · 1 comment
Closed

ubuntu2004, clang-10 ASAN failed #3690

critical27 opened this issue Jan 11, 2022 · 1 comment
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@critical27
Copy link
Contributor

Almost all ctest with starting thrift server failed.

==10683==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x6130000de280 in thread T20:
  object passed to delete has wrong type:
  size of the allocated type:   336 bytes;
  size of the deallocated type: 328 bytes.

...
@critical27 critical27 added the type/bug Type: something is unexpected label Jan 11, 2022
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Jan 11, 2022
@critical27
Copy link
Contributor Author

critical27 commented Jan 12, 2022

In short version, the problem is related to align. When request 328 bytes to allocate with align of 16, folly will allocate 336 bytes instead, see here. But when deallocate, only 328 is freed. (At least from ASAN's perspective). If you want to see some detail, read my post in confluence.

ASAN or fbthrift may have bugs, will dig more if necessary after third-party be be compiled correctly, we need to check the pointer when allocate/deallocate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

2 participants