bugGNU Octave - Bugs: bug #37863, Segfault with competition between...

 
 

bug #37863: Segfault with competition between core Octave readline / Java readline handler

Submitted by:  None
Submitted on:  Tue 04 Dec 2012 05:15:09 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Yuval LifshitzOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
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)

Thu 29 Aug 2013 03:52:15 PM UTC, comment #9:

Seems to have been fixed, or at least using the test script no longer leads to a seg fault. Closing report.

Rik <rik5>
Project Administrator
Tue 20 Aug 2013 11:36:59 PM UTC, comment #8:

Is this still a problem? I just ran the test script which used to fail and it works now (hg id 2946888dfa56).

crash.m:

Rik <rik5>
Project Administrator
Wed 05 Dec 2012 04:46:16 PM UTC, comment #7:

Great work Mike. I'm going to re-title the report to be clearer.

I've confirmed that readline is a problem. The '--no-line-editing' option to octave allows you to forcibly disable readline.

Rik <rik5>
Project Administrator
Wed 05 Dec 2012 03:22:46 PM UTC, comment #6:

Confirmed on the development tree, and I managed to reduce to the following script:

which must be run as an m-file script for the crash to occur:

Mike Miller <mtmiller>
Project Administrator
Wed 05 Dec 2012 12:53:43 AM UTC, comment #5:

I believe the cause of the crash is the java Octave Forge package which installs its own readline event hook. I can reproduce this crash on Debian using the Debian-built packages but only if I install octave-java and have it autoloaded. And apparently only if the supplied script is run as

but it does not crash if I run it as

Moreover, now that Java has been rolled into the development tree, if I add "java_init" to my ~/.octaverc, I get the same crash with a dev build of Octave with no external packages.

Attached a gdb backtrace showing that the segfault is in the readline event handler.

(file #27042)

Mike Miller <mtmiller>
Project Administrator
Tue 04 Dec 2012 10:56:43 PM UTC, comment #4:

Actually, consider

https://launchpad.net/~octave/+archive/stable

which will be maintained going forward.

Mike Miller <mtmiller>
Project Administrator
Tue 04 Dec 2012 10:28:19 PM UTC, comment #3:

Consider

https://launchpad.net/~mtmiller/+archive/octave

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Tue 04 Dec 2012 10:16:21 PM UTC, comment #2:

installed octave-stats for that function. not sure if this is considered an external package or not.
i do get the following warning whenever i run octave:
as for upgrading to 3.6.3, i'm using the version i get when i run apt-get in Ubuntu, so i'm going to wait with a manual upgrade (unless they are going to upgrade the epel repository).

Anonymous
Tue 04 Dec 2012 05:00:45 PM UTC, comment #1:

Hard to say what is happening. When I tried 'octave min_estimation.m' I got

One possibility is that you are using external packages, and it is in fact those packages, which are introducing the instability into Octave. Another possibility is to update to Octave-3.6.3.

Rik <rik5>
Project Administrator
Tue 04 Dec 2012 05:15:09 AM UTC, original submission:

when running the project (attached zip) from outside of octave, i get a crash:
when running from inside, i get the debug prompt.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #27042:  gdb-bt.txt added by mtmiller (16KiB - text/plain)
file #27034:  octave-core added by None (81KiB - application/octet-stream - attaching the core file)
file #27033:  rania1.tgz added by None (47KiB - application/x-compressed-tar)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by rik5 (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 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Aug 2013 03:52:15 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 05 Dec 2012 04:46:16 PM UTCrik5Summarycrash when using keyboard and calling octave <file>=>Segfault with competition between core Octave readline / Java readline handler
    Wed 05 Dec 2012 03:22:46 PM UTCmtmillerCategoryNone=>Interpreter
      StatusNone=>Confirmed
      Release3.6.2=>dev
    Wed 05 Dec 2012 12:53:43 AM UTCmtmillerAttached File-=>Added gdb-bt.txt, #27042
    Tue 04 Dec 2012 05:23:33 AM UTCNoneAttached File-=>Added octave-core, #27034
    Tue 04 Dec 2012 05:15:09 AM UTCNoneAttached File-=>Added rania1.tgz, #27033

    Back to the top


    Powered by Savane 3.1-cleanup1