bugGNU Octave - Bugs: bug #48911, octave hangs built by mxe-octave...

 
 

bug #48911: octave hangs built by mxe-octave on linux using gcc 5

Submitted by:  Tatsuro MATSUOKA <tmacchant>
Submitted on:  Fri 26 Aug 2016 06:13:13 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: John Donoghue <lostbard>
Originator Name: Tatsuro MATSUOKAOpen/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.

 

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

Tue 13 Sep 2016 05:27:24 AM UTC, comment #7:

I have confirmed that changeset makes octave worked.
Thanks!

Tatsuro MATSUOKA <tmacchant>
Mon 12 Sep 2016 01:06:36 PM UTC, comment #6:

As a side note, on a fedora VM, with GCC 6.1.1, my native mxe-octave builds octave was also crashing frequency when typing in the cli or gui.

With the 6.0 update it (so far) has not crashed.

John Donoghue <lostbard>
Project MemberIn charge of this item.
Mon 12 Sep 2016 01:03:36 PM UTC, comment #5:

Pushed http://hg.octave.org/mxe-octave/rev/c18e196786bb

John Donoghue <lostbard>
Project MemberIn charge of this item.
Mon 12 Sep 2016 09:37:15 AM UTC, comment #4:

John Donoghue
If you have time, please consider to apply the patch.
The patch is effective Ubunutu 16.04 (64bit) and 14.04 (32bit).

Tatsuro MATSUOKA <tmacchant>
Sat 27 Aug 2016 08:54:14 AM UTC, comment #3:

Oops! octave for windows does not use ncurses.(termcap is used instead.)
Therefore version up of ncurses to 6.0 does not affect build for windows.

I attached a patch.

(file #38372)

Tatsuro MATSUOKA <tmacchant>
Sat 27 Aug 2016 06:40:31 AM UTC, comment #2:

I tried to build ncurses-6.0 by mxe-octave using gcc-5.4.0.
This time octave does not crash.

I have to check whether change of ncurses version affects windows build.

Tatsuro MATSUOKA <tmacchant>
Sat 27 Aug 2016 06:10:04 AM UTC, comment #1:

From the gdb information on the previous post, the crash seems to be related to libcursus built by mxe-octave using gcc-5.

At usr/bin directory on mxe-otave on linux using gcc-5,
I have executed:

Octave started up without crash.

/home/tatsu/work/octave/mxe-octave/mxe-octave-linux-dev-gcc493/usr/lib/libncurses.so

is libncurses.so built by mxe-octave using gcc-4.9.3.

Thus libncurses built by mxe-octave using gcc-5 is buggy.

In the src directory "ncurses-1-gcc-5-fix.patch" exists.
The patch seem to be well known for nurcus-5.9 :

https://github.com/cloudius-systems/osv/blob/master/modules/ncurses/ncurses-5.9-gcc-5.patch

I do not know the hang that I have met related to the patch.

Tatsuro MATSUOKA <tmacchant>
Fri 26 Aug 2016 06:13:13 AM UTC, original submission:

Operating system GNU/Linux
Distribution Ubuntu 14.04 and 16.04
Octave version 4.0 and dev
gcc version 5

Using gcc 4.9.3, octave build by mxe octave works.

run gdb

Back trace

Tatsuro MATSUOKA <tmacchant>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38372:  ncurces_update.patch added by tmacchant (829B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by tmacchant
  • -unavailable- added by tmacchant
  • -unavailable- added by tmacchant (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 Sep 2016 10:05:03 AM UTClostbardStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 12 Sep 2016 01:03:36 PM UTClostbardStatusNone=>Ready For Test
      Assigned toNone=>lostbard
    Mon 12 Sep 2016 09:37:15 AM UTCtmacchantCarbon-Copy-=>Added john donoghue
    Sat 27 Aug 2016 08:54:14 AM UTCtmacchantAttached File-=>Added ncurces_update.patch, #38372
      Carbon-Copy-=>Added johnd

    Back to the top


    Powered by Savane 3.1-cleanup1