zsh-workers
 help / color / mirror / code / Atom feed
From: Gene <gananda@gmail.com>
To: zsh-workers@sunsite.dk
Subject: Re: zsh hangs on AIX 4.3.3
Date: Sat, 02 Sep 2006 13:42:40 -0400	[thread overview]
Message-ID: <44F9C290.6070703@gmail.com> (raw)
In-Reply-To: <bf7e3eaf0609010856l753eb484pe863afafaf4c660c@mail.gmail.com>

For what it's worth, this bug also appears to exist on an AIX 5.2
platform I have access to.

Gene Carter wrote:
> Greetings,
> 
> I'm trying to use zsh on an AIX 4.3.3 box. Unfortunately, I appear to be
> hitting a bug related to a wait
> on signals.
> 
> I've trimmed down the script to a (perhaps local) minimum to recreate
> the problem. The script seems
> to make it through about 351 interations, and then hangs. ^C won't break
> it out. ^Z won't suspend.
> SIGHUP and SIGCHLD both will stop the process.
> 
> This problem occurs with zsh binaries that I compile as well as
> externally supplied
> binaries (from two sources).
> 
> I would very much like to use zsh to script our administration work on
> these systems.
> Any help would be greately appreciated.
> 
> Thanks,
> Gene
> 
> ----
> script
> ----
> #!/usr3/rfgadm/src/zsh-4.3.2/Src/zsh
> 
> integer ctr=1
> disks=$(while ((ctr < 100)) ; do print $ctr ; let ctr=ctr+1 ; done )
> 
> integer outer=1
> while [ 1 ] ; do
>     print $disks |
>         while read pdisk; do
>             echo $pdisk  | read hdisk
>             echo 0 | read n
>             print $pdisk $((outer*${#disks}+pdisk))
>         done
>     ((outer=outer+1))
> done
> 
> ---
> gcc info
> ---
> 11:39: [carterg@isriscwc {80}] gcc -v
> Reading specs from
> /usr3_is/rfgadm/bin/../lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.3.6/specs
> Configured with: ../gcc-3.3.6/configure --disable-nls
> Thread model: aix
> gcc version 3.3.6
> 11:47: [carterg@isriscwc {81}]
> 
> ---
> gdb trace
> ---
> 11:39: [carterg@isriscwc {260}] gdb /usr3/rfgadm/src/zsh-4.3.2/Src/zsh
> GNU gdb 6.5
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "powerpc-ibm-aix4.3.3.0"...
> (gdb) run zshprob
> Starting program: /usr3_is/rfgadm/src/zsh-4.3.2/Src/zsh zshprob
> ...
> 62 349
> 63 350
> 64 351
> 
> Program received signal SIGTERM, Terminated.
> 0xd01888c8 in sigsuspend () from /usr/lib/libc.a(shr.o)
> (gdb) bt
> #0  0xd01888c8 in sigsuspend () from /usr/lib/libc.a(shr.o)
> #1  0x100732b4 in signal_suspend (sig=20, sig2=0) at signals.c:376
> #2  0x10079ed0 in zwaitjob (job=3, sig=0) at jobs.c:1161
> #3  0x1007a090 in waitjobs () at jobs.c:1196
> #4  0x1004546c in execpline (state=0x2ff22448, slcode=9218, how=2, last1=0)
>     at exec.c:1161
> #5  0x1004469c in execlist (state=0x2ff22448, dont_change_job=1,
> exiting=0) at exec.c:892
> #6  0x100aeb48 in execwhile (state=0x2ff22448, do_exec=0) at loop.c:415
> #7  0x1004a8e4 in execcmd (state=0x2ff22448, input=12, output=0, how=2,
> last1=2)
>     at exec.c:2523
> #8  0x10045e34 in execpline2 (state=0x2ff22448, pcode=643, how=2,
> input=12, output=0,
>     last1=0) at exec.c:1300
> #9  0x100460f8 in execpline2 (state=0x2ff22448, pcode=611, how=2,
> input=0, output=0,
>     last1=0) at exec.c:1351
> #10 0x10045024 in execpline (state=0x2ff22448, slcode=43010, how=2,
> last1=0)
>     at exec.c:1086
> #11 0x1004469c in execlist (state=0x2ff22448, dont_change_job=1,
> exiting=0) at exec.c:892
> #12 0x100aeb48 in execwhile (state=0x2ff22448, do_exec=0) at loop.c:415
> #13 0x1004a8e4 in execcmd (state=0x2ff22448, input=0, output=0, how=18,
> last1=2)
>     at exec.c:2523
> #14 0x10045e34 in execpline2 (state=0x2ff22448, pcode=515, how=18,
> input=0, output=0,
>     last1=0) at exec.c:1300
> #15 0x10045024 in execpline (state=0x2ff22448, slcode=58370, how=18,
> last1=0)
> ---Type <return> to continue, or q <return> to quit---
>     at exec.c:1086
> #16 0x1004469c in execlist (state=0x2ff22448, dont_change_job=0,
> exiting=0) at exec.c:892
> #17 0x100441c4 in execode (p=0x20040440, dont_change_job=0, exiting=0)
> at exec.c:792
> #18 0x10000c28 in loop (toplevel=1, justonce=0) at init.c:167
> #19 0x10004520 in zsh_main (argc=2, argv=0x2ff225d4) at init.c:1326
> #20 0x10000578 in main (argc=2, argv=0x2ff225d4) at main.c:93
> (gdb)


  reply	other threads:[~2006-09-02 17:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-01 15:56 Gene Carter
2006-09-02 17:42 ` Gene [this message]
2006-09-07 18:43 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44F9C290.6070703@gmail.com \
    --to=gananda@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).