[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nested "." commands brings Segmentation Fault (core dumped)
From: |
Benoit Rochefort |
Subject: |
nested "." commands brings Segmentation Fault (core dumped) |
Date: |
Tue, 19 Feb 2002 14:29:30 -0500 (EST) |
Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.5
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DHOSTTYPE='sparc' -DOSTYPE='solaris2.5'
-DMACHTYPE='sparc-sun-solaris2.5' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./lib -O2
uname output: SunOS soumis 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-4
Machine Type: sparc-sun-solaris2.5
Bash Version: 2.0
Patch Level: 0
Release Status: release
Description:
* This problem can be reproduced on a variety of bash version, on
* different systems.
nested "." commands brings Segmentation Fault (core dumped).
Probably due to infinite recursion that (in my sense) should be trapped
otherwise.
I found this bug on solaris with different versions and also on cygwin.
Repeat-By:
$ mkdir ~/tests
$ cd ~/tests
$ ff=f0001; for f in `perl -e 'map { print "$_\n" } ( "f0002".."f9999" )'`; do
(echo "echo \"sourcing $ff\"" ; echo . $f; echo "echo \"return from
$ff\"")>$ff; ff=$f; done
$ . f0001
### Core dumped at f3444 on solaris (2.04.0(1)-release)
### f1312 on cygwin (2.05a.0(2)-release).
### Note that sourcing recursivly does the same thing (i.e. f0001 -> f0001 )
### I only include the previous test case to show that this even happen
### on non-recursive sourcing.
Contact me at Benoit.Rochefort@gerad.ca if you want more information.
- nested "." commands brings Segmentation Fault (core dumped),
Benoit Rochefort <=