From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2611 invoked by alias); 13 Feb 2014 04:37:58 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18434 Received: (qmail 26942 invoked from network); 13 Feb 2014 04:37:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Manfred Lotz Subject: Re: history distortion Date: Thu, 13 Feb 2014 05:37:30 +0100 Message-ID: <20140213053730.06e6df12@arcor.com> References: <20140212182813.1d48aeaa@hogwart.bsdlocal.net> <20140212210909.07a674af@arcor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4fff2c24.dip0.t-ipconnect.de X-Newsreader: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) On Wed, 12 Feb 2014 15:15:07 -0800 Bart Schaefer wrote: > On Wed, Feb 12, 2014 at 12:09 PM, Manfred Lotz > wrote: > > > On Wed, 12 Feb 2014 10:40:45 -0800 > > Micah Elliott wrote: > > > > > I was seeing this too, up to a couple months ago (apologies for > > > being too lazy to report). I'm on an Arch rolling release and > > > it's fixed now, so not sure if the problem was specific to the > > > zsh version or something else on the system that updated (saw an > > > earlier thread about a memcmp bug, I think). > > > > I tried out omitting hist_reduce_blanks and it seems that the > > problem doesn't show up. > > > > Yes, in zsh prior to 5.0.3 part of the hist_reduce_blanks > implementation was using memcpy on overlapping regions of the command > line. memcpy is allowed to optimize the copy by moving several bytes > at a time, copying right-to-left instead of left-to-right, etc., so > is not safe for overlaps. The release of a new shared C library that > changed the memcpy implementation to such an optimized one could > break existing zsh installs when they started dynamically linking > against the new library. > > This is very likely what happened to you. The distro you are using > will need to either update zsh or back out the C library > incompatibility. > Good to know that my observation was right. For the time being I leave out hist_reduce_blanks till the Fedora zsh package has been updated. Thanks. -- Manfred