[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coredump when executing: echo -n <<< `cat <&1`
From: |
Felipe Kellermann |
Subject: |
Re: coredump when executing: echo -n <<< `cat <&1` |
Date: |
Sun, 8 Feb 2004 05:29:52 -0200 (BRST) |
On Sun, 8 Feb 2004 3:16am +0100, Daniel Berlin wrote:
> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
>
> Description:
> when experimenting a bit, i noticed, that the following commandline
> coredumps bash:
> echo -n <<< `cat <&1`
I have noticed this same problem some days ago with the here
strings (BTW, you won't get any output redirecting something to echo). I
noticed it fails just when expanding the command line with an here string
expanding to a zero-string:
$ cat <<<A
A
$ cat <<<$undefinedvar
Segmentation fault (core dumped)
And here is the back trace:
#0 0x080901af in redirection_expand ()
#1 0x080904ae in redirection_expand ()
#2 0x08090be9 in redirection_expand ()
#3 0x08090093 in do_redirections ()
#4 0x0806b708 in setup_async_signals ()
#5 0x0806ac06 in execute_command_internal ()
#6 0x08067ef0 in execute_command_internal ()
#7 0x0806796f in execute_command ()
#8 0x0805d059 in reader_loop ()
#9 0x0805b420 in main ()
#10 0x40088b46 in __libc_start_main (main=0x805ad20 <main>, argc=1,
ubp_av=0xbfffe314,
init=0x805a160 <_init>, fini=0x80c0c40 <_fini>, rtld_fini=0x4000b240
<_dl_fini>,
stack_end=0xbfffe30c) at ../sysdeps/generic/libc-start.c:129
--
Felipe Kellermann