Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Derar
Novice


Joined: 09 Sep 2006
Posts: 44

PostPosted: Tue Aug 10, 2010 10:15 pm   

[3.22a] BUG - DB.key = @DB causes memory error
 
This one's pretty easy to reproduce... using db.key syntax to assign a db variable to its own key blows stuff up.

Code:

TestDB = %json("{"Test1":1, "Test2":2, "Test3":3}")
TestDB.Test4 = @TestDB


Now, that bit of code is fine on its own, but when you try to actually access the variable, you get an access violation (Error: Access violation at <address> (tried to write to <address>), program terminated.) The addresses vary.

Note that the error will occur whether you try to pull the data out of it somehow, or access the variable in the package editor. Reassigning the value of the variable, however, gets you out of trouble, and no error occurs after that, unless you do the above again of course.

On the off-chance it matters in this case, I'm on Vista Home Premium 32-bit.

Edit: Oh, I don't get an error report mechanism on this. It just dies.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Aug 11, 2010 4:04 pm   
 
Looks like CMUD is doing a direct reference assignment, causing a recursive list to be created which then causes an infinite loop in the JSON routines. I'll look into this.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net