bugGNU Octave - Bugs: bug #52609, Invoking a script twice causes a...

 
 

bug #52609: Invoking a script twice causes a segfault

Submitter:  Rik <rik5>
Submitted:  Thu 07 Dec 2017 02:06:06 AM UTC
   
 
Category:  Interpreter Severity:  4 - Important
Priority:  7 - High Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 07 Dec 2017 04:33:52 PM UTC, comment #5: 

Yay!  Things are working again.  Closing report.

Rik <rik5>
Group administrator
Thu 07 Dec 2017 03:59:56 PM UTC, comment #4: 
John W. Eaton <jwe>
Group administrator
Thu 07 Dec 2017 10:24:48 AM UTC, comment #3: 

Confirmed: I observe the same thing, any script run twice segfaults.

Guillaume <gyom>
Thu 07 Dec 2017 08:18:01 AM UTC, comment #2: 

It is not the invocation to qr(). ANY script run twice segfaults with current devel.

Marco Caliari <caliari>
Group Member
Thu 07 Dec 2017 06:14:24 AM UTC, comment #1: 

Here is the start of a backtrace


#0  0x00007f585274501c in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_add_ref_lock_nothrow (
    this=<error reading variable: Cannot access memory at address 0x7ffde545aff8>)
    at /usr/include/c++/5/bits/shared_ptr_base.h:282
#1  0x00007f585275941b in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count (this=0x7ffde545b0e8, __r=...)
    at /usr/include/c++/5/bits/shared_ptr_base.h:840
#2  0x00007f58527540e6 in std::__shared_ptr<octave::symbol_record::symbol_record_rep, (__gnu_cxx::_Lock_policy)2>::__shared_ptr (this=0x7ffde545b0e0, __r=...) at /usr/include/c++/5/bits/shared_ptr_base.h:1147
#3  0x00007f585274fece in std::shared_ptr<octave::symbol_record::symbol_record_rep>::shared_ptr (this=0x7ffde545b0e0,
    __r=std::weak_ptr (count 104664, weak 2) 0x19766e0) at /usr/include/c++/5/bits/shared_ptr.h:328
#4  0x00007f585274c51a in std::weak_ptr<octave::symbol_record::symbol_record_rep>::lock (this=0x1976710)
    at /usr/include/c++/5/bits/shared_ptr.h:527
#5  0x00007f58528eff61 in octave::symbol_record::symbol_record_rep::is_added_static (this=0x19766e0)
    at libinterp/corefcn/symrec.h:308
#6  0x00007f58528eff85 in octave::symbol_record::symbol_record_rep::is_added_static (this=0x19766e0)
    at libinterp/corefcn/symrec.h:309
#7  0x00007f58528eff85 in octave::symbol_record::symbol_record_rep::is_added_static (this=0x19766e0)
    at libinterp/corefcn/symrec.h:309
#8  0x00007f58528eff85 in octave::symbol_record::symbol_record_rep::is_added_static (this=0x19766e0)
    at libinterp/corefcn/symrec.h:309
#9  0x00007f58528eff85 in octave::symbol_record::symbol_record_rep::is_added_static (this=0x19766e0)
    at libinterp/corefcn/symrec.h:309
#10 0x00007f58528eff85 in octave::symbol_record::symbol_record_rep::is_added_static (this=0x19766e0)
    at libinterp/corefcn/symrec.h:309


This goes on for at least 20,000 more lines.

Rik <rik5>
Group administrator
Thu 07 Dec 2017 02:06:06 AM UTC, original submission:  

When invoking qr() twice Octave segfaults.  I've attached a script that can be run twice to show the problem.


tst_qr_segfault
tst_qr_segfault



Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #42589:  tst_qr_segfault.m added by rik5 (152B - text/x-matlab)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by caliari (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-07 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2017-12-07 jwe StatusNone Ready For Test
    2017-12-07 caliari Severity3 - Normal 4 - Important
        Priority5 - Normal 7 - High
        SummaryInvoking qr() twice causes a segfault Invoking a script twice causes a segfault
    2017-12-07 rik5 Attached File- Added tst_qr_segfault.m, #42589

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code