Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 610505 - Crash when searching the history
Crash when searching the history
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: zsh (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: James Antill
Branislav Náter
Depends On:
  Show dependency treegraph
Reported: 2010-07-02 05:31 EDT by Tomas Smetana
Modified: 2013-04-12 16:43 EDT (History)
3 users (show)

See Also:
Fixed In Version: zsh-4.2.6-4.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-10-27 12:19:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Proposed patch (380 bytes, patch)
2010-07-02 05:32 EDT, Tomas Smetana
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0804 normal SHIPPED_LIVE zsh bug fix update 2010-10-27 12:19:10 EDT

  None (edit)
Description Tomas Smetana 2010-07-02 05:31:24 EDT
Description of problem:
The zsh can crash when searching the history in the vi mode.

Version-Release number of selected component (if applicable):

How reproducible:
Almost always

Steps to Reproduce:
1. set -o vi
2. enter few commands (echo foo)
3. press ESC to enter the vi command mode
4. press '?' to search in the history and find some term
5. scroll in the history (press the up/down arrow)
6. press '/' to search in the history in forward mode
7. GOTO 4.
Actual results:
*** glibc detected *** zsh: double free or corruption (fasttop): 0x000000001edd85d0 ***
======= Backtrace: =========

Expected results:
nothing like that

Additional info:
The bug has been found and fixed in the upstream zsh already:
Comment 1 Tomas Smetana 2010-07-02 05:32:05 EDT
Created attachment 428782 [details]
Proposed patch
Comment 2 James Antill 2010-07-02 09:49:21 EDT
Patch is trivial :).
Comment 14 errata-xmlrpc 2010-10-27 12:19:25 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.