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


bug #39586: Assertion failure with profexplore valid use: Assertion `fcn_id == fcn' failed.

Submitted by:  Philipp Kutin <pkutin>
Submitted on:  Sun Jul 28 07:54:36 2013  
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 MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Wed May 14 21:04:15 2014, comment #10:

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
Wed Nov 27 20:08:10 2013, comment #9:

Confirmed, for what it's worth it does not happen with qt graphics toolkit.

Pantxo Diribarne <pantxo>
Project Member
Wed Nov 27 20:06:23 2013, comment #8:

Oops, "graphics_toolkit fltk" is precisely what my .octaverc contains at the top. Sorry for failing to provide that crucial piece of information, as it turned out now!

(Oh, and in passing, thanks to whomever fixed the awful ~0.5-second delays when pressing the prompt history up/down keys after loading FLTK.)

Philipp Kutin <pkutin>
Wed Nov 27 16:59:52 2013, comment #7:

Even simpler series of commands now to reproduce the bug.

Rik <rik5>
Project Administrator
Wed Nov 27 05:01:24 2013, comment #6:

I found a situation that fails for me. If the .octaverc file contains

then running

If there is no such line in the .octaverc or I call "run-octave -f" which does not read initialization scripts then it works.

Rik <rik5>
Project Administrator
Sun Oct 13 17:33:17 2013, comment #5:

I am now at (hg summary)

parent: 17646:993ea21b7e03 tip
graphics.in.h: Text "edgecolor" property should default to "none".
branch: default
bookmarks: @
commit: (clean)
update: (current)
mq: (empty queue)

and the test works for me even if I don't do anything before in a session (gui or not). My configure command is:

I use gcc 4.7.2 on linux mint 14.

Pantxo Diribarne <pantxo>
Project Member
Fri Oct 11 16:48:57 2013, comment #4:

Using this tip (hg id 382aaf2d533a) I still get a segfault. Moreover, I get a different result from profile.

There is no call to 'binary +' for example. So, this might have to do with compilation options. Also, I was executing the two commands as the very first thing in an Octave session, perhaps things need to be initialized to work properly.

Rik <rik5>
Project Administrator
Fri Oct 11 15:56:55 2013, comment #3:

Can't confirm with up to date dev.

It may have been fixed at the same time as this one https://savannah.gnu.org/bugs/index.php?39524

Pantxo Diribarne <pantxo>
Project Member
Thu Aug 8 00:56:36 2013, comment #2:

Confirmed on a recent tip. The profiler has ceased to function well since moving to the new parser.

Rik <rik5>
Project Administrator
Sun Jul 28 07:55:50 2013, comment #1:

[Oops, the rest of my initial report was eaten.]

octave:2> prof_test(1)
octave:3> profexplore(profile("info"))

1) : 1 calls, 12.241 total, 0.100 self
2) zeros: 1 calls, 0.005 total, 0.005 self
3) binary -: 1000 calls, 0.001 total, 0.001 self
4) binary +: 1000 calls, 0.000 total, 0.000 self
5) binary ==: 1 calls, 0.000 total, 0.000 self

profexplore> 1
../../libinterp/corefcn/profiler.cc:108: profile_data_accumulator::tree_node* profile_data_accumulator::tree_node::exit(octave_idx_type): Assertion `fcn_id == fcn' failed.
panic: Aborted -- stopping myself...

Philipp Kutin <pkutin>
Sun Jul 28 07:54:36 2013, original submission:

To reproduce on the default branch,

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 #28677:  prof_test.m added by pkutin (358B - text/x-objcsrc)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by efferre79
  • -unavailable- added by pantxo (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 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri May 16 22:44:27 2014rik5DependenciesRemoved dependancy from bugs #41780=>-
    Wed May 14 21:04:15 2014rik5StatusConfirmed=>Fixed
    Fri Mar 14 09:54:21 2014efferre79Carbon-Copy-=>Added efferre79
    Fri Mar 14 03:31:53 2014rik5Dependencies-=>bugs #41780 is dependent
    Thu Oct 17 16:59:19 2013rik5Severity4 - Important=>3 - Normal
      Priority7 - High=>5 - Normal
    Thu Aug 8 00:56:36 2013rik5Severity3 - Normal=>4 - Important
      Priority5 - Normal=>7 - High
    Sun Jul 28 07:54:36 2013pkutinAttached File-=>Added prof_test.m, #28677

    Back to the top

    Powered by Savane 3.1-cleanup1