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

[branch-2.1](memory) Allocator support address sanitizers #40836

Merged
merged 8 commits into from
Sep 14, 2024

Conversation

xinyiZzz
Copy link
Contributor

@xinyiZzz xinyiZzz commented Sep 13, 2024

xinyiZzz and others added 8 commits September 14, 2024 03:07
)

If DEBUG build type, record size of each memory alloc and free, print no free size or no alloc size when query MemTracker is destructed, if necessary, record stack trace.

add global PointQueryExecutor memory tracker in ExecEnv, because memory may be shared between PointQueryExecutors of different pointer queries, but memory will not be shared between PointQueryExecutor and Fragment of the same pointer query.

If DEBUG build type, if query memory tracker not equal to 0 when query ends, BE will crash.
…pache#33853)

Allocator address sanitizers enable dwarf_location_info_mode=DISABLED stack trace, this will no stack line numbers, maybe cause performance reduce 1x
…mtracker (apache#33933)

Co-authored-by: yiguolei <yiguolei@gmail.com>
…when Debug compile (apache#35014)

to eliminate query memory leak !!!
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@xinyiZzz
Copy link
Contributor Author

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

be/src/util/block_compression.cpp Show resolved Hide resolved
be/src/util/block_compression.cpp Show resolved Hide resolved
@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.15% (9321/25783)
Line Coverage: 27.72% (76573/276284)
Region Coverage: 26.49% (39283/148301)
Branch Coverage: 23.31% (20030/85932)
Coverage Report: http://coverage.selectdb-in.cc/coverage/5768c1809dd77895c62131bd34476789ebdb27ea_5768c1809dd77895c62131bd34476789ebdb27ea/report/index.html

@yiguolei yiguolei merged commit f16615a into apache:branch-2.1 Sep 14, 2024
19 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants