bugGNU Octave - Bugs: bug #37960, is_real_type() always returns false

 
 

bug #37960: is_real_type() always returns false

Submitter:  Torsten Lilge <ttl>
Submitted:  Wed 19 Dec 2012 06:24:44 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 20 Dec 2012 05:14:26 AM UTC, comment #4: 

Thanks Jordi, I actually had an old version of octave installed.

Torsten Lilge <ttl>
Group Member
Wed 19 Dec 2012 06:57:10 PM UTC, comment #3: 

Torsten, I think your mkoctfile command is linking to a different, ABI-incompatible version of the Octave library than then you're running. So when you run this program, you're running into UB, since you're running against a different library than the one you compiled against.

Check that you don't have two different Octave installations running around.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Wed 19 Dec 2012 06:44:40 PM UTC, comment #2: 

Same changeset 15819:1e9a6285acc4 on my system (ubuntu 12.04, 32 bit). Strange ...
I Will try a fresh clone and build

Torsten Lilge <ttl>
Group Member
Wed 19 Dec 2012 06:35:00 PM UTC, comment #1: 

Works for me.  My Mercurial archive is at 15819:1e9a6285acc4.

This was on a Linux machine.

Rik <rik5>
Group administrator
Wed 19 Dec 2012 06:24:44 PM UTC, original submission:  

The function is_real_type() always returns false. Please find attached a small test program (oct-file).


octave:10> mkoctfile is_real_type_test.cc
octave:11> is_real_type_test (1)
ans = 0


I am not sure but three or two weeks ago, the function was still working; I was still not able to identify a changeset that might have caused this effect.
An older version of octave (from July 2012) returns 1 as expected.

Torsten Lilge <ttl>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #27126:  is_real_type_test.cc added by ttl (310B - text/x-c++src)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by ttl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-12-20 ttl StatusWorks For Me Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2012-12-19 rik5 StatusNone Works For Me
    2012-12-19 ttl Attached File- Added is_real_type_test.cc, #27126

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code