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  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:


More information about the freebsd-bugs mailing list