bugGNU Octave - Bugs: bug #45199, Segfault in annotation-dialog.cc

 
 

bug #45199: Segfault in annotation-dialog.cc

Submitted by:  Andreas Weber <andy1978>
Submitted on:  Thu 28 May 2015 06:35:12 AM UTC  
 
Category: Plotting with OpenGLSeverity: 4 - Important
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 02 Jun 2015 07:12:56 PM UTC, comment #5:

I pushed the patch on the stable branch:
http://hg.savannah.gnu.org/hgweb/octave/rev/6fe746def1aa

Closing report.

Pantxo Diribarne <pantxo>
Project Member
Tue 02 Jun 2015 04:50:55 PM UTC, comment #4:

Retagging release from 4.0.0-rc4 to 4.0.0.

John W. Eaton <jwe>
Project Administrator
Mon 01 Jun 2015 10:27:19 PM UTC, comment #3:

The attached patch fixes this bug for me. It also fixes bug #45222 at the same time.

(file #34145)

Pantxo Diribarne <pantxo>
Project Member
Thu 28 May 2015 09:57:08 PM UTC, comment #2:

Looks like my memory fails me [1], both "--no-gui" and plain GUI modes use a QApplication.

The problem is that the resource_manager hasn't been initialized: just calling resource_manager::reload_settings (); before any use of the resource manager (in annotation-dialog.cc) fixes the issue for me.

This should probably be done in octave-gui.cc

[1] http://hg.savannah.gnu.org/hgweb/octave/rev/1ed269bdea58

Pantxo Diribarne <pantxo>
Project Member
Thu 28 May 2015 08:43:00 AM UTC, comment #1:

Hi,

I had already reported this on the maintainers ml, but forgot to file the bug report. Thanks.

A major difference between the "--no-gui" and plain gui modes from the Qt point of view is the kind of application that is used: QCoreApplication [1] in "--no-gui", and QApplication in plain GUI.

I'd try to look in that direction, since even in "--no-gui" mode we do need gui (figures and dialogs).

[1] http://doc.qt.io/qt-4.8/qcoreapplication.html#details

Pantxo Diribarne <pantxo>
Project Member
Thu 28 May 2015 06:35:12 AM UTC, original submission:

8a25649b9c77 (stable)

Start with "--no-gui", run "peaks" (now the Qt plotting window pops up), select "Insert Text", click on the plot:

bt (unfortunately without debugging symbols)

I can build Octave with debugging symbols tonight

Andreas Weber <andy1978>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34145:  fix_fig_locale.patch added by pantxo (4KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by andy1978 (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Jun 2015 07:12:56 PM UTCpantxoStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 02 Jun 2015 04:50:55 PM UTCjweRelease4.0.0-rc4=>4.0.0
    Mon 01 Jun 2015 10:27:18 PM UTCpantxoAttached File-=>Added fix_fig_locale.patch, #34145
      StatusConfirmed=>Ready For Test
    Thu 28 May 2015 09:23:10 AM UTCpantxoStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1