Referring to my previous post about octave mingw 3.2.0 crashes, the
first two examples are possibly caused by some swig based packages which
when loaded, cause octave to crash whenever 'clear functions' is
executed. When I have tried to uninstall all packages, this crash (first
two examples) doesn't occur anymore.
However, the crash associated with example C, still happens.
I have simplified my previous example C test case which cause octave
mingw 3.2.0 to crash on my XP SP3 machine:
The simplified test case is based on the following simple testf2.m
function which only evals its input string:
--------------------
function testf2(str);
eval(str);
--------------------
When I am calling this function as follows for the first time:
testf2('testf2(''a=1;'');');
octave crashes with the following messages (copied from console before
closing by windows)
--------------------
> testf2('testf2(''a=1;'');');
Assertion failed: xcurrent_context == 0, file
d:/files/admin/octaveforge_svn/trunk/octave-forge/admin/Windows/mingw32/octave/octave-3.2.0/src/symtab.h,
line 1065
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
--------------------
The octave-core contains only the following string:
Octave-1-L
When I am splitting the above call into two calls as follows, octave
doesn't crash:
testf2('a=1;');
testf2('testf2(''a=1;'');');
I hope that this bug will be resolved since I am using such 'eval' based
parameters setting functions in a project which has been run being run
with octave MSVC 3.0.3 and now is being run with octave mingw 3.0.5
without any problems and I wish to start runing it with recent octave
mingw 3.2.0.
Regards
Nitzan Arazi
John W. Eaton wrote:
> On 17-Jun-2009, 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.
>
> I don't see the file attachment in your message. Did you forget to
> attach it?
>
> There is no need to cross post your message to three lists. If you
> think you've found a bug in Octave, then the appropriate list is
> [email protected].
>
> jwe
>
>
>
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev