Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: "CHIGOT, CLEMENT" Newsgroups: gnu.bash.bug Subject: Re: Issue with Bash Date: Fri, 10 Jul 2020 11:52:47 +0000 Lines: 164 Approved: bug-bash@gnu.org Message-ID: References: , , NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1594381986 5643 209.51.188.17 (10 Jul 2020 11:53:06 GMT) X-Complaints-To: action@cs.stanford.edu Cc: "bug-bash@gnu.org" , "chet.ramey@case.edu" To: Rishita Saha16 Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atos.net; i=@atos.net; q=dns/txt; s=mail; t=1594381980; x=1625917980; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=KkAXmY4lJ/pwY0476H3iYcGgvSZnvcFRke+NG548sp8=; b=ZMsAkEibBs+LjOhTZ09JqLukyU9p/+HI9UFMw+DK2xth3z+ODKYasQZG kQlRMPPHfi2o17EMwpflhjxIH+MRwAkp5Aogh1djwu5jBU6eVDel3HS7M ekeiagVQo52+CNXLhRVHxjSkQMpa/pwzscNaaLY/ZAhM04diBABaXyjxh Y=; IronPort-SDR: JtUyW3mBmDM3yHHKJcDdLOuQ/498dbnfK+Htf668v51uI9duScLil8NJd42nqeMhRy0i4sxbpa CnXu29m842cwDkCWCLrK6GBxWttbrzEf0CrHj8nC2UjFrZ0U4cwJ1eDB7G9YRCA859lMrW168d cjb0PqBRgAM3EDLa4113Cvr0L4iV8EW1wreOkzydIobOVPLrmg0kV/WyxeiAxFzp/nO4rpNNob yFcuMAvWPqL5FO8ul9WoMycAhnAXYoW3ChqxIAPwOgLColYh17pdbLHW9qWSspF3f3jBLMNIa3 LJ5E148cJFgtksc/CG/m/66/ X-IronPort-AV: E=Sophos;i="5.75,335,1589234400"; d="scan'208,217";a="80236311" X-MGA-submission: =?us-ascii?q?MDELuiK/Vc/0xZeUy/TEOohFMxGkIHJQ1xhF32?= =?us-ascii?q?clXywcxeBUVgd2S4g739rLYA3xDsg5F6rzHcMTMoA/tDpOJSqunldtwT?= =?us-ascii?q?Vgt9/97id3XrkOOjxQ9e+vbPWnyJK4K6y+ox7mOhSBVAXMRVKuLjkM60?= =?us-ascii?q?Xi?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XVKbWNXIxXbHx+3Xc/wPtbSxJyX64ouqlxfAGdzre8hONOCOKwi5nhQmHN3oC8Zs1JZOKGm/HK2RbV+wvFNksYDnTQXmm0lq6Z8P/7nCX9oYvEiZ3RV98LHH10uaEjE5IblSQNMt0UiBV65fg34HIqPC4Z26rnczyap4x9rGmah0FV/J37SLB3BIDbZAYs+5J7u6a1F2ktsi1ZOwO7nm23oXHRtoo2w/9Mnkx0lwOa0qdRqze/+a7sjxSTBVCmeXO6u8LV3Hu/g6HA+VOf4DkU978LmXVX28g+GIdsv4/klK1V0HDqcoIvJRaUqaEi7FFSoIgcUxduFSNZNPPk9+qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KkAXmY4lJ/pwY0476H3iYcGgvSZnvcFRke+NG548sp8=; b=A7bt2h3vud46hPSp/LPOiiCCmBcP2vYtrYPqW0mXkJFpkRk6gWLmsN+t4DW4p2bijYD1GXn2IJGrbxclUAfrOKMA6JAU09xqp7yUNiwwwC6NfRSTGLq6+fZGSFQ88DQOsGDeLXftoZyym7a9NQ6+CN0cnqD4dQAQUKn21RFOSD0dVt+dqJN1mjJBOwGMIR2uFAfzClPkx+qe4lpW44+0pVwbSoami3Dj8281KO6w5/vw+O31H/b377DOK4R05YDgbzYcYy3LqVHVMItXgZjZHSspJESjSnmS6WoffJL+GDow3nYoHIShEG0c7d6XrYEHkzoqvCRDS40HJnFdnoP2kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=atos.net; dmarc=pass action=none header.from=atos.net; dkim=pass header.d=atos.net; arc=none Thread-Topic: Issue with Bash Thread-Index: AQHWVfKFLMPvXbQv40SMpRvYN3C6CKj/SM8zgAFo+wCAAAGZBw== In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Enabled=True; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_SiteId=33440fc6-b7c7-412c-bb73-0e70b0198d5a; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_SetDate=2020-07-10T11:52:47.252Z; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Name=Atos For Internal Use - All Employees; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_ContentBits=0; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Method=Standard; authentication-results: in.ibm.com; dkim=none (message not signed) header.d=none;in.ibm.com; dmarc=none action=none header.from=atos.net; x-originating-ip: [80.78.5.104] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 02046abd-5438-4c89-fc3f-08d824c7c403 x-ms-traffictypediagnostic: AM4PR02MB3122: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: j9bmjWaC29yY6rFPndBTwoPp9NqB8imBz25Og3O4VqP5JlNur2cMDfIrmDqy9WPnuKwduKKtfmXdfulS5xqPS6mTNhDXAvtOyD8IPJEQlMXcx7HwNqTgwySLPXegqBogx64IcTjuctEbViCpLMnL/HAorbv57mFICW4ldqK6akIE2K1sWj+NRp45Nfs5STD0u6ylaYYwu5Ck9IS5/4Vjn7fyZxxWrLhoRbHVyS2sAkW7bknjHMftQdjZeC9SSN/zcsjRi6CEF1J8cmVml2QVGc3uj5m3D6Yh6HWr6fLl1fEyOhlrQ4orNM00In+c1NCNA3oI9TZPC+IxT2eqReeIAV3fPkf2WP1ZYagANDtRXtW3O2FNDphPzClUZZMBILEsdLVEuB2h3cR4wswd/Cg4SA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0202MB3442.eurprd02.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(396003)(346002)(39860400002)(136003)(366004)(966005)(478600001)(6506007)(52536014)(53546011)(5660300002)(8936002)(7116003)(66446008)(64756008)(66556008)(66476007)(66946007)(7696005)(83380400001)(76116006)(4326008)(45080400002)(71200400001)(86362001)(316002)(166002)(8676002)(186003)(19627405001)(55016002)(3480700007)(26005)(66574015)(6916009)(54906003)(33656002)(9686003)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: OxBdlg0Jij+x7vK72oww8zK7V6cBmkyM7zMLQnMlAMgearPAyCVj85tEIqyvsInal9b41ox/IzrDJs+23952dgzjnF0yTvSIYh49Zrfqn1LUPRAueHim765FRHvQEZSGQt3w6/va4e6nBtNwE3lPgsZW9hkNnhEGXtm+8abIUPVks0nC1ccoyWQ1EN/iEVe8XqYKQGj+1pFg1j/OqhTkTAWMQmBSACNOGFSacySaEPsor0oy54kd2pB6S3TLGtX9ZbMsyDFgU0t36WV90Atdp2ma06kuJTkG2BvDgkFiPOGshrzS0+H+wNG9SosM7rAeJHp441Xgsi5fy2vmd7JhMYkp6iHrstXUYTcq5v8SDuxgisH11NCNo0xCFbq7OsBmP2TY38icFX+WL48AcbEoo2vmLnLhF8tHAgqs+Uc56hErPON5hl/8CW8nOiJaaXOvq+CuuGLxq2VMT30vcAfPSaTc97d8arH+rXgvWzP3Pd8= x-ms-exchange-transport-forked: True X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR0202MB3442.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02046abd-5438-4c89-fc3f-08d824c7c403 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jul 2020 11:52:47.7383 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 33440fc6-b7c7-412c-bb73-0e70b0198d5a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KCSyi1WCb2PuzRlnOHnaPDkj9ak+KHshycM+0nkUWen4cSCpgI3q6tPC1RbIYo2ORVwhRrWlXwnym3SJ03s3QQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR02MB3122 X-OriginatorOrg: atos.net Received-SPF: pass client-ip=193.56.114.177; envelope-from=clement.chigot@atos.net; helo=smarthost4.atos.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/10 07:52:55 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: , , Xref: csiph.com gnu.bash.bug:16559 Hi Rishita, Thanks for the try. But as Chet said it was unlikely to be related to these= patches. We'll have to understand what is causing this loop. Did you confirm that th= e signal delivered is SIGTTOU ? Thanks, Cl=E9ment ________________________________ From: Rishita Saha16 Sent: Friday, July 10, 2020 1:40 PM To: CHIGOT, CLEMENT Cc: bug-bash@gnu.org Subject: RE: Issue with Bash Caution! External email. Do not open attachments or click links, unless thi= s email comes from a known sender and you know the content is safe. Hi Clement, We have given it a try after applying the patches that you are referring to= . We are still seeing the core dump. Regards, Rishita ----- Original message ----- From: "CHIGOT, CLEMENT" To: Rishita Saha16 , "bug-bash@gnu.org" Cc: Subject: [EXTERNAL] Re: Issue with Bash Date: Thu, Jul 9, 2020 7:46 PM Hi Rishita, Could you try with BullFreeware's version, which have a slightly higher ver= sion (5.0.11 instead of 5.0) ? You can find it at http://www.bullfreeware.com/pkg?id=3D5740. If it's not working, I'll check what's wrong. Cl=E9ment ________________________________ From: bug-bash on beha= lf of Rishita Saha16 Sent: Thursday, July 9, 2020 11:17 AM To: bug-bash@gnu.org Subject: Issue with Bash Caution! External email. Do not open attachments or click links, unless thi= s email comes from a known sender and you know the content is safe. Hi All, We are using Bash 5.0 (64bit built using gcc ) in AIX 7.2 machine .This is the spec file for reference --> [1]https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fp= ublic.dhe.ibm.com%2Faix%2FfreeSoftware%2Faixtoolbox%2FSPECS%2Fbash-5&da= ta=3D02%7C01%7Cclement.chigot%40atos.net%7C2310b33a682446f8ff2108d82409a6ef= %7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C1%7C637298971158015991&sdata= =3DkVr8cM1wtAs00LdGp11Sjz1Mo8wuvdTwJ0ZQD4hP%2B5g%3D&reserved=3D0. 0-1.spec. We are seeing recurring bash core dumps on our servers. Leaving bash sessions running on the servers for extended periods of time causes the core dump (to recreate it, we left httpd running for about a week and a half and encountered the core dump). I am hereby sharing the stack trace of the core so generated. #0 0x0900000000038d0c in __ioctl () from /usr/lib/libc.a(shr_64.o) #1 0x09000000000392c8 in ioctl () from /usr/lib/libc.a(shr_64.o) #2 0x09000000001c16f0 in tcsetattr () from /usr/lib/libc.a(shr_64.o) #3 0x00000001000aec78 in set_tty_settings (tty=3D0, tiop=3D0x110013a90 <_rltty.bss_3_+64>) at rltty.c:466 #4 0x00000001000aef58 in rl_deprep_terminal () at rltty.c:704 #5 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #6 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #7 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #8 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #9 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #10 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #11 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #12 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #13 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #14 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #15 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #16 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #17 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #18 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #19 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #20 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #21 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #22 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #23 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #24 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #25 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #26 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #27 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #28 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #29 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #30 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #31 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #32 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #33 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #34 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #35 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #36 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #37 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #38 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #39 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 #40 0x00000001000aef80 in rl_deprep_terminal () at rltty.c:713 #41 0x000000010002cf38 in rl_cleanup_after_signal () at signals.c:559 #42 0x000000010002d500 in _rl_handle_signal (sig=3D268438344) at signals.c:249 From the stack trace , it looks like bash is looping in a code that is setting terminal attributes in response to a signal, and dumps core once it runs out of stack. Any insights will be greatly helpful. Thanks and Regards Rishita Saha References 1. https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fp= ublic.dhe.ibm.com%2Faix%2FfreeSoftware%2Faixtoolbox%2FSPECS%2Fbash-5.0-1.sp= ec&data=3D02%7C01%7Cclement.chigot%40atos.net%7C2310b33a682446f8ff2108d= 82409a6ef%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C1%7C637298971158015991&a= mp;sdata=3DCJmbnCe8hEUbpVBeKDP%2FHWofB9PbIB2FEkDL3aBQeBA%3D&reserved=3D= 0