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

configure: Enable ltcmalloc_minimal instead of ltcmalloc #2994

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

mohit84
Copy link
Contributor

@mohit84 mohit84 commented Dec 1, 2021

The gluster process is getting crashed while ltcmalloc library init/fini related functions are called in two different
threads during a library loaded/unloaded.The process is getting crashed during access of tls variables in heap profiler
api. Though the issue is already fixed(gperftools/gperftools#786) in gperftool-9 but the rpm has not been build for rhel-(7|8).The heap profile api is access by an application while application is linked with libtcamlloc.

Solution: To avoid a crash linked library with ltcmalloc_minimal
Fixes: #2971
Signed-off-by: Mohit Agrawal moagrawa@redhat.com

The gluster process is getting crashed while ltcmalloc
library is loaded/unloaled in two different threads.The process
is getting crashed during access of tls variables in heap profiler
api. Though the issue is already fixed(gperftools/gperftools#786)
in gperftool-9 but the rpm has not been build for rhel-(7|8).The heap profile api is access
only an application is linked with libtcamlloc.

Solution: To avoid a crash linked library with ltcmalloc_minimal
Fixes: gluster#2971
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
@mohit84
Copy link
Contributor Author

mohit84 commented Dec 1, 2021

/run regression

Copy link
Contributor

@mykaul mykaul left a comment

Choose a reason for hiding this comment

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

LGTM, let's hope it solves that issue.

@mohit84
Copy link
Contributor Author

mohit84 commented Dec 1, 2021

LGTM, let's hope it solves that issue.

I have already tested, it solves the issue.

@xhernandez
Copy link
Contributor

The change looks good to me. Given the criticality, I'll merge it. However I would try to implement a more dynamic approach by checking the tcmalloc version at configure time and use it to decide to which library to link (tcmalloc vs tcmalloc_minimal). Otherwise we'll permanently lose profiling and checking capabilities that could be very useful for debugging and improving performance.

@xhernandez xhernandez merged commit 102a9aa into gluster:devel Dec 1, 2021
mohit84 added a commit to mohit84/glusterfs that referenced this pull request Dec 2, 2021
The gluster process is getting crashed while ltcmalloc library
init/fini related functions are called in two different
threads during a library loaded/unloaded.The process is getting
crashed during access of tls variables in heap profiler
api. Though the issue is already fixed(gperftools/gperftools#786)
in gperftool-9 but the rpm has not been build for rhel-(7|8).
The heap profile api is access by an application while application is linked with libtcamlloc.

Solution: To avoid a crash linked library with ltcmalloc_minimal

> Fixes: gluster#2971
> Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
> (Cherry picked from upstream gluster#2994)

Fixes: gluster#2971
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
mohit84 added a commit that referenced this pull request Dec 23, 2021
The gluster process is getting crashed while ltcmalloc library
init/fini related functions are called in two different
threads during a library loaded/unloaded.The process is getting
crashed during access of tls variables in heap profiler
api. Though the issue is already fixed(gperftools/gperftools#786)
in gperftool-9 but the rpm has not been build for rhel-(7|8).
The heap profile api is access by an application while application is linked with libtcamlloc.

Solution: To avoid a crash linked library with ltcmalloc_minimal

> Fixes: #2971
> Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
> (Cherry picked from upstream #2994)

Fixes: #2971
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
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.

core file from /tests/basic/fencing/afr-lock-heal-advanced.t
3 participants