Bug#237385: vim segfault

DEMAINE Benoit-Pierre DEMAINE Benoit-Pierre <benoit@demaine.info>, 237385@bugs.debian.org
Sat, 13 Nov 2004 16:24:18 +0000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

on my system, vi is an alias to vim
but vim severely crashes :

it used to work until last dist-upgrade+reboot
last upgrade occured on 12th nov 2004 ... whereas privious upgrade was
on about 7th.

tail of strace vim:

open("/lib/libncurses.so.5", O_RDONLY)  =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\342"...,
512) =3D 512
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D252592, ...}) =3D 0
old_mmap(NULL, 257868, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x4003=
1000
old_mmap(0x40067000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x35000) =3D 0x40067000
close(3)                                =3D 0
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/usr/lib/libgpm.so.1", O_RDONLY)  =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\32"...,
512) =3D 512
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D19216, ...}) =3D 0
old_mmap(NULL, 23180, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x40070=
000
old_mmap(0x40075000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x4000) =3D 0x40075000
close(3)                                =3D 0
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\32"...,
512) =3D 512
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D9416, ...}) =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
- -1, 0) =3D 0x40076000
old_mmap(NULL, 12272, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x40077=
000
old_mmap(0x40079000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x1000) =3D 0x40079000
close(3)                                =3D 0
access("/etc/ld.so.nohwcap", F_OK)      =3D -1 ENOENT (No such file or
directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300X\1"...,
512) =3D 512
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1278692, ...}) =3D 0
old_mmap(NULL, 1289004, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x400=
7a000
old_mmap(0x401aa000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x12f000) =3D 0x401aa000
old_mmap(0x401b2000, 11052, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x401b2000
close(3)                                =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
- -1, 0) =3D 0x401b5000
set_thread_area({entry_number:-1 -> 6, base_addr:0x401b5080,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) =3D 0
munmap(0x40018000, 100361)              =3D 0
getrlimit(RLIMIT_STACK, {rlim_cur=3D8192*1024, rlim_max=3DRLIM_INFINITY})=
 =3D 0
brk(0)                                  =3D 0x8153000
brk(0x8176000)                          =3D 0x8176000
brk(0)                                  =3D 0x8176000
sigaltstack({ss_sp=3D0x8153008, ss_flags=3D0, ss_size=3D8192}, NULL) =3D =
0
stat64("/usr/share/vim/vim63", {st_mode=3DS_IFDIR|0755, st_size=3D4096,
...}) =3D 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) =3D 0
- --- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

| vim -U NONE
just segfault.

gdb kvim
r
bt
- ->

(gdb) r
Starting program: /usr/bin/vim
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugg
o debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0809b920 in ?? ()
(gdb) bt
#0  0x0809b920 in ?? ()
#1  0x0804c1e8 in ?? ()
#2  0x00000001 in ?? ()
#3  0x00000000 in ?? ()
#4  0x00000000 in ?? ()
#5  0x00000000 in ?? ()
#6  0x08156770 in ?? ()
#7  0x401b26e0 in __after_morecore_hook () from /lib/tls/i686/cmov/libc.s=
o.6
#8  0x00000001 in ?? ()
#9  0x00000120 in ?? ()
#10 0xffffffff in ?? ()
#11 0xffffffff in ?? ()
#12 0x00000120 in ?? ()
#13 0x08155988 in ?? ()
#14 0x00000120 in ?? ()
#15 0xbffff964 in ?? ()
#16 0xbffff778 in ?? ()
#17 0x080c9e68 in ?? ()
#18 0x00000120 in ?? ()
#19 0x4000bbe0 in _dl_map_object_deps () from /lib/ld-linux.so.2
#20 0x0809dc48 in ?? ()
#21 0x08155a38 in ?? ()
#22 0x00000020 in ?? ()
#23 0x0000000a in ?? ()
#24 0x08126d97 in ?? ()
#25 0x00000120 in ?? ()
#26 0x08155988 in ?? ()
#27 0xbffff7b8 in ?? ()
#28 0x08126b75 in ?? ()
#29 0x08155988 in ?? ()
#30 0x08155988 in ?? ()
#31 0x00000016 in ?? ()
#32 0x00000000 in ?? ()
#33 0x00000000 in ?? ()
#34 0xbffff964 in ?? ()
#35 0xbffff7d8 in ?? ()
#36 0x0812644b in ?? ()
#37 0x00000000 in ?? ()
#38 0x00000000 in ?? ()
#39 0x00000001 in ?? ()
#40 0x00000002 in ?? ()
#41 0x00000001 in ?? ()
#42 0xbffff964 in ?? ()
#43 0xbffff8d8 in ?? ()
#44 0x080a8e2e in ?? ()
#45 0x00000001 in ?? ()
- ---Type <return> to continue, or q <return> to quit---
#46 0xbffff964 in ?? ()
#47 0x4008516c in ?? () from /lib/tls/i686/cmov/libc.so.6
#48 0xbffff840 in ?? ()
#49 0x40007a4c in _dl_unload_cache () from /lib/ld-linux.so.2
Previous frame inner to this frame (corrupt stack?)

vim -X
$ vim -X
Segmentation fault

rm .viminf*
- -> segfault

since vim is boken, I can NAT use reportbug ...

lets past what I expect you wain from me :

- -- System Information:
Debian Release: 3.1
~  APT prefers unstable
~  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=3DC, LC_CTYPE=3DC (charmap=3DANSI_X3.4-1968)

Versions of packages vim depends on:
ii  dpkg                        1.10.25      Package maintenance system
for Deb
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared
libraries an
ii  libgpmg1                    1.19.6-19    General Purpose Mouse -
shared lib
ii  libncurses5                 5.4-4        Shared libraries for
terminal hand
ii  vim-common                  1:6.3-031+2  Vi IMproved - Common files

- -- no debconf information

Please upgrade this bug and put it back to critical; it is perfectly
reproductable, and reders unusable all apps which depend on it, such as
reportbug, kvim, and maybe many others. I can not write any more any
single line of code ...

Note that after dowgrading to vim_6.3-013+2_i386.deb ( from Sarge ), it
works again. =3D> the bug comes from one of the files inside the pakage (
not any external broken lib possible).

- --
DEMAINE Beno=EEt-Pierre http:/www.demaine.info/
\_o< apt-get remove ispell >o_/
There're 10 types of people: those who can count in binary and those who
can't
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBljUgGWSTLbOSw8IRApWvAJ0T+1IU/LNf+El5EKrIc+woIKMQjQCgsJN2
RMpAWoCstCOiXFLmrpEtATs=3D
=3D5A5d
-----END PGP SIGNATURE-----