bug-bash
[Top][All Lists]
Advanced

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

Re: Segmentation fault when -x is added and variable contains nulls


From: Chet Ramey
Subject: Re: Segmentation fault when -x is added and variable contains nulls
Date: Thu, 06 Feb 2014 08:38:49 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 2/5/14 10:51 PM, Dan Jacobson wrote:
> # su - nobody
> No directory, logging in with HOME=/
> $ cat /tmp/r
> LC_CTYPE=zh_TW.UTF-8 N=$(echo 統一|iconv -t big5 -f utf-8) sh -xc ': $N'
> $ sh /tmp/r
> /tmp/r: line 1:  4551 Segmentation fault      LC_CTYPE=zh_TW.UTF-8 N=$(echo 
> 統一|iconv -t big5 -f utf-8) sh -xc ': $N'
> 
> Something about that embedded null.
> bash, version 4.3.0(1)-rc1 (i486-pc-linux-gnu)

Probably.  How about a stack traceback from gdb?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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