[OctDev] Octave mingw 3.2.0 crashes

nit ar nit_ar at hotmail.com
Thu Jun 18 01:09:51 CDT 2009








If I uninstall all packages, examples A and B ('clear functions' crash) are OK - no crash.
Example C - the recursive call to testf1 still crashes !

% example C
[a,b]=testf1('b=4;a=testf1(''a=1;c=3;'',''a'');','a','b'); % crashes

Note that in this example, the eval string input to testf1 includes a second recursive call to testf1 which sets an extra variable c !

I am listing here the testf1.m code in case you couldn't read the attachment.

function varargout=testf1(evalstr,varargin)

eval(evalstr(:).');
varargout=cell(1,length(varargin));
for ii=1:length(varargin)
    varargout(ii)={eval(cell2mat(varargin(ii)))};
end


Nitzan Arazi

> Date: Wed, 17 Jun 2009 22:40:37 +0200
> From: lindnerben at gmx.net
> To: nit_ar at hotmail.com
> CC: octave-maintainers at octave.org; bug-octave at octave.org; octave-dev at lists.sourceforge.net
> Subject: Re: [OctDev] Octave mingw 3.2.0 crashes
> 
> nit ar wrote:
> > *Hello octave maintainers !
> > 
> > Octave Mingw 3.2.0 crashes on my XP SP3 machine when :
> > a. certain eval commands are executed within function after octave startup
> > b. clear functions command is executed
> > 
> > I am attaching a test function code (testf1.m) and listing hereafter 
> > some examples which lead to such crashes.
> > The examples have been run immediately after octave startup.
> > 
> > % example A - crash, no exception notice:
> > [a,b]=testf1('b=4;a=testf1(''a=1;'',''a'');','a','b'); % ok
> > clear functions % crashes, no exception notice
> > 
> > **% example B - above line function calling succeeds when it is called 
> > in two stages but crashes when clearing functions, no exception notice:
> > **a=testf1('a=1;c=3;','a'); % ok
> > **[a,b]=testf1('b=4;a=testf1(''a=1;'',''a'');','a','b'); % ok
> > clear functions** % crashes, no exception notice
> > 
> > **% example C - crashes with windows Application Error popup:
> > [a,b]=testf1('b=4;a=testf1(''a=1;c=3;'',''a'');','a','b'); % crashes
> > 
> > Example C above generates an windows application error popup:
> > The instruction at "0x7c9104fa" referenced memory at "0xfffffffd", The 
> > memory could not be "read".
> > Click OK to terminate the program
> > 
> > I have followed some threads regarding the possibility that SWIG related 
> > packages are causing these crashes so I have tried the above examples 
> > also after executing
> > pkg unload all
> > and still having these crashes.
> > 
> 
> IIRC those packages must be uninstalled, not just unloaded.
> If you uninstall them, do you still see the crashes?
> 
> benjamin

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090618/8c989aa3/attachment.html 


More information about the Bug-octave mailing list