[Top][All Lists]

[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


* 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 

I found this bug on solaris with different versions and also on cygwin.

$ 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 address@hidden if you want more information.

reply via email to

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