[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #66659] Octave crashes with SIGSEGV when debug
From: |
Torsten Lilge |
Subject: |
[Octave-bug-tracker] [bug #66659] Octave crashes with SIGSEGV when debugging class methods |
Date: |
Mon, 13 Jan 2025 14:13:21 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?66659>
Summary: Octave crashes with SIGSEGV when debugging class
methods
Group: GNU Octave
Submitter: ttl
Submitted: Mon 13 Jan 2025 08:13:16 PM CET
Category: Interpreter
Severity: 4 - Important
Priority: 5 - Normal
Item Group: Segfault, Bus Error, etc.
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 13 Jan 2025 08:13:16 PM CET By: Torsten Lilge <ttl>
Steps to reprodcue:
1. Consider as a minimal example the simple old style class "my_class" which
is attached to this report together with a test script
2. >> y = my_class (10)
3. >> dbstop @my_class/is_zero 3
4. >> is_zero (y)
5. Modify and save @my_class/is_zero.m
6. >> dbstatus
7. Crash with SIGSEGV
The commands above are also included in 'dbg_my_class.m'
The crash occurs in bp-table.cc:765:
760 user_code_provider (const std::string& who, const std::string&
fcn_ident,
761 octave_user_code *pfcn, bool silent = false)
762 : m_fcn (nullptr), m_is_valid (false)
763 {
764 m_fcn = pfcn;
765 bool f1 = m_fcn->is_classdef_method ();
766 bool f2 = m_fcn->is_classdef_constructor ();
To my findings, fcn-info.cc:646 (in out_of_date_check) is also involved:
646 bptab.remove_all_breakpoints_from_function (canonical_nm,
647 true);
Here, canonical_nm does only contain "is_zero" instead of "@my_class/is_zero".
Could this be the cause?
I was also thinking that this might be related to my changes in cset
https://hg.savannah.gnu.org/hgweb/octave/rev/85ca9f4242c5 but the crash occurs
in build without these changes as well.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Name: my_class.tar.xz Size: 492B
<https://file.savannah.gnu.org/file/my_class.tar.xz?file_id=56771>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-04e1be7c5875649835636cff39891da2b16ab95a.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66659>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [Octave-bug-tracker] [bug #66659] Octave crashes with SIGSEGV when debugging class methods,
Torsten Lilge <=