Reply to topic  [ 3 posts ] 
Bug in y_uo_extract? 
Author Message
Yorick Master

Joined: Wed Jun 01, 2005 11:34 am
Posts: 112
Post Bug in y_uo_extract?
Commit a66b1c1 appears to have introduced a bug.

Prior to that commit:

Code:
> get_member(save(foo=1), "foo")
1

After that commit:
Code:
> get_member(save(foo=1), "foo")
ERROR (*main*) get_member function requires exactly two arguments
WARNING source code unavailable (try dbdis function)
now at pc= 1 (of 20), failed at pc= 15
To enter debug mode, type <RETURN> now (then dbexit to get out)

I realize that's a non-standard way of accessing oxy objects, but I have a good reason for doing it that way: get_member works on oxy objects, Yeti hashes, struct instances, and binary files, which lets the code in question be somewhat container agnostic. But in any case, the code change that triggered this doesn't even appear to be related specifically to get_member.


Thu Aug 15, 2013 9:26 am
Profile
Yorick Master

Joined: Mon Nov 22, 2004 9:43 am
Posts: 354
Location: Livermore, CA, USA
Post Re: Bug in y_uo_extract?
That commit fixed a bug reported in this post http://yorick.sourceforge.net/phpBB3/viewtopic.php?f=6&t=396. The problem is that with oxy objects, you want to support arbitrary on_extract methods, so they need to clean up the stack in a way that yorick's internal on_extract methods do not.

Commit 0583dd5 hopefully fixes both problems simultaneously. I think. Probably. Let me know if you have further problems, or if the original bug has reappeared (the foo example works for me, but it's become pretty subtle).


Mon Aug 19, 2013 8:42 pm
Profile
Yorick Master

Joined: Wed Jun 01, 2005 11:34 am
Posts: 112
Post Re: Bug in y_uo_extract?
Our code is working properly under the new fix. Thanks much!


Wed Sep 04, 2013 5:03 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.