Re: Crash on valid input

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

 



Yeah, even valgrind doesn't see anything without -x.


On Mon, Apr 8, 2013 at 8:34 PM, Eric Blake <eblake@xxxxxxxxxx> wrote:
> On 04/08/2013 09:27 PM, Eric Blake wrote:
>> On 04/08/2013 09:12 PM, Dan Kegel wrote:
>>> Yes, my script was crap, I've fixed it.
>>>
>>> Here's the reproducer.  Called with foo unset.  I think it doesn't
>>> crash without -x.
>>>
>>> #!/bin/dash
>>> set -x
>>> test ! $foo
>>
>> The 'set -x' was indeed the key to reproducing the problem.  In fact,
>> this is the shortest I could make it:
>>
>> dash -cx 'test !'
>
> If it helps, dash -cx '[ ! ]' does not crash.
>
> --
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux