Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16654

RE: Issue with Bash

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From "Rishita Saha16" <risaha16@in.ibm.com>
Newsgroups gnu.bash.bug
Subject RE: Issue with Bash
Date Fri, 31 Jul 2020 07:25:56 +0000
Lines 96
Approved bug-bash@gnu.org
Message-ID <mailman.366.1596180365.2739.bug-bash@gnu.org> (permalink)
References <e98f31b4-66a6-46a4-5a05-ad10c98c2f07@case.edu> <OF94D9117F.783D1B7F-ON002585A0.002B581F-002585A0.0033083D@notes.na.collabserv.com> <AM0PR0202MB3442338FB2BA03CC53BF18F5EA640@AM0PR0202MB3442.eurprd02.prod.outlook.com> <OFDCE7FFF8.B623ABC2-ON002585AB.0023ACB2-002585AB.0023F29F@notes.na.collabserv.com> <OFBE0423CD.27BCE8FB-ON002585B6.00241358-002585B6.0028D3D0@notes.na.collabserv.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1596180366 23095 209.51.188.17 (31 Jul 2020 07:26:06 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org, chet.ramey@case.edu
To chet.ramey@case.edu
Envelope-to bug-bash@gnu.org
In-Reply-To <f5eb0eab-77e9-d5e3-2829-c6275008ddf4@case.edu>
Sensitivity
Importance Normal
X-Priority 3 (Normal)
X-Mailer IBM Verse Build 17652-1661 | IBM Domino Build SCN1812108_20180501T0841_FP65 April 15, 2020 at 09:48
X-LLNOutbound False
X-Disclaimed 37407
X-TNEFEvaluated 1
x-cbid 20073107-2475-0000-0000-000003A90211
X-IBM-SpamModules-Scores BY=0.293935; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.397008; ST=0; TS=0; UL=0; ISC=; MB=0.000000
X-IBM-SpamModules-Versions BY=3.00013566; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000295; SDB=6.01413616; UDB=6.00757792; IPR=6.01195896; MB=3.00033279; MTD=3.00000008; XFM=3.00000015; UTC=2020-07-31 07:25:58
X-IBM-AV-DETECTION SAVI=unsuspicious REMOTE=unsuspicious XFE=unused
X-IBM-AV-VERSION SAVI=2020-07-31 04:59:41 - 6.00011665
x-cbparentid 20073107-2476-0000-0000-0000C5841A5D
X-Proofpoint-UnRewURL 3 URL's were un-rewritten
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-31_02:2020-07-30, 2020-07-31 signatures=0
X-Proofpoint-Spam-Reason orgsafe
Received-SPF pass client-ip=148.163.156.1; envelope-from=risaha16@in.ibm.com; helo=mx0a-001b2d01.pphosted.com
X-detected-operating-system by eggs.gnu.org: First seen = 2020/07/31 03:25:59
X-ACL-Warn Detected OS = Linux 3.x [generic] [fuzzy]
X-Spam_score_int -30
X-Spam_score -3.1
X-Spam_bar ---
X-Spam_report (-3.1 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=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 <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <OFBE0423CD.27BCE8FB-ON002585B6.00241358-002585B6.0028D3D0@notes.na.collabserv.com>
X-Mailman-Original-References <f5eb0eab-77e9-d5e3-2829-c6275008ddf4@case.edu>, <e98f31b4-66a6-46a4-5a05-ad10c98c2f07@case.edu> <OF94D9117F.783D1B7F-ON002585A0.002B581F-002585A0.0033083D@notes.na.collabserv.com> <AM0PR0202MB3442338FB2BA03CC53BF18F5EA640@AM0PR0202MB3442.eurprd02.prod.outlook.com> <OFDCE7FFF8.B623ABC2-ON002585AB.0023ACB2-002585AB.0023F29F@notes.na.collabserv.com>
Xref csiph.com gnu.bash.bug:16654

Show key headers only | View raw


   Hi All,

   We have been able to recreate a scenario where bash dumps core
   immediately on issuing a SIGHUP to the parent process (kill -1
   <parent-pid>). On debugging, the core so generated shows exactly the
   same stack trace as we had seen with the previous core. Below is the
   truss output of bash process when the parent process of bash (ksh, in
   this case) gets a SIGHUP:

     _select(0, 0x0000000000000000, 0x0000000000000000,
   0x0000000000000000, 0x0000000000000000) (sleeping...)
   _select(0, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000,
   0x0000000000000000) Err#4  EINTR
       Received signal #1, SIGHUP [caught]
   ksetcontext_sigreturn(0x0FFFFFFFFFFFBB90, 0x0000000000000000,
   0x0FFFFFFFFFFFBB90, 0xF00000002FF48000, 0x000000010002AEDC,
   0xA00000000000D032, 0x0000000000000000, 0x0000000110005CB0)
                                                   = 0x0000000000000004
   ksetcontext_sigreturn(0x0FFFFFFFFFFFBB90, 0x0000000000000004,
   0x0FFFFFFFFFFFFFE0, 0x800000000000D032, 0x0000000000003B98,
   0x0000000000000000, 0xF1000C01C2D9F000, 0x8000000000001032)
       Received signal #1, SIGHUP [caught]
   ksetcontext_sigreturn(0x0FFFFFFFFFFFBB90, 0x0000000000000000,
   0x0FFFFFFFFFFFBB90, 0xF00000002FF48000, 0x000000010002AEDC,
   0xA00000000000D032, 0x0000000000000000, 0x0000000110005CB0)
   kfcntl(2, F_GETFL, 0x0000000000000000)          = 67110914
   kioctl(2, 536900718, 0x0000000000000000, 0x0000000000000000) = 0
   kfcntl(2, F_GETFL, 0x0FFFFFFFFFFFFFE8)          = 67110914
   kioctl(0, 22528, 0x0000000000000000, 0x0000000000000000) = 0
   kioctl(0, 21507, 0x0000000110013AF8, 0x0000000000000000) Err#25 ENOTTY
       Received signal #1, SIGHUP [caught]
   ksetcontext_sigreturn(0x0FFFFFFFFFFFD930, 0x0000000000000000,
   0x0FFFFFFFFFFFD930, 0xF00000002FF48000, 0x000000010002AEDC,
   0xA00000000000D032, 0x0000000000000000, 0x0000000110005CB0)
   kfcntl(2, F_GETFL, 0xFFFFFFFFFFFFFFFF)          = 67110914
   kioctl(2, 536900718, 0x0000000000000000, 0x0000000000000000) = 0
   kfcntl(2, F_GETFL, 0x0FFFFFFFFFFFFFE8)          = 67110914
   kioctl(0, 22528, 0x0000000000000000, 0x0000000000000000) = 0
   kioctl(0, 21507, 0x0000000110013AF8, 0x0000000000000000) Err#25 ENOTTY
       Received signal #1, SIGHUP [caught]
   ksetcontext_sigreturn(0x0FFFFFFFFFFFD780, 0x0000000000000000,
   0x0FFFFFFFFFFFD780, 0xF00000002FF48000, 0x000000010002AEDC,
   0xA00000000000D032, 0x0000000000000000, 0x0000000110005CB0)
   kfcntl(2, F_GETFL, 0xFFFFFFFFFFFFFFFF)          = 67110914
   kioctl(2, 536900718, 0x0000000000000000, 0x0000000000000000) = 0
   kfcntl(2, F_GETFL, 0x0FFFFFFFFFFFFFE8)          = 67110914
   kioctl(0, 22528, 0x0000000000000000, 0x0000000000000000) = 0
   kioctl(0, 21507, 0x0000000110013AF8, 0x0000000000000000) Err#25 ENOTTY
       Received signal #1, SIGHUP [caught]
   ksetcontext_sigreturn(0x0FFFFFFFFFFFD5D0, 0x0000000000000000,
   0x0FFFFFFFFFFFD5D0, 0xF00000002FF48000, 0x000000010002AEDC,
   0xA00000000000D032, 0x0000000000000000, 0x0000000110005CB0)
   kfcntl(2, F_GETFL, 0xFFFFFFFFFFFFFFFF)          = 67110914
   kioctl(2, 536900718, 0x0000000000000000, 0x0000000000000000) = 0
   kfcntl(2, F_GETFL, 0x0FFFFFFFFFFFFFE8)          = 67110914
   kioctl(0, 22528, 0x0000000000000000, 0x0000000000000000) = 0
   kioctl(0, 21507, 0x0000000110013AF8, 0x0000000000000000) Err#25 ENOTTY

   As I can see from the truss output, once bash gets SIGHUP it tries to
   do some terminal related stuff but now since the terminal is gone, it
   throws ENOTTY which is normal. But the problem here is, it keeps
   getting SIGHUP repeatedly and does the same thing again and again,
   finally running out of stack or the OS kills the process.


   Thanks and Regards,
   Rishita Saha

     ----- Original message -----
     From: Chet Ramey <chet.ramey@case.edu>
     To: Rishita Saha16 <risaha16@in.ibm.com>
     Cc: chet.ramey@case.edu, bug-bash@gnu.org
     Subject: [EXTERNAL] Re: Issue with Bash
     Date: Mon, Jul 20, 2020 6:29 PM

   On 7/20/20 2:32 AM, Rishita Saha16 wrote:
   > Hi All,
   >
   > From what we have found out, it does not seem like the signal is
   SIGTTOU.
   > We are working to find out more about it. Meanwhile, any insight
   would be
   > helpful.
   If the process isn't an interactive shell, it would be helpful to know
   why
   it's calling readline and whether that's intended.
   Chet
   --
   ``The lyf so short, the craft so long to lerne.'' - Chaucer
   ``Ars longa, vita brevis'' - Hippocrates
   Chet Ramey, UTech, CWRU    chet@case.edu
   [1]http://tiswww.cwru.edu/~chet/

References

   1. http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

RE: Issue with Bash "Rishita Saha16" <risaha16@in.ibm.com> - 2020-07-31 07:25 +0000

csiph-web