bugGNU Octave - Bugs: bug #66489, Core dump when using the byte-code...

 
 

bug #66489: Core dump when using the byte-code interpreter

Submitter:  Hendrik K <koerhen>
Submitted:  Thu 28 Nov 2024 09:40:16 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * bytecode-evaluator Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 29 Nov 2024 07:26:29 PM UTC, comment #2: 

cc'ing petter (bytecode interpreter creator)

Philip Nienhuis <philipnienhuis>
Group Member
Thu 28 Nov 2024 09:48:58 AM UTC, comment #1: 

Ups: last crashing statement was not copied into the report


Trace:
sp  : 0x7ba5897f2ff0
bsp : 0x7ba5897f23e8
sp i: 385
sp ii: 385
ip  : 892
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 10

Trace:
sp  : 0x7ba5897f2ff0
bsp : 0x7ba5897f23e8
sp i: 385
sp ii: 385
ip  : 949
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 150

fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)


Anonymous
Thu 28 Nov 2024 09:40:16 AM UTC, original submission:  

An octave project using a large DB and complex multi function processing logic and lengthy number crunching (> 20000 Lines Of Code) has been working well with or without the byte-code interpreter active.
By default I use the byte-code interpreter, as it is materially faster.
The code is evolving on a continuous basis and I have experienced no issue with the byte-code interpreter until now.  The octave image is self-build (there is no byte-code image prebuild) from May this year.
The latest byte-code patches not pushed to the byte-code branch are applied manually on top (65240, 64961, 65547, 65304, 65308), some of them needed to be refreshed (like 65304).

A program script execution now causes a core-dump with the byte-code interpreter active (_vm_enable_(1)) and no crash without the byte-code interpreter (_vm_enable_(0)).
The most recent changes are twofold:
i) embedding a function (defined previously via an additional xxxx.m script containing multiple function and executed via source xxxx.m)
ii) calling another function (also previously defined in the same xxxx.m script containing multiple functions as above) which has become a separate stand-alone function file

The program crashes on the line where a simple assignment is coded:

StartC = XXX.STC;


(XXX is a struct)

The trace just before the crash is below.


wSize 6
ans = 38
Trace:
sp  : 0x7ba5897f2ff8
bsp : 0x7ba5897f23e8
sp i: 386
sp ii: 386
ip  : 866
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 1

Trace:
sp  : 0x7ba5897f3000
bsp : 0x7ba5897f23e8
sp i: 387
sp ii: 387
ip  : 868
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 1

Trace:
sp  : 0x7ba5897f2ff8
bsp : 0x7ba5897f23e8
sp i: 386
sp ii: 386
ip  : 869
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 102

ans = 1
Trace:
sp  : 0x7ba5897f2ff0
bsp : 0x7ba5897f23e8
sp i: 385
sp ii: 385
ip  : 873
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 20

Trace:
sp  : 0x7ba5897f2ff8
bsp : 0x7ba5897f23e8
sp i: 386
sp ii: 386
ip  : 875
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 2

Trace:
sp  : 0x7ba5897f3000
bsp : 0x7ba5897f23e8
sp i: 387
sp ii: 387
ip  : 877
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 19

=================================================================================================
Trace:
sp  : 0x7ba5897f2ff8
bsp : 0x7ba5897f23e8
sp i: 386
sp ii: 386
ip  : 880
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 97

Trace:
sp  : 0x7ba5897f2ff0
bsp : 0x7ba5897f23e8
sp i: 385
sp ii: 385
ip  : 882
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 101

Trace:
sp  : 0x7ba5897f2ff8
bsp : 0x7ba5897f23e8
sp i: 386
sp ii: 386
ip  : 884
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 80

Trace:
sp  : 0x7ba5897f2ff8
bsp : 0x7ba5897f23e8
sp i: 386
sp ii: 386
ip  : 890
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 8

Trace:
sp  : 0x7ba5897f2ff0
bsp : 0x7ba5897f23e8
sp i: 385
sp ii: 385
ip  : 892
code:
data: 0x7ba5897daa50
ids : 0x7ba5882af700
fn  : ZZZZZZZZZZ
Next op: 10


Hendrik K <koerhen>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by philipnienhuis
  • -email is unavailable- added by koerhen (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-11-29 philipnienhuis Carbon-Copy- Added petter

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code