[bug #68577] Segfault when plotting over figure created with plotyy

Philip Nienhuis <[email protected]> Wed, 29 Jul 2026 10:48:52 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============7065412280429548490==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============7065412280429548490==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-1714636915-1785336532=:3416867"
Content-Disposition: inline

--8323329-1714636915-1785336532=:3416867
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/bugs/?68577>=0A=0A                 Summa=
ry: Segfault when plotting over figure created with=0Aplotyy=0A            =
       Group: GNU Octave=0A               Submitter: philipnienhuis=0A     =
          Submitted: Wed 29 Jul 2026 04:48:48 PM CEST=0A                Cat=
egory: Plotting with OpenGL=0A                Severity: 3 - Normal=0A      =
          Priority: 5 - Normal=0A              Item Group: Segfault, Bus Er=
ror, etc.=0A                  Status: None=0A             Assigned to: None=
=0A         Originator Name: philipnienhuis=0A        Originator Email:=0A =
            Open/Closed: Open=0A         Discussion Lock: Unlocked=0A      =
           Release: dev=0A        Operating System: Microsoft Windows=0A   =
        Fixed Release: None=0A         Planned Release: 12.1.0 (current def=
ault)=0A=0A=0A    _______________________________________________________=
=0A=0AFollow-up Comments:=0A=0A=0A-----------------------------------------=
--------------=0ADate: Wed 29 Jul 2026 04:48:48 PM CEST By: Philip Nienhuis=
 <philipnienhuis>=0AThe following is enough to reliably provoke a crash wit=
h Octave-11.3.0 and dev=0AOctave (the latter with and without VM enabled):=
=0A=0Aplotyy ([0 5], [1 4], [0 5], [4 1])=0Ahold on=0Ahpl =3D plot ([3 3], =
[0 5], 'linestyle', '-.', 'linewidth', 1.5)=0A=0ARemarkably it is the combi=
nation of 'linestyle' and 'linewidth' that provokes=0Athe crash; specifying=
 just one of them works fine.=0ABut also splitting up the second plot instr=
uction and then trying to change=0Athe other line property leads to a crash=
:=0A=0Aplotyy ([0 5], [1 4], [0 5], [4 1])=0Ahold on=0Ahpl =3D plot ([3 3],=
 [0 5], 'linestyle', '-.')=0Aset (hpl, 'linewidth', 1.5)=0A=0A=0AOf course =
what I am trying to do (just plotting a line somewhere in a plotyy=0Afigure=
) might be a corner case, but Octave just shouldn't segfault.  I also=0Acou=
ldn't figure out how to plot into one of the separate plotyy axes, to try=
=0Ato circumvent the issue.=0A=0A=0A=0A=0A=0A=0A=0A=0A    _________________=
______________________________________=0A=0AReply to this item at:=0A=0A  <=
https://savannah.gnu.org/bugs/?68577>=0A=0A________________________________=
_______________=0AMessage sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1785336532=:3416867
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCamoS1AAKCRCqLAuaBUf3
TgepAP0aSyNR11lBIlgPtbFdp6PVBLr6Pk7u0BGhncw8xwut4QEAxsoGDuQRn1kG
joFdfQYyLMgo/xCUU0NKfLZFC/jYqwI=
=Ng8U
-----END PGP SIGNATURE-----

--8323329-1714636915-1785336532=:3416867--



--===============7065412280429548490==--