Bug 520120 - ctags jumps into infinite loop or gets segment fault
Summary: ctags jumps into infinite loop or gets segment fault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ctags
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ngo Than
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-28 13:38 UTC by Masatake YAMATO
Modified: 2009-09-01 18:08 UTC (History)
2 users (show)

Fixed In Version: 5.8-1.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-01 18:07:27 UTC


Attachments (Terms of Use)
Input to reproduce the infinite loop (8 bytes, application/octet-stream)
2009-08-28 13:38 UTC, Masatake YAMATO
no flags Details
Input to reproduce the segment fault (3 bytes, text/plain)
2009-08-28 13:39 UTC, Masatake YAMATO
no flags Details
A patch to avoid the infinite loop and the segment fault. (1.28 KB, patch)
2009-08-28 13:40 UTC, Masatake YAMATO
no flags Details | Diff

Description Masatake YAMATO 2009-08-28 13:38:31 UTC
Created attachment 359061 [details]
Input to reproduce the infinite loop

Description of problem:

With the attached input files ctags jumps into infinite loop or gets segment fault.

Version-Release number of selected component (if applicable):

ctags-5.7-4.fc11.x86_64

How reproducible:

For reproducing infinite loop, use hgcommand-infinite-loop.vim as argument for ctags.

For reproduce segment fault, use hgcommand-segment-fault.vim as argument for ctags.

Steps to Reproduce:
* infinite loop
  ctags hgcommand-infinite-loop.vim

* segment fault
  ctags hgcommand-segment-fault.vim

Actual results:

Never returned to shell or segment fault.

Expected results:

Returned to shell successfully.

Additional info:
See the attached patch.

Comment 1 Masatake YAMATO 2009-08-28 13:39:28 UTC
Created attachment 359062 [details]
Input to reproduce the segment fault

Comment 2 Masatake YAMATO 2009-08-28 13:40:47 UTC
Created attachment 359063 [details]
A patch to avoid the infinite loop and the segment fault.

Comment 3 Ngo Than 2009-09-01 09:04:57 UTC
I already built the new ctags-5.8 including this fix in rawhide. It will also be built for F11/F10 update soon.

Thanks for the patch!

Comment 4 Fedora Update System 2009-09-01 10:48:22 UTC
ctags-5.8-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/ctags-5.8-1.fc11

Comment 5 Fedora Update System 2009-09-01 10:48:55 UTC
ctags-5.8-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/ctags-5.8-1.fc10

Comment 6 Fedora Update System 2009-09-01 18:07:22 UTC
ctags-5.8-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2009-09-01 18:08:07 UTC
ctags-5.8-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.