Bug 1454418
Summary: | Glusterd segmentation fault in ' _Unwind_Backtrace' while running peer probe | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Gaurav Yadav <gyadav> | ||||
Component: | glusterd | Assignee: | Gaurav Yadav <gyadav> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | mainline | CC: | amukherj, anraj, bugs, earl, guyc, gyadav, kaushal, kkeithle, ppai, sbairagy, skoduri | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | glusterfs-3.12.0 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 1447523 | Environment: | |||||
Last Closed: | 2017-09-05 17:31:32 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: | |||||||
Bug Depends On: | 1447523, 1459759, 1459760 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Gaurav Yadav
2017-05-22 16:57:06 UTC
REVIEW: https://review.gluster.org/17359 (glusterd : Fix crash in glusterd while peer probing) posted (#1) for review on master by Gaurav Yadav (gyadav) Can you please elaborate on your findings? REVIEW: https://review.gluster.org/17359 (glusterd : Fix crash in glusterd while peer probing) posted (#2) for review on master by Gaurav Yadav (gyadav) REVIEW: https://review.gluster.org/17359 (libglusterfs : Fix crash in glusterd while peer probing) posted (#3) for review on master by Gaurav Yadav (gyadav) I built glusterfs without the backtrace handler by commenting out HAVE_BACKTRACE: /* define if found backtrace */ /* #undef HAVE_BACKTRACE */ Here's the "real" backtrace from a debug build: (gdb) bt #0 0x00007f9bf14fa941 in BIT_SET (array=0x7fffe8e7b0c0 "", index=4294967295) at common-utils.h:247 #1 0x00007f9bf15015d1 in gf_ports_reserved (blocked_port=0x2635e58 "49152", ports=0x7fffe8e7b0c0 "", ceiling=49152) at common-utils.c:3098 #2 0x00007f9bf1501248 in gf_process_reserved_ports (ports=0x7fffe8e7b0c0 "", ceiling=49152) at common-utils.c:3021 #3 0x00007f9bec3b7d20 in af_inet_bind_to_port_lt_ceiling (fd=9, sockaddr=0x2634230, sockaddr_len=16, ceiling=49152) at name.c:55 #4 0x00007f9bec3b8d53 in client_bind (this=0x2633f80, sockaddr=0x2634230, sockaddr_len=0x26342b0, sock=9) at name.c:478 #5 0x00007f9bec3b3f6a in socket_connect (this=0x2633f80, port=0) at socket.c:3232 #6 0x00007f9bf12b595f in rpc_transport_connect (this=0x2633f80, port=0) at rpc-transport.c:418 #7 0x00007f9bf12b8eb4 in rpc_clnt_reconnect (conn_ptr=0x2633d80) at rpc-clnt.c:407 #8 0x00007f9bf12ba789 in rpc_clnt_start (rpc=0x2633d50) at rpc-clnt.c:1196 #9 0x0000000000411599 in glusterfs_mgmt_init (ctx=0x25be010) at glusterfsd-mgmt.c:2429 #10 0x000000000040ab50 in glusterfs_volumes_init (ctx=0x25be010) at glusterfsd.c:2387 #11 0x000000000040b076 in main (argc=19, argv=0x7fffe8e7e588) at glusterfsd.c:2518 REVIEW: https://review.gluster.org/17359 (libglusterfs : Fix crash in glusterd while peer probing) posted (#4) for review on master by Gaurav Yadav (gyadav) COMMIT: https://review.gluster.org/17359 committed in master by Jeff Darcy (jeff.us) ------ commit 23930326e0378edace9c8c41e8ae95931a2f68ba Author: Gaurav Yadav <gyadav> Date: Mon May 22 23:25:47 2017 +0530 libglusterfs : Fix crash in glusterd while peer probing glusterd crashes when port is being set explcitly to a range which is outside greater than short data type range. Eg. sysctl net.ipv4.ip_local_reserved_ports="49152-49156" In above case glusterd crashes while parsing the port. With this fix glusterd will be able to handle port range between INT_MIN to INT_MAX Change-Id: I7c75ee67937b0e3384502973d96b1c36c89e0fe1 BUG: 1454418 Signed-off-by: Gaurav Yadav <gyadav> Reviewed-on: https://review.gluster.org/17359 Smoke: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> Reviewed-by: Samikshan Bairagya <samikshan> Reviewed-by: Atin Mukherjee <amukherj> Reviewed-by: Niels de Vos <ndevos> Reviewed-by: Jeff Darcy <jeff.us> 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.12.0, please open a new bug report. glusterfs-3.12.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/2017-September/000082.html [2] https://www.gluster.org/pipermail/gluster-users/ The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |