Your message dated Thu, 19 Apr 2018 10:56:39 +0200
with message-id <[email protected]>
and subject line Re: Bug#895309: octave: Unable to stop running script by
ctrl+c when srl_read from instrument-control package is called
has caused the Debian Bug report #895309,
regarding octave: Unable to stop running script by ctrl+c when srl_read from
instrument-control package is called
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
895309: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895309
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: octave
Version: 4.2.2-2
Severity: normal
To reproduce:
you need serial port device and Internet connection to download instrument-
control package
install packages octave and liboctave-dev
apt-get install octave liboctave-dev
run Octave gui
in Octave command line call:
pkg install -forge instrument-control
create file onInit.m with following content:
pkg load instrument-control
s1 = serial("/dev/ttyUSB0", 115200)
srl_flush(s1)
delay = 0.22
while 1
data = srl_read(s1, 1)
if data == "s"
sleep(delay)
srl_write(s1, "PRUSA thx\n")
endif
endwhile
replace /dev/ttyUSB0 with your serial port device.
Run onInit from Octave gui Command Window
>> onInit
hit ctrl+c
expected behaviour:
script onInit is terminated
actual behaviour:
in Command Window following line is written for each ctrl+c pressed
srl_read: Interrupting...
It is also not possible to terminate GNU Octave gui by closing its window, or
clicking File/Exit or hitting ctrl+q.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages octave depends on:
ii libamd2 1:4.5.5-1
ii libarpack2 3.5.0+real-2
ii libasound2 1.1.3-5
ii libblas3 [libblas.so.3] 3.7.1-4
ii libbz2-1.0 1.0.6-8.1
ii libc6 2.27-3
ii libcamd2 1:4.5.5-1
ii libccolamd2 1:4.5.5-1
ii libcholmod3 1:4.5.5-1
ii libcolamd2 1:4.5.5-1
ii libcxsparse3 1:5.2.0+dfsg-1
ii libfftw3-double3 3.3.7-1
ii libfftw3-single3 3.3.7-1
ii libfltk-gl1.3 1.3.4-7
ii libfltk1.3 1.3.4-7
ii libfreetype6 2.8.1-1
ii libgcc1 1:8-20180321-1
ii libgl1 1.0.0-2
ii libglpk40 4.65-2
ii libglu1-mesa [libglu1] 9.0.0-2.1
ii libgomp1 8-20180321-1
ii liblapack3 [liblapack.so.3] 3.7.1-4
ii liboctave4 4.2.2-2
ii libosmesa6 17.3.3-1
ii libportaudio2 19.6.0-1
ii libqhull7 2015.2-4
ii libqrupdate1 1.1.2-2+b1
ii libqscintilla2-qt5-13 2.10.2+dfsg-4+b1
ii libqt5core5a 5.9.2+dfsg-12
ii libqt5gui5 5.9.2+dfsg-12
ii libqt5network5 5.9.2+dfsg-12
ii libqt5opengl5 5.9.2+dfsg-12
ii libqt5printsupport5 5.9.2+dfsg-12
ii libqt5widgets5 5.9.2+dfsg-12
ii libsndfile1 1.0.27-3
ii libstdc++6 8-20180321-1
ii libsuitesparseconfig5 1:5.2.0+dfsg-1
ii libumfpack5 1:4.5.5-1
ii libx11-6 2:1.6.4-3
ii octave-common 4.2.2-2
ii texinfo 6.3.0.dfsg.1-1+b2
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages octave recommends:
ii default-jre-headless 2:1.8-59
pn epstool <none>
pn gnuplot-qt | gnuplot-x11 | gnuplot-nox <none>
pn libopenblas-base | libatlas3-base <none>
ii octave-doc 4.2.2-2
pn pstoedit <none>
Versions of packages octave suggests:
ii liboctave-dev 4.2.2-2
-- no debconf information
--- End Message ---
--- Begin Message ---
On Mon, Apr 09, 2018 at 12:09:03PM -0700, Mike Miller wrote:
> On Mon, Apr 09, 2018 at 20:43:33 +0200, marek wrote:
> > To reproduce:
> > you need serial port device and Internet connection to download instrument-
> > control package
> > install packages octave and liboctave-dev
> > apt-get install octave liboctave-dev
> > run Octave gui
> > in Octave command line call:
> > pkg install -forge instrument-control
> […]
> > expected behaviour:
> > script onInit is terminated
> >
> > actual behaviour:
> > in Command Window following line is written for each ctrl+c pressed
> > srl_read: Interrupting...
> >
> > It is also not possible to terminate GNU Octave gui by closing its window,
> > or
> > clicking File/Exit or hitting ctrl+q.
>
> This looks to me like it is not really a bug in Octave, but in the
> instrument-control Forge package, which is not yet packaged in Debian.
>
> In particular, the instrument-control package intentionally overrides
> Octave's signal handling capabilities to handle interrupts on its own.
>
> Normally, Octave would handle a SIGINT by breaking out of the running
> loop or script or function entirely and returning control to the prompt.
> But because of the instrument-control package hijacking SIGINT handling,
> this normal behavior doesn't happen and Octave continues running.
>
> I would recommend that you close this bug, since it is not a bug in
> Octave as packaged by Debian, and work with the instrument-control
> package developer to resolve this issue.
Hence closing the bug. Don't hesitate to reopen if you disagree with this
assessment.
Best,
--
⢀⣴⠾⠻⢶⣦⠀ Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁ Debian Developer
⢿⡄⠘⠷⠚⠋⠀ http://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀ http://www.debian.org
signature.asc
Description: PGP signature
--- End Message ---