Reply to topic  [ 3 posts ] 
funcdef bug ? 
Author Message
Yorick Padawan

Joined: Fri Nov 19, 2004 9:47 am
Posts: 20
Location: Bonn, Germany
Post funcdef bug ?
Hello everyone,

I do not know if anybody else has this problem but here is mine:

when I try to type the following in the yorick version taken from the sourceforge CVS (with the magic command line "cvs -z3 -d:pserver:anonymous@yorick.cvs.sourceforge.net:/cvsroot/yorick co -P yorick")

funcdef("write \"Execution halted. Return to *main* yorick prompt.\"");

I get a SIGSEGV error and the whole software crashes. It appears to be a new behavior as in the released yorick version it does not happen and just work fine.

Thank you in advance for your help


Mon Sep 08, 2008 8:15 am
Profile WWW
Yorick Master

Joined: Mon Nov 22, 2004 9:43 am
Posts: 354
Location: Livermore, CA, USA
Post 
This turned ot to be a severe bug in ypush_scratch as well as a simpler bug in funcdef. I just committed the fixes to CVS as versions 1.4 of funcdef.c and 1.11 of yapi.c.

Any attempt to use ypush_scratch with a non-zero on_free method will fail before this fix. I cannot imagine how funcdef ever worked. It seems miraculous, requiring the system free function to survive a call with an address that was never malloc'ed.

I'm sorry I took so long to fix this.


Sun Oct 19, 2008 4:51 pm
Profile
Yorick Padawan

Joined: Fri Nov 19, 2004 9:47 am
Posts: 20
Location: Bonn, Germany
Post 
Thank you !
This is just a great bugfix and everything works fine now !


Fri Oct 31, 2008 6:40 am
Profile WWW
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.