Re: 转发:patch bash 4.2 succeed , but make test & run bash failed

2013-05-20 Thread Chet Ramey
On 5/19/13 11:21 AM, boblin wrote:
> hi, chet 
> 
>I met a problem with patching the original bash 4.2 with all the patches
> from 001 ~ 045 .
> 
>the patch report succeed , but 'make test' shows many errors

Patch 5 modifies parse.y but not y.tab.c and y.tab.h.  It relies on make to
recreate those files and correctly compute the dependencies.  You should
be able to get past this issue (I've never encountered it) by running

bison -y -d parse.y
rm builtins/evalstring.o builtins/libbuiltins.a
make

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



回复: 转发:patch bash 4.2 succeed , but make test & run bash failed

2013-05-20 Thread boblin
I found that the bison package had not been installed . After I install it , 
the make test run succeed and not more errs


tks ! :)




-- 原始邮件 --
发件人: "chet.ramey";
发送时间: 2013年5月20日(星期一) 晚上9:36
收件人: "boblin"; 
抄送: "chet.ramey"; "Bug-bash"; 
主题: Re: 转发:patch bash 4.2 succeed , but make test & run bash failed



On 5/19/13 11:21 AM, boblin wrote:
> hi, chet 
> 
>I met a problem with patching the original bash 4.2 with all the patches
> from 001 ~ 045 .
> 
>the patch report succeed , but 'make test' shows many errors

Patch 5 modifies parse.y but not y.tab.c and y.tab.h.  It relies on make to
recreate those files and correctly compute the dependencies.  You should
be able to get past this issue (I've never encountered it) by running

bison -y -d parse.y
rm builtins/evalstring.o builtins/libbuiltins.a
make

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
.

deadlock in waitchld()

2013-05-20 Thread Roman Rakus
Bash hangs in wait4() (WAITPID) if TERM signal trap handler is executed 
during execution of pipeline.


RR

Reproducer:
#!/bin/bash 

trap "/bin/echo trapped $$" TERM 

printf '%d\n' $$ 

while :; do 

  dd if=/dev/zero bs=1k count=128 2>&1 | cat > /dev/null 


done

and bombard the bash process with TERM signals:
#!/bin/bash
while :; do
  kill -TERM $1 || break
  usleep 10
done




Re: 回复: 转发:patch bash 4.2 succeed , but make test & run bash failed

2013-05-20 Thread Roman Rakus

Doesn't ./configure warns about it?

RR

On 05/20/2013 04:03 PM, boblin wrote:

I found that the bison package had not been installed . After I install it , 
the make test run succeed and not more errs


tks ! :)




-- 原始邮件 --
发件人: "chet.ramey";
发送时间: 2013年5月20日(星期一) 晚上9:36
收件人: "boblin";
抄送: "chet.ramey"; "Bug-bash";
主题: Re: 转发:patch bash 4.2 succeed , but make test & run bash failed



On 5/19/13 11:21 AM, boblin wrote:

hi, chet

I met a problem with patching the original bash 4.2 with all the patches
from 001 ~ 045 .

the patch report succeed , but 'make test' shows many errors


Patch 5 modifies parse.y but not y.tab.c and y.tab.h.  It relies on make to
recreate those files and correctly compute the dependencies.  You should
be able to get past this issue (I've never encountered it) by running

bison -y -d parse.y
rm builtins/evalstring.o builtins/libbuiltins.a
make

Chet






Re: 回复: 转发:patch bash 4.2 succeed , but make test & run bash failed

2013-05-20 Thread Chet Ramey
On 5/20/13 10:13 AM, Roman Rakus wrote:
> Doesn't ./configure warns about it?

It doesn't, because bash ships with y.tab.c and y.tab.h already generated
by bison, so having bison isn't essential for the initial build.  I should
either put patches to y.tab.[ch] in the patch sets -- which can fail if the
build directory isn't the same as the source directory -- or put in the
suggested warning.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/