Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: George R Goffe Newsgroups: gnu.bash.bug Subject: Re: Is this a bug? Date: Wed, 19 Aug 2020 20:55:35 +0000 (UTC) Lines: 184 Approved: bug-bash@gnu.org Message-ID: References: <1361377909.989786.1596736417780.ref@mail.yahoo.com> <1361377909.989786.1596736417780@mail.yahoo.com> <0d88a4ca-9eca-62b4-91bd-d2e4083190f3@case.edu> <1312274972.4025864.1597785278610@mail.yahoo.com> <6575997b-0217-046a-8ef1-0437571475ca@case.edu> <1699062943.4171052.1597809756404@mail.yahoo.com> <16e6944b-9707-a80c-3602-e76edcca64ec@case.edu> <630008166.4463802.1597857290469@mail.yahoo.com> <054462f1-e801-bdcc-8f0d-b880ef8eab79@case.edu> <300430358.4632420.1597870535904@mail.yahoo.com> Reply-To: George R Goffe NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1597870545 24913 209.51.188.17 (19 Aug 2020 20:55:45 GMT) X-Complaints-To: action@cs.stanford.edu To: "bug-bash@gnu.org" , Chet Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1597870538; bh=BLsS8EekGn94egmp0ZeMxRaDXQCiGfJO0y2BzhO7khE=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=dwBYqngbu+lTP5240zRavY4U2gI9cu2IdQwv6O5ruKUtnvDjF+xMIq48a7vwt6DyGWAuwhPQSWwasJzqKQtGsj7l7u6XE6HEeFCpVNqC8hEXWg3AJ4PKQrpjSXPaq3SamC8n4tqlFD3oaHv/KrvwL/gLCeI7dn/ue7GW/+F84gjGZnDz51ebkDkrwmdG7Asx4JWjZeDqx6PLyf1OcB8sgERIoCff33+N4yfSsQiUsHSeY+gS5GJjtyJu6ewkBBOeUj/4j7/7rLT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7lr7EQbXGRKb4dyyuesjfgIfJc4ypIZEgOCC2FVpY38PYF93lTKL8DlI kkdu45eAF5U6C9rVUA6uYQTEKx1FRH4EgAu3PK9PrQLfV8S0n5D.lxfwTDhNvPBxAzaQLiy6Cm2S _rF8Ntcuh4ksoItwi010prDVNgQ7AWAgEBoHlf8Bm7QWXHywt1eZoxSp0ttxgTkV_bGBo12npItS MPYOWFJ_MwSE41Dbou3oSV1nofrpleekq7C6s.w5GwOSdP8PEti3kWVFky0UKW1qPZt9J5wd_F7X d8Z9QJBoi4axjusHRSIA4R7vDVTv2Y7lHjQ_X8U5mMpjX4mH9gyQczV1yGzwqfueud91hsCASjgi Mx4DEsm7NbR2dNNd6ur0cKWrRCO.2Q7CCfS1MpbSftfM_d8gEsqfmK.er6OxzLUGE52MyivFnJVt 5w4Ek.ilzUA-- In-Reply-To: <054462f1-e801-bdcc-8f0d-b880ef8eab79@case.edu> X-Mailer: WebService/1.1.16455 YMailNorrin Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0 Content-Length: 7324 Received-SPF: pass client-ip=66.163.185.148; envelope-from=grgoffe@yahoo.com; helo=sonic305-22.consmr.mail.ne1.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/19 16:55:38 X-ACL-Warn: Detected OS = Linux 3.11 and newer [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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-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: <300430358.4632420.1597870535904@mail.yahoo.com> X-Mailman-Original-References: <1361377909.989786.1596736417780.ref@mail.yahoo.com> <1361377909.989786.1596736417780@mail.yahoo.com> <0d88a4ca-9eca-62b4-91bd-d2e4083190f3@case.edu> <1312274972.4025864.1597785278610@mail.yahoo.com> <6575997b-0217-046a-8ef1-0437571475ca@case.edu> <1699062943.4171052.1597809756404@mail.yahoo.com> <16e6944b-9707-a80c-3602-e76edcca64ec@case.edu> <630008166.4463802.1597857290469@mail.yahoo.com> <054462f1-e801-bdcc-8f0d-b880ef8eab79@case.edu> Xref: csiph.com gnu.bash.bug:16784 Chet, I tried several times to create the problem. I think I succeeded. I did ins= tall the "debuginfo" files I could find but it looks like libnss_sss.so's d= ebuginfo isn't built properly? It's supplied by sssd-client. I tried instal= ling sssd-client-debuginfo but it is already installed. I don't remember do= ing that. Sigh... Somehow libnss_sss.so is referenced by bash? That's what = gdb thinks. Anyway, I tried causing the problem. ls -al zzz and then ctrl-c wi= th seemingly no response. I'll have to try running gdb in another konsole s= o I can watch what happens when I ... I'll do that now. Stand by.= =20 ... I'm still not certain that I'm doing it right. When I entered ls -al zzz bash froze. I went to the gdb konsole and typed in where but nothing= happened. Tried several times. Tried ctrl-c on the gbb console. Got gdb's = attention. Entered where. Here's the results: Please let me know if this helps or if you need me to do something differen= t. Regards, George... gdb -p 233460 GNU gdb (GDB) Fedora 9.2-6.fc33 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: =C2=A0=C2=A0=C2=A0 . --Type for more, q to quit, c to continue without paging--c For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 233460 Reading symbols from /usr/bin/bash... Reading symbols from /usr/lib/debug/usr/bin/bash-5.0.17-2.fc33.x86_64.debug= ... Reading symbols from /usr/lib64/libtinfo.so.6... Reading symbols from /usr/lib/debug/usr/lib64/libtinfo.so.6.2-6.2-3.2020022= 2.fc33.x86_64.debug... Reading symbols from /usr/lib64/libdl.so.2... Reading symbols from /usr/lib/debug/usr/lib64/libdl-2.32.9000.so.debug... Reading symbols from /usr/lib64/libc.so.6... Reading symbols from /usr/lib/debug/usr/lib64/libc-2.32.9000.so.debug... Reading symbols from /lib64/ld-linux-x86-64.so.2... Reading symbols from /usr/lib/debug/usr/lib64/ld-2.32.9000.so.debug... Reading symbols from /usr/lib64/libnss_sss.so.2... Reading symbols from .gnu_debugdata for /usr/lib64/libnss_sss.so.2... (No debugging symbols found in .gnu_debugdata for /usr/lib64/libnss_sss.so.= 2) Reading symbols from /usr/lib64/libnss_files.so.2... Reading symbols from /usr/lib/debug/usr/lib64/libnss_files-2.32.9000.so.deb= ug... 0x00007f0c6a55528b in __pselect (nfds=3D1, readfds=3Dreadfds@entry=3D0x7ffe= 53b570a0, writefds=3Dwritefds@entry=3D0x0, exceptfds=3Dexceptfds@entry=3D0x= 0, timeout=3D, timeout@entry=3D0x0, sigmask=3D0x7ffe53b57060= , sigmask@entry=3D0x559c9c04a4e0 <_rl_orig_sigset>) at ../sysdeps/unix/sysv= /linux/pselect.c:48 48=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return SYSCALL_CANCEL (pselect= 6, nfds, readfds, writefds, exceptfds, (gdb) (gdb) (gdb) continue Continuing. [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". [Detaching after fork from child process 387754] [Detaching after fork from child process 388057] where [Detaching after fork from child process 388297] [Detaching after fork from child process 388339] Program received signal SIGINT, Interrupt. 0x00007f0c6a55528b in __pselect (nfds=3D1, readfds=3Dreadfds@entry=3D0x7ffe= 53b570a0, =C2=A0=C2=A0=C2=A0 writefds=3Dwritefds@entry=3D0x0, exceptfds=3Dexceptfds@e= ntry=3D0x0, timeout=3D, =C2=A0=C2=A0=C2=A0 timeout@entry=3D0x0, sigmask=3D0x7ffe53b57060, sigmask@e= ntry=3D0x559c9c04a4e0 <_rl_orig_sigset>) =C2=A0=C2=A0=C2=A0 at ../sysdeps/unix/sysv/linux/pselect.c:48 48=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return SYSCALL_CANCEL (pselect= 6, nfds, readfds, writefds, exceptfds, (gdb) Continuing. where ^C Program received signal SIGINT, Interrupt. 0x00007f0c6a55528b in __pselect (nfds=3D1, readfds=3Dreadfds@entry=3D0x7ffe= 53b570a0, =C2=A0=C2=A0=C2=A0 writefds=3Dwritefds@entry=3D0x0, exceptfds=3Dexceptfds@e= ntry=3D0x0, timeout=3D, =C2=A0=C2=A0=C2=A0 timeout@entry=3D0x0, sigmask=3D0x7ffe53b57060, sigmask@e= ntry=3D0x559c9c04a4e0 <_rl_orig_sigset>) =C2=A0=C2=A0=C2=A0 at ../sysdeps/unix/sysv/linux/pselect.c:48 48=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return SYSCALL_CANCEL (pselect= 6, nfds, readfds, writefds, exceptfds, (gdb) where #0=C2=A0 0x00007f0c6a55528b in __pselect (nfds=3D1, readfds=3Dreadfds@entry= =3D0x7ffe53b570a0, =C2=A0=C2=A0=C2=A0 writefds=3Dwritefds@entry=3D0x0, exceptfds=3Dexceptfds@e= ntry=3D0x0, timeout=3D, =C2=A0=C2=A0=C2=A0 timeout@entry=3D0x0, sigmask=3D0x7ffe53b57060, sigmask@e= ntry=3D0x559c9c04a4e0 <_rl_orig_sigset>) =C2=A0=C2=A0=C2=A0 at ../sysdeps/unix/sysv/linux/pselect.c:48 #1=C2=A0 0x0000559c9bfe78af in rl_getc (stream=3D0x7f0c6a621800 <_IO_2_1_st= din_>) at input.c:529 #2=C2=A0 0x0000559c9bfe6b7c in rl_read_key () at input.c:495 #3=C2=A0 0x0000559c9bfc7c4a in readline_internal_char () at readline.c:620 #4=C2=A0 0x0000559c9bfc87cd in readline_internal_charloop () at readline.c:= 706 #5=C2=A0 readline_internal () at readline.c:718 #6=C2=A0 readline (prompt=3D) at readline.c:424 #7=C2=A0 0x0000559c9bf30f1f in yy_readline_get () at ./parse.y:1487 #8=C2=A0 0x0000559c9bf32a29 in yy_getc () at ./parse.y:2345 --Type for more, q to quit, c to continue without paging-- #9=C2=A0 shell_getc (remove_quoted_newline=3D1) at ./parse.y:2345 #10 0x0000559c9bf3532a in read_token (command=3D) at ./parse= .y:3252 #11 0x0000559c9bf38c52 in read_token (command=3D0) at ./parse.y:3202 #12 yylex () at ./parse.y:2761 #13 yyparse () at y.tab.c:1835 #14 0x0000559c9bf3c00b in parse_command () at eval.c:304 #15 0x0000559c9bf3c14d in read_command () at eval.c:348 #16 0x0000559c9bf3c415 in reader_loop () at eval.c:143 #17 0x0000559c9bf2e689 in main (argc=3D3, argv=3D0x7ffe53b58438, env=3D0x7f= fe53b58458) at shell.c:815 (gdb) On Wednesday, August 19, 2020, 11:44:34 AM PDT, Chet Ramey wrote: On 8/19/20 1:14 PM, George R Goffe wrote: > Chet, > > How can I help capture data about this problem? > > When I run bash in one konsole and it hangs, I do an strace on that pid a= nd the strace -xvfp always shows pselect. Eventually, the results com= e back but til then, the session is frozen. You can try running gdb on bash from another terminal, attaching to the hanging bash process with `attach ', and generating a backtrace from gdb. That would at least give you the call stack. Make sure to run the bash instance you're testing with `--noprofile --norc' to get as vanilla an environment as possible. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ``Ars longa, vita brevis'' - Hip= pocrates Chet Ramey, UTech, CWRU=C2=A0=C2=A0=C2=A0 chet@case.edu=C2=A0=C2=A0=C2=A0 h= ttp://tiswww.cwru.edu/~chet/