Author Topic: Invalid notes key hangs HFS indefinitely at 100% CPU  (Read 3376 times)

0 Members and 1 Guest are viewing this topic.

Offline raybob

  • Tireless poster
  • ****
  • Posts: 453
    • View Profile
    • FileSplat.com
Invalid notes key hangs HFS indefinitely at 100% CPU
« on: April 06, 2012, 09:40:23 PM »
If you try to use {.get account|a|notes key=.} and the key you're trying to find doesn't exist but exists as part of the end of another key, HFS will hang indefinitely at 100% CPU.

For example, if Raybob has a notes key of 12345-data=key:

{.get account|raybob|notes key=12345-data.} returns key.
{.get account|raybob|notes key=12345-dat.} returns nothing (as it should).
{.get account|raybob|notes key=2345-data.} ** Crashes HFS, as the string '2345-data' is at the end of '12345-data'. **
{.get account|raybob|notes key=2345-dat.} returns nothing (as it should).

This becomes a problem when I'm trying to load a key with a certain "ID", and when in certain cases the ID doesn't exist, the key is checked anyway.  For example it crashes when something like {.get account|data|notes key={.^id.}--data.} turns into {.get account|data|notes key=--data.}, because the ID expands to nothing, and many other keys exist that end in --data.
« Last Edit: June 30, 2012, 08:44:41 PM by raybob »

Offline raybob

  • Tireless poster
  • ****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: Invalid notes key hangs HFS indefinitely at 100% CPU
« Reply #1 on: July 06, 2012, 01:56:09 PM »
Have you looked into this?  I just encountered a scenario in which I cannot get around it.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Invalid notes key hangs HFS indefinitely at 100% CPU
« Reply #2 on: July 09, 2012, 04:50:58 PM »
mmmm, nope
i will

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Invalid notes key hangs HFS indefinitely at 100% CPU
« Reply #3 on: July 14, 2012, 12:53:18 PM »
ok, fixed in #281

Offline raybob

  • Tireless poster
  • ****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: Invalid notes key hangs HFS indefinitely at 100% CPU
« Reply #4 on: September 03, 2012, 03:39:22 PM »
It still is happening in 283 :(


Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Invalid notes key hangs HFS indefinitely at 100% CPU
« Reply #5 on: September 07, 2012, 02:02:08 PM »
i just tested on #282 and doesn't.... :-\