[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: "here document" bug in 1.13.0
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2008-11-28 3:53:12
Message-ID: 200811280453.12968.vda.linux () googlemail ! com
[Download RAW message or body]

On Wednesday 26 November 2008 03:40, Aras Vaichas wrote:
> I just upgraded from 1.12.0 to 1.13.0 and noticed that many of my shell
> scripts seg faulted. I traced the problem to "here documents" inside
> nested functions.
> 
> Here is an test example:
> 
> --- SNIP ---
> #!/bin/sh
> function1() {
>     echo f1
> 
>     function2() {
>         echo f2
>         cat << EOF
>         This causes segfault
> EOF
> }
> 
>     function2
> }
> 
> function1
> 
> --- UNSNIP ---
> 
> # ./test
> f1
> Segmentation fault

For me the freshly-updated patch fixes it:

http://busybox.net/downloads/fixes-1.13.0/busybox-1.13.0-ash.patch

Does it help you too?
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic