[bug #68457] rsdec in the communications package can crash Octave

"Dmitri A. Sergatskov" <[email protected]> Thu, 18 Jun 2026 06:43:34 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #1, bug #68457 (group octave):

I can confirm with octave-12. The coredump:

Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by
`/usr/local/libexec/octave/12.0.0/exec/x86_64-pc-linux-gnu/octave-gui'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fe45063abd1 in decode_rs (data=..., prim=prim@entry=15,
iprim=iprim@entry=-143165576, nroots=nroots@entry=4, fcr=1, 
    drow=drow@entry=0, msb_first=<optimized out>) at
/usr/local/include/octave-12.0.0/octave/../octave/Array-base.h:548
548	  { return m_slice_data[n]; }
[Current thread is 1 (Thread 0x7fe43affd6c0 (LWP 3207599))]
(gdb) bt
#0  0x00007fe45063abd1 in decode_rs
    (data=..., prim=prim@entry=15, iprim=iprim@entry=-143165576,
nroots=nroots@entry=4, fcr=1, drow=drow@entry=0, msb_first=<optimized out>) at
/usr/local/include/octave-12.0.0/octave/../octave/Array-base.h:548
#1  0x00007fe45063be7f in Frsdec (args=..., nargout=nargout@entry=1) at
gf.cc:2130
#2  0x00007fe532fbbd3a in octave::tree_evaluator::execute_builtin_function
    (this=0x7fe42c001510, builtin_function=..., nargout=1, args=...) at
../libinterp/parse-tree/pt-eval.cc:3559
...


See if I can figure out what is going on...

Dmitri.
-- 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68457>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCajPL1gAKCRCqLAuaBUf3
TplmAQDmX9z0Csu2yUYCkrsitPx6VAkzqCobSaIUIUwKmFsZiwEA0omn7yDfwPvP
xK+X8Bg613xTGcbKZGCk/ECHL3qPvgg=
=Zepa
-----END PGP SIGNATURE-----