• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-2962
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Babbage Linden
Reporter: Xavier Felwitch
Votes: 4
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

When creating a new list from a string and old list, it adds the string to the old list as well

Created: 29/Aug/08 11:02 PM   Updated: 04/Sep/08 01:07 PM
Return to search
Component/s: Scripts
Affects Version/s: 1.24 Server
Fix Version/s: None

Environment:
CPU: AMD (Unknown model) (2211 MHz)
Memory: 3072 MB
OS Version: Microsoft Windows XP Service Pack 2 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8800 GTS/PCI/SSE2/3DNOW!
OpenGL Version: 2.1.1
Issue Links:
Relates
 

Linden Lab Issue ID: DEV-19936
Linden Lab Internal Branch: Branch_1-24-Server


 Description  « Hide
When using mono:

"list bList = "c" + aList + "d";"

to create a new list, it will add the string to the old list as well if the string come before the old list. I hve provided code below that reproduces the bug.

in the above example aList will equal ["c", <original values of list>] insted of staying the same, and if you use it as:

"list bList = ["c"] + aList + ["d"];" will work fine as it should though. This example also works fine under the old scripting engine

-----------------------------------------------------------------------------------------------------------------------------------

list aList = ["a", "b"];

default
{
state_entry()
{

}

touch_start(integer total_number)

{ llOwnerSay(llDumpList2String(aList, ";")); list bList = "c" + aList + "d"; llOwnerSay(llDumpList2String(bList, ";")); llOwnerSay(llDumpList2String(aList, ";")); }

}



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gellan Glenelg added a comment - 29/Aug/08 11:21 PM
Confirmed:

Result (in Mono):
[23:19] VWR8868: a;b
[23:19] VWR8868: c;a;b;d
[23:19] VWR8868: c;a;b

Result (in LSL):
[23:20] VWR8868: a;b
[23:20] VWR8868: c;a;b;d
[23:20] VWR8868: a;b

Raising priority


Lex Neva added a comment - 30/Aug/08 09:47 AM
Whoa, that's serious. I'm assigning to Babbage so that some eyes get on this ASAP.

I also moved it to SVC.


Babbage Linden added a comment - 02/Sep/08 03:40 AM
The problem is with prepending values to lists with the "+" operator. Here's a simpler repro:

list aList = ["a", "b"];

default
{
state_entry()

{ llOwnerSay(llDumpList2String(aList, ";")); list bList = "c" + aList; llOwnerSay(llDumpList2String(bList, ";")); llOwnerSay(llDumpList2String(aList, ";")); }

}


Joshua Linden added a comment - 02/Sep/08 08:00 AM
Babbage has a fix internally. We'll be testing it ASAP for a patch rollout.

Lex Neva added a comment - 02/Sep/08 09:32 AM
Now that's what I call a fast bugfix.

For future reference, was assigning to you the proper way to get quick attention, Babbage?


Bridie Linden added a comment - 04/Sep/08 01:07 PM
Fixed in 1.24.4, deploy completed 2008-09-03
http://status.secondlifegrid.net/2008/09/03/post224/