bugGNU Octave - Bugs: bug #39587, Assertion failure with profexplore...


bug #39587: Assertion failure with profexplore after profile erroneous use: Assertion `active_fcn != call_tree' failed.

Submitted by:  Philipp Kutin <pkutin>
Submitted on:  Sun 28 Jul 2013 08:01:16 AM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 14 May 2014 09:04:53 PM UTC, comment #5: 

This should be fixed by this changeset on the development branch (http://hg.savannah.gnu.org/hgweb/octave/rev/b45d975aa38f).  The "problem" is that the assert statements were written with the assumption that profile would always be called from the top-level command line.  If profile() is used within an m-file to enable/disable profiling then the asserts would fire and cause the crash.  My solution was simply to comment out the incorrect assert statements in the code.

Rik <rik5>
Project Administrator
Fri 11 Oct 2013 12:04:10 AM UTC, comment #4: 

To be clear, this causes Octave abort with:
octave: corefcn/profiler.cc:108: profile_data_accumulator::tree_node* profile_data_accumulator::tree_node::exit(octave_idx_type): Assertion `fcn_id == fcn' failed.
Abort (core dumped)
Should be blocker for 3.8

Michael Godfrey <godfrey>
Project Member
Thu 10 Oct 2013 08:03:38 PM UTC, comment #3: 

Right.  It was properly classified before as a "Crash" which it does do.  But it isn't a regression.

Rik <rik5>
Project Administrator
Thu 10 Oct 2013 07:51:49 PM UTC, comment #2: 

What was the previous bug report?

What previous version of Octave did this not cause trouble?

John W. Eaton <jwe>
Project Administrator
Thu 10 Oct 2013 07:46:57 PM UTC, comment #1: 

Confirmed on a recent tip  (10/10/13).  This should be fixed before the 3.8 release.

Rik <rik5>
Project Administrator
Sun 28 Jul 2013 08:01:16 AM UTC, original submission:  

To reproduce, run the first demo of the attached prof_demo.m file (added since previous bug report):

Or, on the Octave prompt:

prof_test(1)  --> OK
prof_test(1)  --> will error, since issuing "profile clear" with active profiler
prof_test(2)  --> assertion failure

Philipp Kutin <pkutin>


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

Attach Files:

Attached Files
file #28678:  prof_test.m added by pkutin (432B - text/x-objcsrc)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by efferre79
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pkutin (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-08 lachlan Dependencies- => bugs #46315 is dependent
    2014-05-16 rik5 DependenciesRemoved dependency from bugs #41780 => -
    2014-05-14 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2014-03-14 efferre79 Carbon-Copy- => Added efferre79
    2014-03-14 rik5 Dependencies- => bugs #41780 is dependent
    2013-10-10 rik5 Item GroupRegression => Segfault, Bus Error, etc.
    2013-10-10 rik5 StatusNone => Confirmed
    2013-10-10 rik5 Item GroupSegfault, Bus Error, etc. => Regression
    2013-07-28 pkutin Attached File- => Added prof_test.m, #28678

    Back to the top

    Powered by Savane 3.7