From: SourceForge.net <no...@so...> - 2008-02-12 06:29:30
|
Bugs item #1891735, was opened at 2008-02-12 15:29 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=1891735&group_id=4664 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jiyong Jung (bwhite8129) Assigned to: Nobody/Anonymous (nobody) Summary: seg. fault in linemode when resizing terminal Initial Comment: I always use cscope with vim. cscope is executed with following command. (checked with 'ps') cscope -dl -f cscope.out It always happens when I resize my terminal(putty). Backtrace ---- (gdb) where #0 0x000000353022ca9f in ungetch (ch=410) at ../../ncurses/base/lib_ungetch.c:63 #1 <signal handler called> #2 0x0000003c355b9a92 in __read_nocancel () from /lib64/tls/libc.so.6 #3 0x0000003c35565422 in _IO_file_read_internal () from /lib64/tls/libc.so.6 #4 0x0000003c355646fd in _IO_new_file_underflow () from /lib64/tls/libc.so.6 #5 0x0000003c3556652e in _IO_default_uflow_internal () from /lib64/tls/libc.so.6 #6 0x0000003c3555bd1d in _IO_getline_info_internal () from /lib64/tls/libc.so.6 #7 0x0000003c3555ab43 in fgets () from /lib64/tls/libc.so.6 #8 0x0000000000412d2c in main (argc=5681232, argv=0x51) at main.c:610 I think that WINCH signal handling is the problem. No seg. fault occured after I moved following code, which sets WINCH signal handling, into the "if (linemode == NO) {" block in main.c. ---- #if defined(KEY_RESIZE) && !defined(__DJGPP__) winch_action.sa_sigaction = sigwinch_handler; sigemptyset(&winch_action.sa_mask); winch_action.sa_flags = SA_SIGINFO; sigaction(SIGWINCH,&winch_action,NULL); #endif ---- I use cscope-15.6 / vim-7.1 / CentOS 4.5. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=1891735&group_id=4664 |