SplitWords can hang the server (POL097-2006-10-29)

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.
Locked
Xandros
Expert Poster
Posts: 76
Joined: Fri Feb 17, 2006 12:25 pm

SplitWords can hang the server (POL097-2006-10-29)

Post by Xandros »

Hi,

if you use SplitWords with a custom delimiter on a string that begins
with that delimiter, it will permanently hang the server ("No clock
movement"). You can use the following text command to reproduce it:
program testbug()
var teststring := "* ";
var testarray := SplitWords(teststring, "*");

print (testarray);
endprogram
It will not hang if teststring is " *" or " * ".

Xandros
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

reviewed and problematic part found in code. but I can't test it here.

this part should hang server too if u use teststring := "abc ** def" (double * without any char between). can u check it for me? ;o)

thx, Shinigami
Xandros
Expert Poster
Posts: 76
Joined: Fri Feb 17, 2006 12:25 pm

Post by Xandros »

Shinigami wrote: this part should hang server too if u use teststring := "abc ** def" (double * without any char between). can u check it for me? ;o)
You are correct, this also hangs the server.

Xandros
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

ok, thx... fixed within cvs

Shinigami
Locked