From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15715 invoked by alias); 30 Sep 2014 17:30:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33295 Received: (qmail 12540 invoked from network); 30 Sep 2014 17:30:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Tue, 30 Sep 2014 19:21:25 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: zsh 5.0.6 hanged in freejob from TRAPCHLD Message-ID: <20140930172125.GA2703@xvii.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6365-vl-r59709 (2014-09-07) I typed: ps -aef|gr pulseaudio and zsh hanged. gr: aliased to grep -P --color=always grep: aliased to pager-wrapper grep pager-wrapper () { if [[ -t 1 ]] then $@ | less -+c -FRX else $@ fi } TRAPCHLD () { [[ -o interactive && -n $TTY ]] && updprompt } updprompt () { [[ -n $zsh410 && -n $TTY && -n $terminfo ]] && { echoti rmacs echoti sgr0 echoti cnorm } > $TTY 2> /dev/null psvar[2]="" if [[ $domain = local.ay && "$(pmu_battery)" = "Battery" ]] then psvar[2]="[$(pmu_percent)%]" elif [[ $domain = local.xvii ]] then local battery="$(acpi -b)" [[ $battery = *Discharging* ]] && psvar[2]="[${${battery#*Discharging, }%\%,*}%]" fi local njobs jobstr njobs=$#jobstates [[ $njobs -gt 1 ]] && jobstr="s" [[ $njobs -ge 1 ]] && jobstr=" $njobs job$jobstr |" [[ -n $TTY && $TERM = (xterm*|dtterm|mlterm|rxvt*|screen*) ]] && { [[ $TERM = screen* ]] || print -nP "\e]1;%m:%.\x07" print -nP "\e]2;${jobstr}${WINTITLE:+ $WINTITLE |} %n@%m - %~ | %y\x07" } > $TTY } This zsh instance has no children. The backtrace: __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95 95 ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: No such file or directory. (gdb) bt #0 __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95 #1 0x00007fe153d2efb9 in _L_lock_3719 () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007fe153d2a2bb in _int_free (av=0x7fe154053620 , p=0xbf0680, have_lock=0) at malloc.c:3943 #3 0x0000000000441d0d in freejob (jn=jn@entry=0x9afe30, deleting=deleting@entry=1) at ../../Src/jobs.c:1240 #4 0x00000000004408b8 in deletejob (jn=jn@entry=0x9afe30, disowning=disowning@entry=0) at ../../Src/jobs.c:1295 #5 0x0000000000440b0f in printjob (jn=jn@entry=0x9afe30, lng=0, synch=synch@entry=0) at ../../Src/jobs.c:1012 #6 0x0000000000441c10 in update_job (jn=0x9afe30) at ../../Src/jobs.c:565 #7 0x0000000000470bb1 in wait_for_processes () at ../../Src/signals.c:515 #8 0x00000000004712c5 in zhandler (sig=17) at ../../Src/signals.c:594 #9 #10 0x00007fe153d2a022 in _int_free (av=0x7fe154053620 , p=, have_lock=0) at malloc.c:3990 #11 0x0000000000445eae in lexrestore () at ../../Src/lex.c:344 #12 0x0000000000447dbf in parse_subscript (s=0x7fe154b9d42f "]", sub=sub@entry=1, endchar=endchar@entry=93) at ../../Src/lex.c:1692 #13 0x0000000000457dc3 in isident (s=s@entry=0x7fe154b9d428 "psvar[2]") at ../../Src/params.c:1036 #14 0x000000000045e66c in assignsparam (s=s@entry=0x7fe154b9d428 "psvar[2]", val=val@entry=0xbf19a0 "", flags=flags@entry=0) at ../../Src/params.c:2631 #15 0x0000000000422f8a in addvars (state=0x7fffa1a3b030, pc=, addflags=addflags@entry=0) at ../../Src/exec.c:2279 #16 0x0000000000423271 in execsimple (state=state@entry=0x7fffa1a3b030) at ../../Src/exec.c:1113 #17 0x000000000042a4d0 in execlist (state=state@entry=0x7fffa1a3b030, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0) at ../../Src/exec.c:1259 #18 0x000000000042aa60 in execode (p=p@entry=0x9be400, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0, context=context@entry=0x48acce "shfunc") at ../../Src/exec.c:1070 #19 0x0000000000424ab1 in runshfunc (prog=0x9be400, wrap=0x0, name=0x7fe154ba82c8 "updprompt") at ../../Src/exec.c:4895 #20 0x00000000004250f6 in doshfunc (shfunc=shfunc@entry=0x9d1950, doshargs=doshargs@entry=0x7fe154ba8268, noreturnval=noreturnval@entry=0) at ../../Src/exec.c:4775 #21 0x00000000004254a0 in execshfunc (shf=0x9d1950, args=0x7fe154ba8268) at ../../Src/exec.c:4432 #22 0x0000000000428cf9 in execshfunc (args=, shf=) at ../../Src/exec.c:4400 #23 execcmd (state=0x7fffa1a3b7c0, input=input@entry=0, output=131696, output@entry=0, how=0, how@entry=18, last1=0) at ../../Src/exec.c:3269 #24 0x000000000042921e in execpline2 (state=state@entry=0x7fffa1a3b7c0, pcode=pcode@entry=67, how=how@entry=18, input=0, output=0, last1=last1@entry=0) at ../../Src/exec.c:1691 #25 0x00000000004295e6 in execpline (state=state@entry=0x7fffa1a3b7c0, slcode=, how=how@entry=18, last1=0) at ../../Src/exec.c:1478 #26 0x000000000042a791 in execlist (state=state@entry=0x7fffa1a3b7c0, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0) at ../../Src/exec.c:1261 #27 0x000000000042aa60 in execode (p=p@entry=0x9bc9a0, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0, context=context@entry=0x48acce "shfunc") at ../../Src/exec.c:1070 #28 0x0000000000424ab1 in runshfunc (prog=0x9bc9a0, wrap=0x0, name=0x7fe154ba8218 "TRAPCHLD") at ../../Src/exec.c:4895 #29 0x00000000004250f6 in doshfunc (shfunc=shfunc@entry=0x9d1860, doshargs=doshargs@entry=0xbeaee0, noreturnval=noreturnval@entry=1) at ../../Src/exec.c:4775 #30 0x000000000046febd in dotrapargs (sig=17, sigtr=sigtr@entry=0x6c2504 , sigfn=0x9d1860) at ../../Src/signals.c:1229 #31 0x0000000000470d78 in dotrap (sig=sig@entry=17) at ../../Src/signals.c:1322 #32 0x0000000000441a6e in update_job (jn=0x9afdb0) at ../../Src/jobs.c:570 #33 0x0000000000470bb1 in wait_for_processes () at ../../Src/signals.c:515 #34 0x00000000004712c5 in zhandler (sig=17) at ../../Src/signals.c:594 #35 #36 0x00007fe153ce63b6 in do_sigsuspend (set=0x7fffa1a3c370) at ../sysdeps/unix/sysv/linux/sigsuspend.c:31 #37 __GI___sigsuspend (set=set@entry=0x7fffa1a3c370) at ../sysdeps/unix/sysv/linux/sigsuspend.c:41 #38 0x0000000000470766 in signal_suspend (sig=sig@entry=17, wait_cmd=wait_cmd@entry=0) at ../../Src/signals.c:375 #39 0x0000000000442186 in zwaitjob (job=, wait_cmd=0) at ../../Src/jobs.c:1454 #40 0x0000000000442867 in waitjobs () at ../../Src/jobs.c:1499 #41 0x0000000000429c0b in execpline (state=state@entry=0x7fffa1a3cc40, slcode=, how=, how@entry=18, last1=0) at ../../Src/exec.c:1554 #42 0x000000000042a791 in execlist (state=state@entry=0x7fffa1a3cc40, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0) at ../../Src/exec.c:1261 #43 0x000000000044a7b1 in execif (state=0x7fffa1a3cc40, do_exec=0) at ../../Src/loop.c:525 #44 0x0000000000428126 in execcmd (state=0x7fffa1a3cc40, input=8, input@entry=0, output=output@entry=0, how=-1, how@entry=18, last1=0) at ../../Src/exec.c:3232 #45 0x000000000042921e in execpline2 (state=state@entry=0x7fffa1a3cc40, pcode=pcode@entry=195, how=how@entry=18, input=0, output=0, last1=last1@entry=0) at ../../Src/exec.c:1691 #46 0x00000000004295e6 in execpline (state=state@entry=0x7fffa1a3cc40, slcode=, how=how@entry=18, last1=0) at ../../Src/exec.c:1478 #47 0x000000000042a791 in execlist (state=state@entry=0x7fffa1a3cc40, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0) at ../../Src/exec.c:1261 #48 0x000000000042aa60 in execode (p=p@entry=0x9da200, dont_change_job=dont_change_job@entry=1, exiting=exiting@entry=0, context=context@entry=0x48acce "shfunc") at ../../Src/exec.c:1070 #49 0x0000000000424ab1 in runshfunc (prog=0x9da200, wrap=0x0, name=0x7fe154ba8090 "pager-wrapper") at ../../Src/exec.c:4895 #50 0x00000000004250f6 in doshfunc (shfunc=shfunc@entry=0x9da2c0, doshargs=doshargs@entry=0x7fe154ba7f68, noreturnval=noreturnval@entry=0) at ../../Src/exec.c:4775 #51 0x00000000004254a0 in execshfunc (shf=0x9da2c0, args=0x7fe154ba7f68) at ../../Src/exec.c:4432 #52 0x0000000000428cf9 in execshfunc (args=, shf=) at ../../Src/exec.c:4400 #53 execcmd (state=0x7fffa1a3d470, input=8, input@entry=11, output=output@entry=0, how=-1, how@entry=18, last1=0) at ../../Src/exec.c:3269 #54 0x000000000042921e in execpline2 (state=state@entry=0x7fffa1a3d470, pcode=, how=how@entry=18, input=11, output=output@entry=0, last1=last1@entry=0) at ../../Src/exec.c:1691 #55 0x00000000004291dd in execpline2 (state=state@entry=0x7fffa1a3d470, pcode=pcode@entry=163, how=how@entry=18, input=0, output=0, last1=last1@entry=0) at ../../Src/exec.c:1752 #56 0x00000000004295e6 in execpline (state=state@entry=0x7fffa1a3d470, slcode=, how=how@entry=18, last1=0) at ../../Src/exec.c:1478 #57 0x000000000042a791 in execlist (state=state@entry=0x7fffa1a3d470, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=0) at ../../Src/exec.c:1261 #58 0x000000000042aa60 in execode (p=p@entry=0x7fe154ba7ce8, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=0, context=context@entry=0x48c2f1 "toplevel") at ../../Src/exec.c:1070 #59 0x000000000043b5cc in loop (toplevel=toplevel@entry=1, justonce=justonce@entry=0) at ../../Src/init.c:185 #60 0x000000000043e6f6 in zsh_main (argc=, argv=) at ../../Src/init.c:1625 #61 0x00007fe153cd2b45 in __libc_start_main (main=0x40f1a0
, argc=1, argv=0x7fffa1a3d6a8, init=, fini=, rtld_fini=, stack_end=0x7fffa1a3d698) at libc-start.c:287 #62 0x000000000040f1ce in _start () -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)