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: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating 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 File(s):

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
  • -unavailable- added by efferre79
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by pkutin (Submitted the item)

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Jul 2016 04:04:43 PM UTClachlanDependencies-=>bugs #46315 is dependent
    Fri 16 May 2014 10:44:32 PM UTCrik5DependenciesRemoved dependancy from bugs #41780=>-
    Wed 14 May 2014 09:04:53 PM UTCrik5StatusConfirmed=>Fixed
    Fri 14 Mar 2014 09:55:02 AM UTCefferre79Carbon-Copy-=>Added efferre79
    Fri 14 Mar 2014 03:31:33 AM UTCrik5Dependencies-=>bugs #41780 is dependent
    Thu 10 Oct 2013 08:03:38 PM UTCrik5Item GroupRegression=>Segfault, Bus Error, etc.
    Thu 10 Oct 2013 07:46:57 PM UTCrik5StatusNone=>Confirmed
    Thu 10 Oct 2013 07:46:56 PM UTCrik5Item GroupSegfault, Bus Error, etc.=>Regression
    Sun 28 Jul 2013 08:01:16 AM UTCpkutinAttached File-=>Added prof_test.m, #28678

    Back to the top

    Powered by Savane 3.1-cleanup1