[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Bug#770192: marked as done (octave: mkoctfile -M infinite loop maybe because (char)c != EOF)



Your message dated Mon, 01 Dec 2014 21:21:44 +0000
with message-id <E1XvYPg-0005T3-OF@franck.debian.org>
and subject line Bug#770192: fixed in octave 3.8.2-4
has caused the Debian Bug report #770192,
regarding octave: mkoctfile -M infinite loop maybe because (char)c != EOF
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 owner@bugs.debian.org
immediately.)


-- 
770192: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770192
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: octave
Version: 3.8.2-3

On arm64 mkoctfile -M goes into an infinite loop:

echo > t.c
mkoctfile -M t.c
# it runs for ever

This may be because of this code in src/mkoctfile.in.cc:

get_line (FILE *fp)
{
  static std::vector<char> buf (100);
  unsigned int idx = 0;
  char c;

  while (true)
    {
      c = static_cast<char> (gnulib::fgetc (fp));
      if (c == '\n' || c == EOF)
        break;

On architectures where plain char is unsigned, c == EOF will always be
false. I suggest changing the type of c and the static_cast to "int".

Note that vlfeat is failing to build on arm64 apparently because of
mkoctfile -M timing out:

/usr/bin/mkoctfile -I. -I./toolbox -M "./toolbox/geometry/vl_rodr.c"
E: Caught signal ‘Terminated’: terminating immediately
make: *** [build-arch] Terminated

See:

http://buildd.debian.org/status/package.php?p=vlfeat&suite=sid

Would it be worth adding a simple test to octave so that this problem
with mkoctfile is discovered when building octave rather than later?

--- End Message ---
--- Begin Message ---
Source: octave
Source-Version: 3.8.2-4

We believe that the bug you reported is fixed in the latest version of
octave, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 770192@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sébastien Villemot <sebastien@debian.org> (supplier of updated octave package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 01 Dec 2014 21:25:52 +0100
Source: octave
Binary: octave octave-dbg octave-common octave-doc octave-htmldoc octave-info liboctave2 liboctave-dev
Architecture: source amd64 all
Version: 3.8.2-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
Changed-By: Sébastien Villemot <sebastien@debian.org>
Description:
 liboctave-dev - Development files for the GNU Octave language
 liboctave2 - Shared libraries of the GNU Octave language
 octave     - GNU Octave language for numerical computations
 octave-common - architecture-independent files for octave
 octave-dbg - Debug symbols for octave
 octave-doc - PDF documentation on the GNU Octave language
 octave-htmldoc - HTML documentation on the GNU Octave language
 octave-info - GNU Info documentation on the GNU Octave language
Closes: 770192
Changes:
 octave (3.8.2-4) unstable; urgency=medium
 .
   * mkoctfile-infinite-loop.patch: fix infinite loop of mkoctfile -M on
     platforms where char is unsigned. (Closes: #770192)
Checksums-Sha1:
 a46cf0407a2a165cfefb850ee1ed341ee8db79cf 2952 octave_3.8.2-4.dsc
 9371bb15604299de8e303da0a49493806b34c9a1 59248 octave_3.8.2-4.debian.tar.xz
 82badd103b6ffdee064b626cf0188e35aae7dfd7 1379996 octave-common_3.8.2-4_all.deb
 fbabedde5d35f4e8f911dec2621d4f61b9ffa615 3898000 octave-doc_3.8.2-4_all.deb
 037208a083808329dc6dd543a039014de8822f29 1748902 octave-htmldoc_3.8.2-4_all.deb
 cac9ca0a06deb9221a8434279b93a8620cae8fcd 916462 octave-info_3.8.2-4_all.deb
Checksums-Sha256:
 1af42ca17db82beef96c6763b0779c03735fbdbfa2634cab74eb0ce656079fa9 2952 octave_3.8.2-4.dsc
 f78774fa1c5af89087ab31c14cebdb8d07a7677936afa66c3755441c3c553c89 59248 octave_3.8.2-4.debian.tar.xz
 612d8668071c98fe262b8c1af00a08043391999df56fd1baa82365cc796c0d2c 1379996 octave-common_3.8.2-4_all.deb
 569abfa9b1319c0605496495cce9244ef76e2a4bed7ff77467c06c025dc592d4 3898000 octave-doc_3.8.2-4_all.deb
 779cb2daa5c61aa4d4a159c272360e5454b423a2683104dd4eab7e687c7425fb 1748902 octave-htmldoc_3.8.2-4_all.deb
 cba2164c151d761b99c16eb20911167aa7a634bc88eed36c3644a952bcd45c32 916462 octave-info_3.8.2-4_all.deb
Files:
 452436565d0b18fa2497e6d54d335f80 2952 math optional octave_3.8.2-4.dsc
 4130d1ceea2482f93b60015f81e40fc4 59248 math optional octave_3.8.2-4.debian.tar.xz
 ee0b51a87ab7189dfd85068f7afbf379 1379996 math optional octave-common_3.8.2-4_all.deb
 daf66b1d5d1b030471ab161d3b25cd43 3898000 doc optional octave-doc_3.8.2-4_all.deb
 7a45ca934a19c89cd38a71c2f858d962 1748902 doc optional octave-htmldoc_3.8.2-4_all.deb
 aab76c3822b32961d101e3cdfa56b7a7 916462 doc optional octave-info_3.8.2-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUfNNYAAoJECzs6TUOzr5KyvsP/1JCMrOs+4yGNzW/L2qvvoX5
anZ7+kG5hfrHnVYqsGpBw1VIYIVnFrTYDS5wt9AZ5Ek3cApmzLpFlO2dMWFpxd8x
kNQwYt5UlOySRn2lT+zqJQlDGhHsQXPuVexV/vv7jpzFqk+cw+1PyW1RrtG5/UtN
MNxjDgVN3W4ZG52EY9fQLbY+zyEslPlwLXS04j9eW9e6B8yP1HnZUmRPgUeNc2yq
hK0W8Z9H8yBQp0sIMYSrwAYjJyn86aZ8oRqnANn2+HTGRZrRLNojYhtB4mdFINQC
7aSCnKU/oM0DbycGHTeJUHMw06EDVv1NJP+YubdS7UrfHxTmup24aHSIM9/3m0ud
QaByaDn8MWvnZApprjaQ2/Qd0f3Txlbljj5CPze/MGxLHwJQ5ZxET5TtRm0V5GYr
XVd7PnKcdqMO4iv6ZT4P55xcMEU/mpNupelbRv3mKNssICYdGw2yy+JbH2x3QtN3
f7KQzQ55c8ntBsaYmzO/gfl/PM2zfrnvay/a3OH8TkV1mwrTuMItgOivmVUwSoaX
rB64FnJ8gb02wxwYr/607a4bY06lpafE7twlbp94pn8wjPKq1D4rAHG7f9ytC3ea
MrVDBNN/BgvzdtAQqppoY1zgp8rFK7vxYlq4qAHpOF4L71//vpJwClYDrTw/MVyA
LI/xaA2e4h0TBWwEnDrx
=tS5B
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: