bugGNU Octave - Bugs: bug #40248, embedding interpreter in...

 
 

bug #40248: embedding interpreter in standalone application produces segfault

Submitted by:  Carlo de Falco <cdf>
Submitted on:  Sat 12 Oct 2013 07:45:12 AM UTC  
 
Category: NoneSeverity: 4 - Important
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: Carlo de Falco <cdf>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 28 Oct 2013 06:12:50 PM UTC, comment #3:

OK, assuming this is a "feature", I pushed this changeset:
http://hg.savannah.gnu.org/hgweb/octave/rev/d029ef208e4a

c.

Carlo de Falco <cdf>
Project MemberIn charge of this item.
Thu 24 Oct 2013 08:01:10 AM UTC, comment #2:

Hi,

Any updates on this one?

I have the patch to change the docs and examples
to document the need to use "clean_up_and_exit"
before shutting down the interpreter.

If this is not going to change before 3.8 I'd rather
push the changeset because I really don't like the
current situation where examples provided in the
source tree and in the manual consistently generate
corrupted memory/segfault errors.

c.

Carlo de Falco <cdf>
Project MemberIn charge of this item.
Tue 15 Oct 2013 05:53:40 AM UTC, comment #1:

as discussed in this thread:

http://octave.1599824.n4.nabble.com/segfault-when-embedding-the-interpreter-tp4658164.html

using 'cleanup_and_exit' stops the segfault.

Is it sufficient to change the example and the manual
to document that 'cleanup_and_exit' is required to exit
a program that embeds the interpreter?

Carlo de Falco <cdf>
Project MemberIn charge of this item.
Sat 12 Oct 2013 07:45:12 AM UTC, original submission:

Hi,

With a recent version of the development sources
whenever I try to run standalone programs embedding the interpretr, e.g. examples/embedded.cc, I get a segfault.

This is the result of running the program in the interpreter
and the backtrace of the segfault.

last time this was working was a couple of weeks ago.

c.

Carlo de Falco <cdf>
Project MemberIn charge of this item.

 

(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 cdf (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Oct 2013 06:13:35 PM UTCcdfStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 15 Oct 2013 05:53:40 AM UTCcdfStatusNone=>Confirmed
      Assigned toNone=>cdf
      Operating SystemMac OS=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1