You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the print more than one line causes a buffer overflow error. And attempting to plot more than one vector at a time causes a buffer overflow error. Unsure if this is two separate issues or one issue.
Version
WRspice Version 4.3.21, (tested in GTK2, QT5)
System Ubuntu 24.04
Steps to replicate print buffer overflow.
In case of print command, open WRspice command line interface and either print something twice or simply enter some math expressions. Using print pi produces identical results.
WRspice 1 -> pi
pi = 3.141593
WRspice 2 -> pi
*** buffer overflow detected ***: terminated
Received signal 6, exiting.
Printing something that is a single digit, 0-9, gives buffer overflow after three times instead of two. Additionally, printing any statement that is two lines or more like printing a whole vector also causes the crash. If you have vector v(1) from a transient analysis.
WRspice 4 -> print v(1)
CKT2
Transient analysis Fri Nov 8 15:24:26 2024
------------------------------------------------------------------------------
Index time v(1)
------------------------------------------------------------------------------
*** buffer overflow detected ***: terminated
Received signal 6, exiting.
Steps to replicate plot buffer overflow.
For the plot command, run any example circuit file that plots multiple vectors with a single line.
The modified example sfq.cir will run without issue:
Description
Using the print more than one line causes a buffer overflow error. And attempting to plot more than one vector at a time causes a buffer overflow error. Unsure if this is two separate issues or one issue.
Version
WRspice Version 4.3.21, (tested in GTK2, QT5)
System Ubuntu 24.04
Steps to replicate print buffer overflow.
In case of print command, open WRspice command line interface and either print something twice or simply enter some math expressions. Using
print pi
produces identical results.Printing something that is a single digit, 0-9, gives buffer overflow after three times instead of two. Additionally, printing any statement that is two lines or more like printing a whole vector also causes the crash. If you have vector v(1) from a transient analysis.
Steps to replicate plot buffer overflow.
For the plot command, run any example circuit file that plots multiple vectors with a single line.
The modified example
sfq.cir
will run without issue:The following will crash with buffer overflow:
This was tested in GTK2 and QT5 builds with identical results to ensure the plot command was not failing due to GUI issues.
The text was updated successfully, but these errors were encountered: