[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3-lines long segfault
From: |
Chet Ramey |
Subject: |
Re: 3-lines long segfault |
Date: |
Wed, 22 Jul 2009 23:18:00 -0400 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
Marc Herbert wrote:
> - removing the "-t" option from "read" dodges the immediate crash, but
> not the memory corruption? So bash might still crash later?
>
> - in other words, triggering a trap from a command expansion will
> always corrupt memory? (I mean: without your recent fix)
It is the specific combination of the assignment statement whose rhs
contains a command substitution which causes a trap to be executed
by the parent shell.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/