Bug 1065611 - Crash in glusterfs rpc
Summary: Crash in glusterfs rpc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: rpc
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-15 06:42 UTC by Vijay Bellur
Modified: 2014-11-11 08:27 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.6.0beta1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-11 08:27:51 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Vijay Bellur 2014-02-15 06:42:43 UTC
Description of problem:

Thanks to Emmanuel Dreyfus for the bug report.

backtrace:

> 
> #0  0xbb7dd6d0 in strcpy () from /lib/libc.so.12
> #1  0xbbb630e9 in _gf_log (domain=0xbbbcf2fe "rpc-service",
>      file=0xbbbcfd60 "rpcsvc.c", function=0xbbbd0433 "rpcsvc_submit_generic",
>      line=1206, level=GF_LOG_ERROR,
>      fmt=0xbbbcf85c "failed to submit message (XID: 0x%x, Program: %s, ProgVers: %d, Proc: %d) to rpc-transport (%s)") at logging.c:874
> #2  0xbbbc5278 in rpcsvc_submit_generic (req=0xb9204570, proghdr=0x1d7fef04,
>      hdrcount=1, payload=0x0, payloadcount=0, iobref=0x81fe098) at rpcsvc.c:1208
> #3  0xb9e15b63 in server_submit_reply (frame=0xba702f38, req=0xb9204570,
>      arg=0x1d7ff018, payload=0x0, payloadcount=0, iobref=0x81fe098,
>      xdrproc=0xbbbdb99c <xdr_gfs3_create_rsp>) at server.c:177
> #4  0xb9e2f7d5 in server_create_cbk (frame=0xba702f38, cookie=0xbb58b258,
>      this=0xb9ff4018, op_ret=0, op_errno=0, fd=0xb809e388, inode=0xb8173ca8,
>      stbuf=0x1d7ff5c0, preparent=0x1d7ff558, postparent=0x1d7ff4f0,
>      xdata=0x81fc328) at server-rpc-fops.c:1627
> #5  0xb9e4fdbf in io_stats_create_cbk (frame=0xbb58b258, cookie=0xbb58be28,
>      this=0xb9ff2018, op_ret=0, op_errno=0, fd=0xb809e388, inode=0xb8173ca8,
>      buf=0x1d7ff5c0, preparent=0x1d7ff558, postparent=0x1d7ff4f0,
>      xdata=0x81fc328) at io-stats.c:1234
> #6  0xb9e79354 in marker_create_cbk (frame=0xbb58be28, cookie=0xbb58bc68,
>      this=0xb9ff0018, op_ret=0, op_errno=0, fd=0xb809e388, inode=0xb8173ca8,
>      buf=0x1d7ff5c0, preparent=0x1d7ff558, postparent=0x1d7ff4f0,
>      xdata=0x81fc328) at marker.c:651
> #7  0xb9e9786d in iot_create_cbk (frame=0xbb58bc68, cookie=0xbb58bb88,
>      this=0xb9fee018, op_ret=0, op_errno=0, fd=0xb809e388, inode=0xb8173ca8,
>      stbuf=0x1d7ff5c0, preparent=0x1d7ff558, postparent=0x1d7ff4f0,
>      xdata=0x81fc328) at io-threads.c:910
> #8  0xbb60a66b in pl_create_cbk (frame=0xbb58bb88, cookie=0xbb58c598,
>      this=0xb9fed018, op_ret=0, op_errno=0, fd=0xb809e388, inode=0xb8173ca8,
>      buf=0x1d7ff5c0, preparent=0x1d7ff558, postparent=0x1d7ff4f0,
>      xdata=0x81fc328) at posix.c:1056
> #9  0xbb620a82 in posix_acl_create_cbk (frame=0xbb58c598, cookie=0xbb58c058,
>      this=0xb9fde018, op_ret=0, op_errno=0, fd=0xb809e388, inode=0xb8173ca8,
>      buf=0x1d7ff5c0, preparent=0x1d7ff558, postparent=0x1d7ff4f0,
>      xdata=0x81fc328) at posix-acl.c:1225
> #10 0xbb6287a8 in changelog_create_cbk (frame=0xbb58c058, cookie=0xbb58b808,
>      this=0xb9fdd018, op_ret=0, op_errno=0, fd=0xb809e388, inode=0xb8173ca8,
>      buf=0x1d7ff5c0, preparent=0x1d7ff558, postparent=0x1d7ff4f0,
>      xdata=0x81fc328) at changelog.c:530
> #11 0xbb63bf1a in posix_create (frame=0xbb58b808, this=0xb9fdc018,
>      loc=0xba109968, flags=1538, mode=33152, umask=0, fd=0xb809e388,
>      xdata=0x81fc328) at posix.c:2238
> #12 0xbb62b474 in changelog_create (frame=0xbb58c058, this=0xb9fdd018,
>      loc=0xba109968, flags=1538, mode=33152, umask=0, fd=0xb809e388,
>      xdata=0x81fc328) at changelog.c:586
> #13 0xbb61fc55 in posix_acl_create (frame=0xbb58c598, this=0xb9fde018,    loc=0xba109968, flags=1538, mode=33152, umask=0, fd=0xb809e388,
>      xdata=0x81fc328) at posix-acl.c:1245
> #14 0xbb607d2c in pl_create (frame=0xbb58bb88, this=0xb9fed018,
>      loc=0xba109968, flags=1538, mode=33152, umask=0, fd=0xb809e388,
>      xdata=0x81fc328) at posix.c:1068
> #15 0xb9e9b9f1 in iot_create_wrapper (frame=0xbb58bc68, this=0xb9fee018,
>      loc=0xba109968, flags=1538, mode=33152, umask=0, fd=0xb809e388,
>      xdata=0x81fc328) at io-threads.c:921
> #16 0xbbb81c0d in call_resume_wind (stub=0xba109948) at call-stub.c:2528
> #17 call_resume (stub=0xba109948) at call-stub.c:2841
> #18 0xb9e9cf8e in iot_worker (data=0xba0f4058) at io-threads.c:191
> #19 0xbb9c04ea in ?? () from /usr/lib/libpthread.so.1
> #20 0xbb76dea0 in ___lwp_park50 () from /lib/libc.so.12
> #21 0x1d600000 in ?? ()
> #22 0xbbb88144 in __glusterfs_this_location () at globals.c:119
> #23 0xbbb88144 in __glusterfs_this_location () at globals.c:119
> #24 0xbbb62d04 in _gf_log (domain=0x0, file=0x0, function=0x0, line=0,
>      level=GF_LOG_NONE, fmt=0x0) at logging.c:757
> #25 0x00000000 in ?? ()

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Anand Avati 2014-02-15 06:50:02 UTC
REVIEW: http://review.gluster.org/7007 (rpc: Fix a crash due to NULL dereference) posted (#1) for review on master by Vijay Bellur (vbellur)

Comment 2 Anand Avati 2014-02-15 10:47:43 UTC
REVIEW: http://review.gluster.org/7007 (rpc: Fix a crash due to NULL dereference) posted (#2) for review on master by Vijay Bellur (vbellur)

Comment 3 Anand Avati 2014-02-16 18:51:06 UTC
COMMIT: http://review.gluster.org/7007 committed in master by Anand Avati (avati) 
------
commit e77c485c700c9e127ae564958eb5c4733e61f888
Author: Vijay Bellur <vbellur>
Date:   Sat Feb 15 12:14:19 2014 +0530

    rpc: Fix a crash due to NULL dereference
    
    Change-Id: Ib2bf6dd564fb7e754d5441c96715b65ad2e21441
    BUG: 1065611
    Signed-off-by: Vijay Bellur <vbellur>
    Reviewed-on: http://review.gluster.org/7007
    Reviewed-by: Niels de Vos <ndevos>
    Tested-by: Gluster Build System <jenkins.com>

Comment 4 Niels de Vos 2014-09-22 12:35:56 UTC
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED.

Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-September/018836.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 5 Niels de Vos 2014-11-11 08:27:51 UTC
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-3.6.1, please reopen this bug report.

glusterfs-3.6.1 has been announced [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://supercolony.gluster.org/pipermail/gluster-users/2014-November/019410.html
[2] http://supercolony.gluster.org/mailman/listinfo/gluster-users


Note You need to log in before you can comment on or make changes to this bug.