#123 busy endless spin when parsing .sql file

closed
None
5
2006-10-06
2005-10-12
No

If i put the following text in example.sql, and run
ctags example.sql, i get an endless hang.

The text is these five characters:

'\'/*'

These don't look like valid sql, but i narrowed this
down from a real SQL file that was causing problems.
The SQL file contained a set of comments on various tables.

If I add characters to the start so that there are an
even number of \' pairs, then there is no hang. With
an odd number, there is a hang.

So, this does not cause a hang.

'\'\'/*'

But this hangs.

'\'\'\'/*'

If I rename the file to example.py, there is no hang.

Discussion

  • Anonymous - 2005-10-12

    Logged In: YES
    user_id=492001

    This is with Exuberent Ctags 5.5.4

    Exuberant Ctags 5.5.4, Copyright (C) 1996-2003 Darren Hiebert
    Compiled: Aug 13 2004, 05:14:24
    Addresses: <dhiebert@users.sourceforge.net>,
    http://ctags.sourceforge.net
    Optional compiled features: +wildcards, +regex

     
  • Anonymous - 2005-10-12

    Logged In: YES
    user_id=492001

    Oh, and I see that I can't count properly. '\'/*' is six
    characters, of course.

     
  • Darren Hiebert

    Darren Hiebert - 2006-09-21
    • assigned_to: nobody --> dfishburn
     
  • David Fishburn

    David Fishburn - 2006-10-06

    Logged In: YES
    user_id=983517

    This has been fixed in revision 463. Should be included in
    the version after 5.6.

     
  • David Fishburn

    David Fishburn - 2006-10-06
    • status: open --> closed
     

Log in to post a comment.