From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 28 16:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 368C3A00 for ; Sat, 28 Sep 2013 16:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1495624C3 for ; Sat, 28 Sep 2013 16:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8SGU00v029407 for ; Sat, 28 Sep 2013 16:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8SGU0d5029406; Sat, 28 Sep 2013 16:30:00 GMT (envelope-from gnats) Resent-Date: Sat, 28 Sep 2013 16:30:00 GMT Resent-Message-Id: <201309281630.r8SGU0d5029406@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Birgmeier Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 270BC810 for ; Sat, 28 Sep 2013 16:21:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 148552481 for ; Sat, 28 Sep 2013 16:21:54 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8SGLqJd086045 for ; Sat, 28 Sep 2013 16:21:52 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8SGLqcG086023; Sat, 28 Sep 2013 16:21:52 GMT (envelope-from nobody) Message-Id: <201309281621.r8SGLqcG086023@oldred.freebsd.org> Date: Sat, 28 Sep 2013 16:21:52 GMT From: Martin Birgmeier To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/182463: vi core dumps on exit with a specific vi.exrc X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Sep 2013 16:30:01 -0000 >Number: 182463 >Category: bin >Synopsis: vi core dumps on exit with a specific vi.exrc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 28 16:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Martin Birgmeier >Release: FreeBSD 10 (head) >Organization: MBi at home >Environment: FreeBSD v903.xyzzy 10.0-ALPHA3 FreeBSD 10.0-ALPHA3 #12 r255890M: Fri Sep 27 21:38:23 CEST 2013 root@v903.xyzzy:/.../hal/z/OBJ/FreeBSD/amd64/head/sys/XYZZY_SMP amd64 >Description: Since my last update of the FreeBSD head branch (from r253885 to r255890), vi crashes on exit (SIGBUS) if I have the attached vi.exrc in /etc (/etc/vi.exrc). >How-To-Repeat: Install the attached file into /etc/vi.exrc, start vi and observe it crashing on exit. >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /etc/vi.exrc # echo x - /etc/vi.exrc sed 's/^X//' >/etc/vi.exrc << 'b0ed611cec2e660e5d5380b1b02859c3' Xset ai Xset sw=4 Xmap  h Xmap  :set ignorecase Xmap  :set noignorecase Xmap [11~ 1G!Gdiff % - Xmap  1G!Gdiff % - Xmap OP 1G!Gdiff % - Xmap  1G!Gdiff % - Xmap [12~ {!}fmt} Xmap  {!}fmt} Xmap OQ {!}fmt} Xmap  {!}fmt} Xmap [13~ :!date Xmap  :!date Xmap OR :!date Xmap  :!date Xmap [14~ 1G!Gvispell > /tmp/.vi.spelluG:r /tmp/.vi.spell:!rm /tmp/.vi.spell Xmap  1G!Gvispell > /tmp/.vi.spelluG:r /tmp/.vi.spell:!rm /tmp/.vi.spell Xmap OS 1G!Gvispell > /tmp/.vi.spelluG:r /tmp/.vi.spell:!rm /tmp/.vi.spell Xmap  1G!Gvispell > /tmp/.vi.spelluG:r /tmp/.vi.spell:!rm /tmp/.vi.spell Xmap [15~ {!}sed 's/[ ][ ][ ]*/ /g' Xmap  {!}sed 's/[ ][ ][ ]*/ /g' Xmap [17~ :!mv -i % %.ORIG Xmap  :!mv -i % %.ORIG Xmap [28~ :!man vi Xmap [1~ / Xmap [2~ i Xmap [3~ X Xmap [4~ mz Xmap [5~  Xmap [6~  Xmap  h Xmap! [11~ \begin{exercise}\end{exercise}ko Xmap!  \begin{exercise}\end{exercise}ko Xmap! [51~ \begin{subexercise}\end{subexercise}ko Xmap!  \begin{subexercise}\end{subexercise}ko Xmap! [12~ \begin{solution}\end{solution}ko Xmap!  \begin{solution}\end{solution}ko Xmap! [52~ \begin{titledslide}{}\end{titledslide}2k$i Xmap!  \begin{titledslide}{}\end{titledslide}2k$i Xmap! [13~ XXk!!datekJxXJxcl Xmap!  XXk!!datekJxXJxcl Xmap! OR `date '+%Y-%m-%d.%H:%M:%S'` Xmap! [53~ \begin{tabular}{@{\unskip}p{.15\textwidth}<{\leaders\hbox to 1ex{\hss.\hss}\hfill\ \ }@{}p{.85\textwidth}@{}}\end{tabular}ko Xmap!  \begin{tabular}{@{\unskip}p{.15\textwidth}<{\leaders\hbox to 1ex{\hss.\hss}\hfill\ \ }@{}p{.85\textwidth}@{}}\end{tabular}ko Xmap! [14~ \begin{center}\end{center}ko Xmap!  \begin{center}\end{center}ko Xmap! [54~ \begin{minipage}[b]{.48\textwidth}\end{minipage}ko Xmap!  \begin{minipage}[b]{.48\textwidth}\end{minipage}ko Xmap! [15~ \begin{itemize}\item\end{itemize}ko Xmap!  \begin{itemize}\item\end{itemize}ko Xmap! [55~ \begin{enumerate}\item\end{enumerate}ko Xmap!  \begin{enumerate}\item\end{enumerate}ko Xmap! [17~ \begin{figure}\caption{}\label{}\end{figure}3ko Xmap!  \begin{figure}\caption{}\label{}\end{figure}3ko Xmap! [57~ \begin{table}\caption{}\label{}\end{table}3ko Xmap!  \begin{table}\caption{}\label{}\end{table}3ko Xmap! [18~ \begin{equation}\end{equation}ko Xmap!  \begin{equation}\end{equation}ko Xmap! [58~ \begin{equation*}\end{equation*}ko Xmap!  \begin{equation*}\end{equation*}ko Xmap! [19~ \begin{align}\end{align}ko Xmap!  \begin{align}\end{align}ko Xmap! [59~ \begin{align*}\end{align*}ko Xmap!  \begin{align*}\end{align*}ko Xmap! [20~ \begin{split}\end{split}ko Xmap!  \begin{split}\end{split}ko Xmap! [60~ \begin{subequations}\end{subequations}ko Xmap!  \begin{subequations}\end{subequations}ko Xmap! [21~ \begin{bmatrix}\end{bmatrix}ko Xmap!  \begin{bmatrix}\end{bmatrix}ko Xmap! [61~ \begin{pmatrix}\end{pmatrix}ko Xmap!  \begin{pmatrix}\end{pmatrix}ko Xmap! [23~ \begin{cases} ,& \\ ,&\end{cases}2k0i Xmap!  \begin{cases} ,& \\ ,&\end{cases}2k0i b0ed611cec2e660e5d5380b1b02859c3 exit >Release-Note: >Audit-Trail: >Unformatted: