bin/182463: vi core dumps on exit with a specific vi.exrc
Martin Birgmeier
Martin.Birgmeier at aon.at
Sat Sep 28 16:30:01 UTC 2013
>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 at 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 [M 1G!Gdiff % -
Xmap OP 1G!Gdiff % -
Xmap [224z 1G!Gdiff % -
Xmap [12~ {!}fmt}
Xmap [N {!}fmt}
Xmap OQ {!}fmt}
Xmap [225z {!}fmt}
Xmap [13~ :!date
Xmap [O :!date
Xmap OR :!date
Xmap [226z :!date
Xmap [14~ 1G!Gvispell > /tmp/.vi.spelluG:r /tmp/.vi.spell:!rm /tmp/.vi.spell
Xmap [P 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 [227z 1G!Gvispell > /tmp/.vi.spelluG:r /tmp/.vi.spell:!rm /tmp/.vi.spell
Xmap [15~ {!}sed 's/[ ][ ][ ]*/ /g'
Xmap [Q {!}sed 's/[ ][ ][ ]*/ /g'
Xmap [17~ :!mv -i % %.ORIG
Xmap [R :!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! [M \begin{exercise}\end{exercise}ko
Xmap! [51~ \begin{subexercise}\end{subexercise}ko
Xmap! [Y \begin{subexercise}\end{subexercise}ko
Xmap! [12~ \begin{solution}\end{solution}ko
Xmap! [N \begin{solution}\end{solution}ko
Xmap! [52~ \begin{titledslide}{}\end{titledslide}2k$i
Xmap! [Z \begin{titledslide}{}\end{titledslide}2k$i
Xmap! [13~ XXk!!datekJxXJxcl
Xmap! [O 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! [a \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! [P \begin{center}\end{center}ko
Xmap! [54~ \begin{minipage}[b]{.48\textwidth}\end{minipage}ko
Xmap! [b \begin{minipage}[b]{.48\textwidth}\end{minipage}ko
Xmap! [15~ \begin{itemize}\item\end{itemize}ko
Xmap! [Q \begin{itemize}\item\end{itemize}ko
Xmap! [55~ \begin{enumerate}\item\end{enumerate}ko
Xmap! [c \begin{enumerate}\item\end{enumerate}ko
Xmap! [17~ \begin{figure}\caption{}\label{}\end{figure}3ko
Xmap! [R \begin{figure}\caption{}\label{}\end{figure}3ko
Xmap! [57~ \begin{table}\caption{}\label{}\end{table}3ko
Xmap! [d \begin{table}\caption{}\label{}\end{table}3ko
Xmap! [18~ \begin{equation}\end{equation}ko
Xmap! [S \begin{equation}\end{equation}ko
Xmap! [58~ \begin{equation*}\end{equation*}ko
Xmap! [e \begin{equation*}\end{equation*}ko
Xmap! [19~ \begin{align}\end{align}ko
Xmap! [T \begin{align}\end{align}ko
Xmap! [59~ \begin{align*}\end{align*}ko
Xmap! [f \begin{align*}\end{align*}ko
Xmap! [20~ \begin{split}\end{split}ko
Xmap! [U \begin{split}\end{split}ko
Xmap! [60~ \begin{subequations}\end{subequations}ko
Xmap! [g \begin{subequations}\end{subequations}ko
Xmap! [21~ \begin{bmatrix}\end{bmatrix}ko
Xmap! [V \begin{bmatrix}\end{bmatrix}ko
Xmap! [61~ \begin{pmatrix}\end{pmatrix}ko
Xmap! [h \begin{pmatrix}\end{pmatrix}ko
Xmap! [23~ \begin{cases} ,& \\ ,&\end{cases}2k0i
Xmap! [W \begin{cases} ,& \\ ,&\end{cases}2k0i
b0ed611cec2e660e5d5380b1b02859c3
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list