When bug happens, vim exits from x_error_handler()  without core dump.
I added a call to abort() in  x_error_handler() in my CVS sanbox (vim-7.1.156)
to have a core dump and thus see the call stack etc when that bug happens.

(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7730ca6 in kill () from /lib/tls/i686/cmov/libc.so.6
#2  0x0814a0ce in may_core_dump () at os_unix.c:2951
#3  0x0814a060 in mch_exit (r=1) at os_unix.c:2916
#4  0x080e5565 in getout (exitval=1) at main.c:1342
#5  0x08110836 in preserve_exit () at misc1.c:8349
#6  0x08148341 in deathtrap (sigarg=6) at os_unix.c:1030
#7  <signal handler called>
#8  0xffffe410 in __kernel_vsyscall ()
#9  0xb7730875 in raise () from /lib/tls/i686/cmov/libc.so.6
#10 0xb7732201 in abort () from /lib/tls/i686/cmov/libc.so.6
#11 0x0814879b in x_error_handler (dpy=0x82a8478, error_event=0xbff92cc8) at 
os_unix.c:1379
#12 0xb7651bfa in _XError () from /usr/lib/libX11.so.6
#13 0xb76536c4 in _XReply () from /usr/lib/libX11.so.6
#14 0xb7637886 in XGetWindowProperty () from /usr/lib/libX11.so.6
#15 0xb7637fce in XGetTextProperty () from /usr/lib/libX11.so.6
#16 0xb76380e3 in XGetWMName () from /usr/lib/libX11.so.6
#17 0x08148cd5 in get_x11_thing (get_title=1, test_only=0) at os_unix.c:1704
#18 0x08148c07 in get_x11_title (test_only=0) at os_unix.c:1665
#19 0x08149087 in mch_settitle (title=0x8292f18 "[Neniu nomo] - VIM", 
icon=0x8292f30 "[Neniu nomo]") at os_unix.c:1956
#20 0x08057358 in resettitle () at buffer.c:3260
#21 0x080ab57d in ex_stop (eap=0xbff92f60) at ex_docmd.c:6551
#22 0x080a5147 in do_one_cmd (cmdlinep=0xbff930c8, sourcing=1, 
cstack=0xbff93124, fgetline=0, cookie=0x0)
    at ex_docmd.c:2621
#23 0x080a2997 in do_cmdline (cmdline=0x81f26e4 "st", getline=0, cookie=0x0, 
flags=11) at ex_docmd.c:1099
#24 0x080a2049 in do_cmdline_cmd (cmd=0x81f26e4 "st") at ex_docmd.c:705
#25 0x0812caef in nv_suspend (cap=0xbff934a8) at normal.c:7513
#26 0x081222c7 in normal_cmd (oap=0xbff93548, toplevel=1) at normal.c:1148
#27 0x080e52a2 in main_loop (cmdwin=0, noexmode=0) at main.c:1181
#28 0x080e4df2 in main (argc=1, argv=0xbff93744) at main.c:940


So the X error handler is called at os_unix.c:1704  when trying to set
the name of the terminal window.

os_unix.c:

1691│     static int
1692│ get_x11_thing(get_title, test_only)
1693│     int         get_title;      /* get title string */
1694│     int         test_only;
1695│ {
1696│     XTextProperty       text_prop;
1697│     int                 retval = FALSE;
1698│     Status              status;
1699│
1700│     if (get_x11_windis() == OK)
1701│     {
1702│         /* Get window/icon name if any */
1703│         if (get_title)
1704├>            status = XGetWMName(x11_display, x11_window, &text_prop);
1705│         else
1706│             status = XGetWMIconName(x11_display, x11_window, &text_prop);
1707│

-- 
[gutsy] Vim crash when gnome terminal tab is detached
https://bugs.launchpad.net/bugs/129106
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to