bug-bash
[Top][All Lists]
Advanced

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

Re: core dump using time


From: Oliver Eikemeier
Subject: Re: core dump using time
Date: Sun, 10 Oct 2004 13:03:02 +0200
User-agent: KMail/1.5.9

Tavis Ormandy wrote:

Bash Version: 3.0
Patch Level: 13
Release Status: release

Description:

Entered a typo by accident, and found this line will kill bash.

Repeat-By:

time for ((i=0;i<=100++)) do :; done

I can confirm this on FreeBSD:

# time for ((i=0;i<=100++)) do :; done
bash: syntax error: arithmetic expression required
bash: syntax error: `((i=0;i<=100++))'

Program received signal SIGSEGV, Segmentation fault.
0x805d542 in yyparse () at /Users/chet/src/bash/src/parse.y:969
969                               $2->flags |= $1;

backtrace:
#0  0x805d542 in yyparse () at /Users/chet/src/bash/src/parse.y:969
#1  0x805c2cd in parse_command () at eval.c:221
#2  0x805c382 in read_command () at eval.c:265
#3  0x805c10f in reader_loop () at eval.c:131
#4 0x805a746 in main (argc=1, argv=0xbfbffbac, env=0xbfbffbb4) at shell.c:704

-Oliver





reply via email to

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