Bug 1521213
Summary: | crash when gifs_set_logging is called concurrently | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Zhang Huan <zhhuan> |
Component: | libgfapi | Assignee: | bugs <bugs> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | bugs <bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | mainline | CC: | bugs |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-4.0.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-15 11:22:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Zhang Huan
2017-12-06 02:13:01 UTC
REVIEW: https://review.gluster.org/18940 (libglusterfs: specify ctx in gf_log_set_loglevel) posted (#1) for review on master by Zhang Huan REVIEW: https://review.gluster.org/18941 (gfapi: fix issue when glfs_set_logging is called concurrently) posted (#1) for review on master by Zhang Huan COMMIT: https://review.gluster.org/18940 committed in master by \"Zhang Huan\" <zhanghuan> with a commit message- libglusterfs: specify ctx in gf_log_set_loglevel specify ctx in gf_log_set_loglevel, instead of getting it from a thread specific variable. Change-Id: I498f826e8e32231235a6b0005026a27c327727fd BUG: 1521213 Signed-off-by: Zhang Huan <zhanghuan> COMMIT: https://review.gluster.org/18941 committed in master by \"Zhang Huan\" <zhanghuan> with a commit message- gfapi: fix issue when glfs_set_logging is called concurrently glfs_set_logging changes THIS->ctx without lock, during initialization THIS refers to global_xlator. Concurrently changing it could result in global_xlator.ctx being some fs->ctx. After that fs->ctx is destroyed, global_xlator.ctx refers to an invalid pointer and that causes crash in sbusequent access. Change-Id: I6682173811799bafd525d9ab371874f3803baa0e BUG: 1521213 Signed-off-by: Zhang Huan <zhanghuan> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-4.0.0, please open a new bug report. glusterfs-4.0.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://lists.gluster.org/pipermail/announce/2018-March/000092.html [2] https://www.gluster.org/pipermail/gluster-users/ |