bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash 2.05a on HP-UX core dumps when using functions


From: Austermuehle Stephan
Subject: bash 2.05a on HP-UX core dumps when using functions
Date: Thu, 29 Nov 2001 16:25:40 +0100

Configuration Information [Automatically generated, do not change]:
Machine: hppa2.0w
OS: hpux11.00
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='hppa2.0w'
-DCONF_OSTYPE='hpux11.00' -DCONF_MACHTYPE='hppa2.0w-hp-hpux11.00'
-DCONF_VENDOR='hp' -DSHELL -DHAVE_CONFIG_H -DHPUX   -I.  -I. -I./include
-I./li
b +O2
uname output: HP-UX zdvklnat B.11.00 U 9000/800 633309332 unlimited-user
license
Machine Type: hppa2.0w-hp-hpux11.00

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
        Several users reported the bash 2.05a core dumps when using
functions. 'make check' reproduces the problem. Extract from the printed
messages:

        run-func[4]: 5009 Memory fault(coredump)
        0a1,150
        > a returns 5
        > b returns 4
        > c returns 3
        > d returns 2
        > in e
        > e returned 25
        > x is 25
        > ZZ
        > abcde
        > defghi
        > ZZ
        > 5
        > 0
        > AVAR
        > AVAR
        > foo
        > foo
        > AVAR
        > 5
        > 5
        > f1
        > f1 () 
        > { 
        >     ( return 5 );
        >     status=$?;
        >     echo $status;
        >     return $status
        > }
        > before: try to assign to FUNCNAME
        > outside: FUNCNAME =
        > before: FUNCNAME = func
        > FUNCNAME = func2
        > after: FUNCNAME = func
        > outside2: FUNCNAME =
        > function
        > zf is a function
        > zf () 
        > { 
        >     echo this is zf
        > }
        > f is a function
        > f () 
        > { 
        >     echo f-x;
        >     echo f-y
        > } 1>&2
        > subshell
        > f is a function
        > f () 
        > { 
        >     echo f-x;
        >     echo f-y
        > } 1>&2
        > f2 is a function
        > f2 () 
        > { 
        >     echo f2-a;
        >     function f3 () 
        >     { 
        >         echo f3-a;
        >         echo f3-b
        >     } 1>&2;
        >     f3
        > }
        > subshell
        > f2 is a function
        > f2 () 
        > { 
        >     echo f2-a;
        >     function f3 () 
        >     { 
        >         echo f3-a;
        >         echo f3-b
        >     } 1>&2;
        >     f3
        > }
        > f4 is a function
        > f4 () 
        > { 
        >     echo f4-a;
        >     function f5 () 
        >     { 
        >         echo f5-a;
        >         echo f5-b
        >     } 1>&2;
        >     f5
        > } 2>&1
        > subshell
        > f4 is a function
        > f4 () 
        > { 
        >     echo f4-a;
        >     function f5 () 
        >     { 
        >         echo f5-a;
        >         echo f5-b
        >     } 1>&2;
        >     f5
        > } 2>&1
        > testgrp is a function
        > testgrp () 
        > { 
        >     echo testgrp-a;
        >     { 
        >         echo tg-x;
        >         echo tg-y
        >     } 1>&2;
        >     echo testgrp-b
        > }
        > subshell
        > testgrp is a function
        > testgrp () 
        > { 
        >     echo testgrp-a;
        >     { 
        >         echo tg-x;
        >         echo tg-y
        >     } 1>&2;
        >     echo testgrp-b
        > }
        > funca is a function
        > funca () 
        > { 
        >     ( echo func-a )
        > }
        > funcb is a function
        > funcb () 
        > { 
        >     ( echo func-b )
        > }
        > funcc is a function
        > funcc () 
        > { 
        >     ( echo func-c ) 2>&1
        > }
        > func-a
        > func-b
        > func-c
        > expect 5 10
        > 5 10
        > expect 20
        > 20
        > expect 5 20
        > 5 20
        > expect 5 30
        > 5 30
        > expect 2 40
        > 2 40
        > expect 5 20
        > 5 20

Repeat-By:
        Compile bash. Do 'make check' and have a look at the run-func tests.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]