Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#40 Segmentation fault on $::world->alias call

open
None
5
2012-02-18
2011-12-28
Ron Lovis
No

A call to $::world->alias produces an immediate segmentation fault.

I\'m trying to create an alias that replaces the command \'n\' with the string \'n%;dig\' - two commands joined with KC\'s standard command separator.

There are no other plugins running, and before testing this plugin I created a brand new world in the \'Edit World\' menu.

Discussion

  • Ron Lovis
    Ron Lovis
    2011-12-28

    test6.pl

     
    Attachments
  • Ron Lovis
    Ron Lovis
    2011-12-28

    • summary: Segmentation faul on $::world->alias call --> Segmentation fault on $::world->alias call
     
  • Ron Lovis
    Ron Lovis
    2011-12-28

    KildClient v2.11.1, build 1199 (I think)

     
  • Does this crash after the call to $world->alias, or when you try to run the "n" alias defined?

    Mine crashes in the latter case, and that happens because the alias is recursive: it replaces n with n%;dig: this is split, and n is then parsed, which triggers the alias again, and so on. Sinc eyou are anchoring n at the beginning and end, it might work if you add an space after n in the replacement, if your server is not too strict.

     
    • assigned_to: nobody --> ekalin