Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79127 - [vim7] gvim-7.0_alpha20050113 seg faults w/ gtk2
Summary: [vim7] gvim-7.0_alpha20050113 seg faults w/ gtk2
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-22 12:39 UTC by Grant Goodyear (RETIRED)
Modified: 2005-08-11 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
strace log (gvim.log,150.22 KB, text/plain)
2005-01-22 12:39 UTC, Grant Goodyear (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Goodyear (RETIRED) gentoo-dev 2005-01-22 12:39:05 UTC
Click on edit, select font, and cancel the window, producing a lovely segfault.

strace:

ioctl(3, FIONREAD, [0])                 = 0
ioctl(3, FIONREAD, [0])                 = 0
poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}], 7, 0) = 0
gettimeofday({1106425926, 54063}, NULL) = 0
write(3, "5\30\4\0*\1@\1\362\0@\1\247\0\213\0;\3\5\0\"\0@\1\0\0\0"..., 3532) = 3532
ioctl(3, FIONREAD, [0])                 = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}, {fd=4, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}], 7, -1) = 1
ioctl(3, FIONREAD, [64])                = 0
read(3, "\5\1\342\33\327\365\340H\216\0\0\0\377\0@\1\0\0\0\0\274"..., 64) = 64
write(3, "\20\0\3\0\4\0@\1NONE", 12)    = 12
read(3, "\1\0\343\33\0\0\0\0U\0\0\0\0\0\0\0\1\0\0\0\26\0\0\0\230"..., 32) = 32
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_IGN}, 8) = 0
mmap2(NULL, 2097152, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xb6a55000
munmap(0xb6a55000, 700416)              = 0
munmap(0xb6c00000, 348160)              = 0
mprotect(0xb6b00000, 135168, PROT_READ|PROT_WRITE) = 0
write(1, "Vim: Caught deadly signal SEGV\r\n", 32Vim: Caught deadly signal SEGV
) = 32
futex(0xb757e840, FUTEX_WAIT, 2, NULL
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2005-01-22 12:39:56 UTC
Created attachment 49223 [details]
strace log
Comment 2 Grant Goodyear (RETIRED) gentoo-dev 2005-01-22 12:41:02 UTC
emerge info:

dst portage # emerge info
Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0
, 2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 AMD Athlon(TM) XP 2400+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec  8 2004, 11:07:37)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]            
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-pipe -O2 -mtune=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -mtune=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cscope cups dvd encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mailwrapper mikmod milter mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline ruby sasl scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib"
Unset:  LDFLAGS
Comment 3 Ciaran McCreesh 2005-01-22 12:44:10 UTC
Mmm. Working here... So...

What gtk+-2 version is this? Does it still occur if you USE="debug"? If so, any chance you could get a gdb backtrace? You'll probably need to use "gvim -f" as the command.
Comment 4 Grant Goodyear (RETIRED) gentoo-dev 2005-01-22 13:23:58 UTC
x11-libs/gtk+-2.6.1-r1

backtrace:

#0  malloc_consolidate (av=0xb757e840) at malloc.c:4453
#1  0xb74c986e in _int_malloc (av=0xb757e840, bytes=3075991688)
    at malloc.c:3896
#2  0xb74cb181 in *__GI___libc_malloc (bytes=504) at malloc.c:3341
#3  0xb7b92067 in g_malloc () from /usr/lib/libglib-2.0.so.0
#4  0xb7c4b8c1 in pango_log2vis_get_embedding_levels ()
   from /usr/lib/libpango-1.0.so.0
#5  0xb7c392d5 in pango_context_get_base_dir () from /usr/lib/libpango-1.0.so.0
#6  0xb7c39fdc in pango_itemize_with_base_dir ()
   from /usr/lib/libpango-1.0.so.0
#7  0xb7c3a121 in pango_itemize () from /usr/lib/libpango-1.0.so.0
#8  0x0818e04e in gui_gtk2_draw_string (row=1, col=0, 
    s=0x8528388 "~", ' ' <repeats 79 times>, len=80, flags=2)
    at gui_gtk_x11.c:5311
#9  0x08180a95 in gui_outstr_nowrap (
    s=0x81d833b "~", ' ' <repeats 79 times>, "\033|2;0M~", ' ' <repeats 79 times>, "\033|3;0M~", ' ' <repeats 27 times>..., len=80, flags=0, fg=0, bg=0, 
    back=0) at gui.c:2101
#10 0x08180420 in gui_outstr (
    s=0x81d833b "~", ' ' <repeats 79 times>, "\033|2;0M~", ' ' <repeats 79 times>, "\033|3;0M~", ' ' <repeats 27 times>..., len=80) at gui.c:1753
#11 0x0818026e in gui_write (
    s=0x81d833b "~", ' ' <repeats 79 times>, "\033|2;0M~", ' ' <repeats 79 times
>, "\033|3;0M~", ' ' <repeats 27 times>..., len=1940) at gui.c:1653
#12 0x08171ba3 in ui_write (
    s=0x81d8320 "\033|C\033|0;0M\033|38h \033|38H\r\n\033|36h~", ' ' <repeats 79 times>, "\033|2;0M~", ' ' <repeats 79 times>, "\033|3;0M~"..., len=2047)
    at ui.c:29
#13 0x0816e312 in out_flush () at term.c:2526
#14 0x0816e38f in out_char (c=32) at term.c:2573
#15 0x0814f613 in screen_char (off=1946, row=24, col=26) at screen.c:6089
#16 0x0814fbdb in screen_fill (start_row=1, end_row=27, start_col=0, 
    end_col=80, c1=126, c2=32, attr=36) at screen.c:6361
#17 0x08148baa in win_draw_end (wp=0x81e11e8, c1=126, c2=32, row=1, endrow=27, 
    hl=HLF_AT) at screen.c:1998
#18 0x081486d1 in win_update (wp=0x81e11e8) at screen.c:1829
#19 0x0814665d in update_screen (type=40) at screen.c:511
#20 0x080e0b57 in main_loop (cmdwin=0) at main.c:2173
#21 0x080e0919 in main (argc=0, argv=0xbffff218) at main.c:2046
Comment 5 Ciaran McCreesh 2005-08-10 07:56:55 UTC
Could you please try again with 20050809 and reopen if it's still a problem? I
can't reproduce this one.
Comment 6 Grant Goodyear (RETIRED) gentoo-dev 2005-08-11 14:15:37 UTC
Working now.