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

 
 

bug #41736: Use of profiler results in crash

Submitted by:  None
Submitted on:  Fri 28 Feb 2014 07:03:04 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Michael PenderOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.0
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.

 

(Jump to the original submission 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>
Project 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

Andreas Weber <andy1978>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 Dec 2014 05:05:50 AM UTCrik5StatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Thu 20 Mar 2014 12:59:59 PM UTCandy1978StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1