[TxMt] Infinite loop bug in ctags?

Ruben ever.unknown at gmail.com
Wed May 3 00:27:42 UTC 2006


Hey there,

2006/5/3, Trevor Harmon <trevor at vocaro.com>:
> I seem to have discovered an infinite loop bug in ctags, which
> TextMate depends on.
>
> 1. Create a new document
> 2. Paste in the text "This is a buggy <Java> program"
> 3. Change file type to Java
> 4. Save
>
> Can anyone reproduce this?
>

I just did some super-basic-testing on this: (I can be writing pure non sense)

I'm using TM 1.5.1 (985), and something's definitely weirdo in here.

1. I copied/pasted directly from your text, from my email message. TM
went nuts as soon as i clicked on the Save button on the Save Dialog.
Again, ctags consuming ~60%CPU and increasing RAM usage by seconds,
till ~140 MiB, where i killed the ctags process.

2. I tried to paste exactly the same text, written and copied this
time by me in another TM document created from scratch. This time, TM
saved the file correctly, no problems at all.

3. Then, i pasted your text from my email message, and modified it
till it read "Testing". Then, proceeded to save: again, the same
memory leak.

4. Created a new fancy TM document, and wrote "This is a buggy <Java>
program". Changed filetype, and saved correctly, no problems at all.

5. Created a new TM document. Pasted the text from your email message.
This time, changed filetype from Plain Text to HTML, and saved
correctly. Then, changed back from HTML to Java file type, and
replaced. Again, the memory leak.

6. I'm out of ideas :P


--
"The Universe is a big place, perhaps the biggest"
Kilgore Trout, Venus On The Half Shell


More information about the textmate mailing list