bugGNU Octave - Bugs: bug #41736, Use of profiler results in crash

 
 

bug #41736: Use of profiler results in crash

Submitter:  None
Submitted:  Fri 28 Feb 2014 07:03:04 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Michael Pender Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 29 Dec 2014 05:05:50 AM UTC, comment #7: 

I'm pretty sure that this has been fixed by the changesets I submitted earlier.  The Original Reporter was not able to build from source to verify, but I am going to close the report.  It can be re-opened if this has not been fixed in 3.8.2.

Rik <rik5>
Group administrator
Thu 15 May 2014 07:39:09 AM UTC, comment #6: 

See http://wiki.octave.org/Mercurial and http://wiki.octave.org/Building

I'm using debian and after installing the dependencies with apt-get or aptitude it boils down to

hg clone http://www.octave.org/hg/octave octave-src
cd octave-src && ./bootstrap && cd ..
mkdir build_octave && cd build_octave
../octave-src/configure
make -j6
make check
sudo make install


Andreas Weber <andy1978>
Group Member
Thu 15 May 2014 03:33:37 AM UTC, comment #5: 

If someone can talk me through building from the Mercurial sources I will try the new code build and see what happens.

Michael Pender <sparx>
Thu 15 May 2014 03:31:58 AM UTC, comment #4: 

I don't think I can post the original code that I used to find the problem because it relies on Octave files that call on Nvidia hardware.  In addition to being large, unwieldy, and occupying an entire directory, there is the problem that it won't run on other hardware.  I'm trying to work out a scaled back piece of code that reproduces the problem without depending on non-standard hardware.

Michael Pender <sparx>
Wed 14 May 2014 09:11:44 PM UTC, comment #3: 

I just submitted two changesets to the development branch which improve the profiler behavior quite a bit.  It would be useful if the original reporter could build from Mercurial sources with changeset b45d975aa38f and see if the problem has been fixed.  Otherwise, as Felipe has suggested, we need a copy of the failing code so that we can reproduce the error.

Rik <rik5>
Group administrator
Wed 05 Mar 2014 05:39:17 AM UTC, comment #2: 

@Mike: could you attach a file that reproduces this bug, please?

Felipe G. Nievinski <fgnievinski>
Sat 01 Mar 2014 11:52:15 AM UTC, comment #1: 

This bug report is not associated with my account, but I am the originator if there are any followup questions.

- Mike

Michael Pender <sparx>
Fri 28 Feb 2014 07:03:04 PM UTC, original submission:  

I have experienced this bug multiple times, but intermittently.  It has always happened on longer runs when the performance data gathered was longer than 480 seconds.  The error messages reported are as follows:

octave-cli-3.8.0: corefcn/profiler.cc:258: void profile_data_accumulator::exit_function(const string&): Assertion `active_fcn != call_tree' failed.
Aborted (core dumped)

Line 258 of my Octave script is actually an 'end' statement.  I think the error was actually triggered by line 275, which reads: profile off

Restarting Octave and running the exact same script with no changes worked properly and returned the expected results:
octave:1> test12
   #  Function Attr     Time (s)        Calls
---------------------------------------------
  21     randi           169.763      2209185
   5      rand            17.480      2774650
  26  isscalar            16.502      2209377
  36       not             5.479      5200853
  22    nargin             5.442      6628292
  20  binary +             4.549      8506082
  32   strfind             4.492      2209185
  13      sort             4.491       405465
  25  prefix !             2.995      4418946
  33    strcmp             2.713      4418402
  29  binary >             2.634      6627907
   1  binary *             2.595      2614710
  10 binary ==             2.558      3586092
  34    bitmax             2.311      4418370
  19  binary <             2.247      4664107
  16  binary -             2.212      6627603
   6     round             1.994       565529
  35     floor             1.962      2209265
  11       sum             1.849       650962
  28       fix             1.615      2700163
   9 postfix '             1.522       565465
  27     numel             1.292      2209393
  30       end             1.291      2209265
  23 isnumeric             1.269      2209265
  17 binary !=             1.181      2455115
octave:2>

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by andy1978 (Updated the item)
  • -email is unavailable- added by fgnievinski (Posted a comment)
  • -email is unavailable- added by sparx (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-29 rik5 StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2014-03-20 andy1978 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code