-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
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>
/run regression |
There was a problem hiding this 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.
I have already tested, it solves the issue. |
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. |
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>
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>
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