Re: wget command with simple url makes bash crash

2009-08-25 Thread Chet Ramey
Oskar Hermansson wrote: > Bash Version: 3.2 > Patch Level: 48 > Release Status: release > > Description: > bash crashes when running the following wget command for downloading a > file: > wget > http://www.kohanaphp.com/download?modules%5Bauth%5D=Auth&vendors%5Bmarkdown%5D=Markdown&langua

Re: Inconsistent output in terminal emulator

2009-08-25 Thread nico raffo
On Sat, Aug 22, 2009 at 5:30 PM, Chet Ramey wrote: > > Bob Proulx wrote: > > nico raffo wrote: > >> I'm writing a simple terminal emulator (on linux using standard pty > >> libraries) and have run across some behavior in bash that I cannot > >> explain after several weeks of reading documentation.

wget command with simple url makes bash crash

2009-08-25 Thread Oskar Hermansson
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash

Re: bug or undocumented feature

2009-08-25 Thread mitch
On Aug 22, 11:17 am, Jan Schampera wrote: > Mitch Frazier wrote: > > The close appears to be a special case of (from the man page): > > >> Similarly, the redirection operator > > >>       [n]>&digit- > > >> moves the file descriptor digit to file descriptor n, > >> or the standard output (file des

Re: unset associative array may cause segfault

2009-08-25 Thread Chet Ramey
Chris F.A. Johnson wrote: > On Tue, 25 Aug 2009, Chet Ramey wrote: > >> Roman Rakus wrote: >>> reproducer: >>> declare -A aaa >>> aaa='somestring' >>> unset aaa >>> >>> This commands cause segmentation fault, free unallocated memory. >>> Chet do you already fix it? Here is my fast patch. >> I alre

Re: unset associative array may cause segfault

2009-08-25 Thread Chris F.A. Johnson
On Tue, 25 Aug 2009, Chet Ramey wrote: > Roman Rakus wrote: > > reproducer: > > declare -A aaa > > aaa='somestring' > > unset aaa > > > > This commands cause segmentation fault, free unallocated memory. > > Chet do you already fix it? Here is my fast patch. > > I already fixed it, thanks. D

Re: unset associative array may cause segfault

2009-08-25 Thread Chet Ramey
> >> reproducer: > >> declare -A aaa > >> aaa='somestring' > >> unset aaa > >> > >> This commands cause segmentation fault, free unallocated memory. > >> Chet do you already fix it? Here is my fast patch. > >> > > > > I already fixed it, thanks. Your patch introduces large memory leaks; > >

Re: unset associative array may cause segfault

2009-08-25 Thread Roman Rakus
On 08/25/2009 04:47 PM, Chet Ramey wrote: Roman Rakus wrote: reproducer: declare -A aaa aaa='somestring' unset aaa This commands cause segmentation fault, free unallocated memory. Chet do you already fix it? Here is my fast patch. I already fixed it, thanks. Your patch introduces l

Re: unset associative array may cause segfault

2009-08-25 Thread Chet Ramey
Roman Rakus wrote: > reproducer: > declare -A aaa > aaa='somestring' > unset aaa > > This commands cause segmentation fault, free unallocated memory. > Chet do you already fix it? Here is my fast patch. I already fixed it, thanks. Your patch introduces large memory leaks; the right place to fix

unset associative array may cause segfault

2009-08-25 Thread Roman Rakus
reproducer: declare -A aaa aaa='somestring' unset aaa This commands cause segmentation fault, free unallocated memory. Chet do you already fix it? Here is my fast patch. RR diff -up bash-4.0/hashlib.c.alloc bash-4.0/hashlib.c --- bash-4.0/hashlib.c.alloc2009-08-25 16:25:21.0 +0200 +++

Re: Inconsistent output in terminal emulator

2009-08-25 Thread Ralf Goertz
Mike Stroyan wrote: > On Mon, Aug 24, 2009 at 09:44:36AM +0200, Ralf Goertz wrote: >> I hope you don't mind my jumping in with a question that is only >> remotely related. But since you guys seem to be experts on tty… >> >> I have an embedded device running a linux kernel that uses a serial >> po