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

[Pkg-octave-devel] Bug#603046: marked as done (octave3.2: strchr triggers Octave:str-to-num)



Your message dated Sun, 15 May 2011 08:48:35 +0000
with message-id <E1QLX07-0001mk-1j@franck.debian.org>
and subject line Bug#603046: fixed in octave3.2 3.2.4-10
has caused the Debian Bug report #603046,
regarding octave3.2: strchr triggers Octave:str-to-num
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.)


-- 
603046: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603046
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: octave3.2
Version: 3.2.4-8
Severity: normal
Tags: patch


strchr treats a string as a number implicitly:

kim@raph:~/orion/svn/raph1/octave$ octave
GNU Octave, version 3.2.4
....
octave:1> warning error Octave:str-to-num
octave:2> strchr("Octave is the best software","best")
error: implicit conversion from string to real N-d array
error: type conversion failed for binary operator `+'
error: evaluating argument list element number 1
error: invalid empty index list
error: called from:
error:   /usr/share/octave/3.2.4/m/strings/strchr.m at line 37, column 16
octave:2> 


I think it can be fixed by changing the the strchr function to:

function varargout = strchr (str, chars, varargin)
  if (nargin < 2 || ! ischar (str) || ! ischar (chars))
    print_usage ();
  endif
  f = false (1, 256);
  f(uint8(chars) + 1) = true;
  varargout = cell (1, nargout);
  varargout{1} = [];
  [varargout{:}] = find (reshape (f(uint8(str) + 1), size (str)), varargin{:});
endfunction


I found this bug by doing this:
  warning error Octave:str-to-num
  oldpath = path;
  path(oldpath);
If the octave-octcdf package is installed this will fail.


Regards,
Kim Hansen


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages octave3.2 depends on:
ii  libamd2.2.0         1:3.4.0-2            approximate minimum degree orderin
ii  libarpack2          2.1+parpack96.dfsg-3 Fortran77 subroutines to solve lar
ii  libatlas3gf-base [l 3.8.3-28             Automatically Tuned Linear Algebra
ii  libblas3gf [libblas 1.2-8                Basic Linear Algebra Reference imp
ii  libbz2-1.0          1.0.5-6              high-quality block-sorting file co
ii  libc6               2.11.2-7             Embedded GNU C Library: Shared lib
ii  libcamd2.2.0        1:3.4.0-2            symmetric approximate minimum degr
ii  libccolamd2.7.1     1:3.4.0-2            constrained column approximate lib
ii  libcholmod1.7.1     1:3.4.0-2            sparse Cholesky factorization libr
ii  libcolamd2.7.1      1:3.4.0-2            column approximate minimum degree 
ii  libcurl3-gnutls     7.21.2-1             Multi-protocol file transfer libra
ii  libcxsparse2.2.3    1:3.4.0-2            concise sparse matrix library (com
ii  libfftw3-3          3.2.2-1              library for computing Fast Fourier
ii  libfltk1.1          1.1.10-2+b1          Fast Light Toolkit - shared librar
ii  libfreetype6        2.4.2-2              FreeType 2 font engine, shared lib
ii  libftgl2            2.1.3~rc5-3          library to render text in OpenGL u
ii  libgcc1             1:4.4.5-6            GCC support library
ii  libgfortran3        4.4.5-6              Runtime library for GNU Fortran ap
ii  libgl1-mesa-glx [li 7.7.1-4              A free implementation of the OpenG
ii  libglpk0            4.43-1               linear programming kit with intege
ii  libglu1-mesa [libgl 7.7.1-4              The OpenGL utility library (GLU)
ii  libgomp1            4.4.5-6              GCC OpenMP (GOMP) support library
ii  libgraphicsmagick++ 1.3.12-1+b1          format-independent image processin
ii  libgraphicsmagick3  1.3.12-1+b1          format-independent image processin
ii  libhdf5-serial-1.8. 1.8.4-patch1-2       Hierarchical Data Format 5 (HDF5) 
ii  libice6             2:1.0.6-2            X11 Inter-Client Exchange library
ii  libjasper1          1.900.1-7+b1         The JasPer JPEG-2000 runtime libra
ii  libjpeg62           6b1-1                The Independent JPEG Group's JPEG 
ii  liblapack3gf [libla 3.2.2-1              library of linear algebra routines
ii  liblcms1            1.18.dfsg-1.2+b3     Color management library
ii  libltdl7            2.2.6b-2             A system independent dlopen wrappe
ii  libncurses5         5.7+20100313-4       shared libraries for terminal hand
ii  libpcre3            8.02-1.1             Perl 5 Compatible Regular Expressi
ii  libpng12-0          1.2.44-1             PNG library - runtime
ii  libqhull5           2009.1-1             calculate convex hulls and related
ii  libqrupdate1        1.0.1-1              Fast updates of QR and Cholesky de
ii  libreadline6        6.1-3                GNU readline and history libraries
ii  libsm6              2:1.2.0-1            X11 Session Management library
ii  libstdc++6          4.4.5-6              The GNU Standard C++ Library v3
ii  libtiff4            3.9.4-5              Tag Image File Format (TIFF) libra
ii  libumfpack5.4.0     1:3.4.0-2            sparse LU factorization library
ii  libwmf0.2-7         0.2.8.4-6.1+b1       Windows metafile conversion librar
ii  libx11-6            2:1.3.3-3            X11 client-side library
ii  libxext6            2:1.1.2-1            X11 miscellaneous extension librar
ii  libxml2             2.7.8.dfsg-1         GNOME XML library
ii  octave3.2-common    3.2.4-8              architecture-independent files for
ii  texinfo             4.13a.dfsg.1-6       Documentation system for on-line i
ii  zlib1g              1:1.2.3.4.dfsg-3     compression library - runtime

Versions of packages octave3.2 recommends:
ii  gnuplot                       4.4.0-1.1  A command-line driven interactive 
ii  libatlas3gf-base              3.8.3-28   Automatically Tuned Linear Algebra

Versions of packages octave3.2 suggests:
pn  octave3.2-doc                 <none>     (no description available)
pn  octave3.2-emacsen             <none>     (no description available)
ii  octave3.2-headers             3.2.4-8    header files for the GNU Octave la
pn  octave3.2-htmldoc             <none>     (no description available)
pn  octave3.2-info                <none>     (no description available)

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: octave3.2
Source-Version: 3.2.4-10

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

octave3.2-common_3.2.4-10_all.deb
  to main/o/octave3.2/octave3.2-common_3.2.4-10_all.deb
octave3.2-dbg_3.2.4-10_amd64.deb
  to main/o/octave3.2/octave3.2-dbg_3.2.4-10_amd64.deb
octave3.2-doc_3.2.4-10_all.deb
  to main/o/octave3.2/octave3.2-doc_3.2.4-10_all.deb
octave3.2-emacsen_3.2.4-10_all.deb
  to main/o/octave3.2/octave3.2-emacsen_3.2.4-10_all.deb
octave3.2-headers_3.2.4-10_amd64.deb
  to main/o/octave3.2/octave3.2-headers_3.2.4-10_amd64.deb
octave3.2-htmldoc_3.2.4-10_all.deb
  to main/o/octave3.2/octave3.2-htmldoc_3.2.4-10_all.deb
octave3.2-info_3.2.4-10_all.deb
  to main/o/octave3.2/octave3.2-info_3.2.4-10_all.deb
octave3.2_3.2.4-10.diff.gz
  to main/o/octave3.2/octave3.2_3.2.4-10.diff.gz
octave3.2_3.2.4-10.dsc
  to main/o/octave3.2/octave3.2_3.2.4-10.dsc
octave3.2_3.2.4-10_amd64.deb
  to main/o/octave3.2/octave3.2_3.2.4-10_amd64.deb



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 603046@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Weber <tweber@debian.org> (supplier of updated octave3.2 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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 15 May 2011 08:21:49 +0200
Source: octave3.2
Binary: octave3.2 octave3.2-doc octave3.2-htmldoc octave3.2-headers octave3.2-emacsen octave3.2-info octave3.2-dbg octave3.2-common
Architecture: source amd64 all
Version: 3.2.4-10
Distribution: unstable
Urgency: low
Maintainer: Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
Changed-By: Thomas Weber <tweber@debian.org>
Description: 
 octave3.2  - GNU Octave language for numerical computations (3.2 branch)
 octave3.2-common - architecture-independent files for octave3.2
 octave3.2-dbg - Debug symbols for octave3.2
 octave3.2-doc - PDF documentation on the GNU Octave language (3.2 branch)
 octave3.2-emacsen - Emacs support for the GNU Octave language (3.2 branch)
 octave3.2-headers - header files for the GNU Octave language (3.2 branch)
 octave3.2-htmldoc - HTML documentation on the GNU Octave language (3.2 branch)
 octave3.2-info - GNU Info documentation on the GNU Octave language (3.2 branch)
Closes: 603046
Changes: 
 octave3.2 (3.2.4-10) unstable; urgency=low
 .
   * New patches
     - fixes-for-gcc-4.6: GCC 4.6 no longer includes the headers that defined
     size_t automatically; and it doesn't like 'inline' in explicit
     instantiations either (closes: #603046). The latter bug isn't mentioned in
     the bug report, but was seen once the first bug was fixed. Thanks to Orion
     Poplawski from Fedora for the original patch.
     - avoid-implicit-conversion: explicitly convert strings to numbers
     (closes: 603046). Thanks to Kim Hansen for the patch.
Checksums-Sha1: 
 adba72fe69f7bee684f3f9f4307c43be3498f075 2011 octave3.2_3.2.4-10.dsc
 52ff464039dc6044452559015c01dca214394a84 68209 octave3.2_3.2.4-10.diff.gz
 0e1011cf54b2231c8327f599ee529852564b593a 9837978 octave3.2_3.2.4-10_amd64.deb
 768c0a1e09fd00cfebdc0064a6e93dc30c1ac404 536492 octave3.2-headers_3.2.4-10_amd64.deb
 333680a22170fe523e048812b9250ee8e8970b9b 82944560 octave3.2-dbg_3.2.4-10_amd64.deb
 62c0e7accb77212fb8ad7d8c3b6fea80970038aa 3204316 octave3.2-doc_3.2.4-10_all.deb
 041ca162f87e3b10acc89739e510589472ea2350 1037258 octave3.2-htmldoc_3.2.4-10_all.deb
 12f14a9cc3a352ed569ded58ce225f59cc08ea6e 110186 octave3.2-emacsen_3.2.4-10_all.deb
 bf79dbe97ecc8cbe28c7d806a1315dafd9cae569 561522 octave3.2-info_3.2.4-10_all.deb
 bd2298ff2408f99aec2b40d08cbf646d0ba4fee9 673098 octave3.2-common_3.2.4-10_all.deb
Checksums-Sha256: 
 2d9e3f6734aab99948c2390811c0af5154a7ba4bcd6e63b79bc362604a9c3e12 2011 octave3.2_3.2.4-10.dsc
 3a37b47bcd36ac4eb5fbded8a81f81c128e4eff421e8d74ba2c0116a672b9ef4 68209 octave3.2_3.2.4-10.diff.gz
 fe7c221e0eb48c6c017f72835d9b3e762c028b211c50a370b5f8a49076d751b8 9837978 octave3.2_3.2.4-10_amd64.deb
 7159cfb79f6bd136f6e6ae4369d7b31e40002986f639dc4cf983df60386586cc 536492 octave3.2-headers_3.2.4-10_amd64.deb
 355df5685572734ad081eb2a03cb14531e446afa20a3fecd5293c97cafab4c08 82944560 octave3.2-dbg_3.2.4-10_amd64.deb
 d5c216cd894f01b3b295b5fecfe51351ad2c656e6066db5446076bd0d3cd4137 3204316 octave3.2-doc_3.2.4-10_all.deb
 770d489fafe3daf947bc6b5c5c3cb8e06b481ca61224e112f237f1bdfe9071b1 1037258 octave3.2-htmldoc_3.2.4-10_all.deb
 151898705068d5702ab80b020de1c4147a086a163565e5bc20a9f3a3ce700bfa 110186 octave3.2-emacsen_3.2.4-10_all.deb
 83554e2170ef7e3ac57d754bf02fc9e074aa12393bc581b29fb877b5abe4dd80 561522 octave3.2-info_3.2.4-10_all.deb
 b2f71a52fa531953c54b6ee5c48978a55e8f9cd755162876ddba60bf7ec42644 673098 octave3.2-common_3.2.4-10_all.deb
Files: 
 6384fcded9ed5f32c20dc4cac1a3eaac 2011 math optional octave3.2_3.2.4-10.dsc
 19abf93769f7a83edf029717b81e9520 68209 math optional octave3.2_3.2.4-10.diff.gz
 47bb334f5f6232d1a8a6ef992fb3f58d 9837978 math optional octave3.2_3.2.4-10_amd64.deb
 01845443d60f1f338c1629bb8ac74d37 536492 math optional octave3.2-headers_3.2.4-10_amd64.deb
 839a0a4b4f30e8cd3b8c22119a9d6c3d 82944560 debug extra octave3.2-dbg_3.2.4-10_amd64.deb
 7f5fe0038c482c8a4cfd888fa351ec5e 3204316 doc optional octave3.2-doc_3.2.4-10_all.deb
 e0e6b8c9176d505defb5b2be231d1dc1 1037258 doc optional octave3.2-htmldoc_3.2.4-10_all.deb
 da371d4f8d3b8aa5117e56e95b8112b7 110186 math optional octave3.2-emacsen_3.2.4-10_all.deb
 c72aeb7b3e91cd6796c4c74bb54d8f39 561522 math optional octave3.2-info_3.2.4-10_all.deb
 50e5337c071580a669ed88fa677a7bdb 673098 devel extra octave3.2-common_3.2.4-10_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk3PiqwACgkQPqD4a3lPnXw3AwCeNoVx4QfMQDZX3ho/JXlEbUKk
/aMAnAvYrBj63W5LoFq8cuWDClQWqGvd
=8sTC
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: