octave crash report

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

octave crash report

Przemek Klosowski
Two problems with my brand spanking new octave 2.1.58:

  f=inline('x');   f(3)++

results in
  panic: impossible state reached in file 'ov-fcn-handle.h' at line 57

Then, it attempts to save variables to 'octave-core' and fails again:

  error: octave_base_value::save_binary(): wrong type argument 'inline function'


Reply | Threaded
Open this post in threaded view
|

Re: octave crash report

David Bateman-3
According to Przemek Klosowski <[hidden email]> (on 09/03/04):
> Two problems with my brand spanking new octave 2.1.58:
>
>   f=inline('x');   f(3)++
>
> results in
>   panic: impossible state reached in file 'ov-fcn-handle.h' at line 57

This is due to subsref... It seems that subsref is defined both in
ov-fcn-handle.h and in ov-fcn-handle.cc. Probably changing

  octave_value subsref (const std::string&,
                        const std::list<octave_value_list>&)
    {
      panic_impossible ();
      return octave_value ();
    }


to

  octave_value subsref (const std::string&,
                        const std::list<octave_value_list>&);

in ov-fcnhandle.h might be sufficient. Can test it as my tree is a mess,
as I'm fixing another bug at the momemnt and its not compiling :-)

D.


>
> Then, it attempts to save variables to 'octave-core' and fails again:
>
>   error: octave_base_value::save_binary(): wrong type argument 'inline function'

--
David Bateman                                [hidden email]
Motorola CRM                                 +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin    +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as:

[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary


Reply | Threaded
Open this post in threaded view
|

Re: octave crash report

David Bateman-3
In reply to this post by Przemek Klosowski
According to Przemek Klosowski <[hidden email]> (on 09/03/04):
> Then, it attempts to save variables to 'octave-core' and fails again:
>
>   error: octave_base_value::save_binary(): wrong type argument 'inline function'

We should we be able to save inline functions? Its possible to do it as
all that would be required is to save the string representing the inline
function. As for function handles this is harder, anonymous function handles
might be saved, but normal function handles might not have the original
function available when the ile is re-read.

D.

--
David Bateman                                [hidden email]
Motorola CRM                                 +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin    +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as:

[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary