New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18239 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

workaround for cscope crashes inside vim

Reported by: jcduell@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: vim Cc:
Port: cscope

Description

Right now macport's cscope will die if run within vim and the user resizes the xterm window (i.e a sigwinch signal is received).

To reproduce: 1) generate a cscope database (cscope -b) in a directory with at least one .c file; 2) run vim and do ":cs add cscope.out"; 3) try some searches, or just "ps" to see that cscope is alive and well; 4) resize the window, and repeat step 3. Cscope will have died.

This bug is fixed in the CVS head of cscope, but it is not in the current release (15.6). The attached patch applies the CVS fix to the 15.6 source tree.

I've reported this bug to the cscope maintainers, and encouraged them to put out a new release (it's been 2.5 years since the last one). But that may not happen any time soon, and so I encourage you guys apply this patch so the macports version doesn't crash anymore.

Cheers,

Jason Duell Mozilla

Attachments

winchpatch (1.3 KB) - added by jcduell@… 4 years ago.
patch to fix cscope sigwinch crashes. Applies to src/main.c

Change History

Changed 4 years ago by jcduell@…

patch to fix cscope sigwinch crashes. Applies to src/main.c

comment:1 Changed 4 years ago by devans@…

  • Keywords cscope removed
  • Owner changed from macports-tickets@… to mww@…

Assign to maintainer.

comment:2 Changed 4 years ago by jcduell@…

We have released cscope 15.7 (available at http://cscope.sourceforge.net/). It contains the fix for the sigwinch crash. So the best solution at this point is just to upgrade macports to use the new release.

comment:3 Changed 4 years ago by raimue@…

  • Status changed from new to closed
  • Resolution set to fixed

cscope has already been updated to 15.7 in r46363.

comment:4 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.