[Pkg-octave-devel] Bug#350230: marked as forwarded (octave2.9: glpk() fails on sparse matrices)

Debian Bug Tracking System owner at bugs.debian.org
Sat Jan 28 14:48:32 UTC 2006


Your message dated Sat, 28 Jan 2006 15:21:37 +0100
with message-id <20060128142137.GA2168 at laboiss2>
has caused the Debian Bug report #350230,
regarding octave2.9: glpk() fails on sparse matrices
to be marked as having been forwarded to the upstream software
author(s) bug at octave.org.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

---------------------------------------
Received: (at 350230-forwarded) by bugs.debian.org; 28 Jan 2006 14:21:40 +0000
>From laboissiere at cbs.mpg.de Sat Jan 28 06:21:40 2006
Return-path: <laboissiere at cbs.mpg.de>
Received: from kom.psy.mpg.de ([192.129.1.23] helo=kom.mpipf-muenchen.mpg.de)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1F2qxP-00085q-OY; Sat, 28 Jan 2006 06:21:40 -0800
Received: from amalie.intra.mpipf-muenchen.mpg.de ([10.1.1.2])
	by kom.mpipf-muenchen.mpg.de with esmtps (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.50)
	id 1F2qxN-0006vx-Iu; Sat, 28 Jan 2006 15:21:37 +0100
Received: from [10.80.1.253] (helo=laboiss2)
	by amalie.intra.mpipf-muenchen.mpg.de with esmtp (Exim 4.05)
	id 1F2qxN-0002Pf-00; Sat, 28 Jan 2006 15:21:37 +0100
Received: from rafael by laboiss2 with local (Exim 3.36 #1 (Debian))
	id 1F2qxN-0005uc-00; Sat, 28 Jan 2006 15:21:37 +0100
Date: Sat, 28 Jan 2006 15:21:37 +0100
From: Rafael Laboissiere <rafael at debian.org>
To: bug at octave.org
Cc: control at bugs.debian.org, kimhanse+reportbug at gmail.com,
	350230-forwarded at bugs.debian.org
Subject: Bug#350230: octave2.9: glpk() fails on sparse matrices
Message-ID: <20060128142137.GA2168 at laboiss2>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: Debian GNU/Linux
User-Agent: Mutt/1.5.9i
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-13.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
	HAS_PACKAGE,VALID_BTS_CONTROL autolearn=ham 
	version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

package octave2.9
tags 350230 upstream pending
thank


I confirm both the bug and the patch submitted below against the
octave2.9 Debian package (version 2.9.4-11).  Please consider fixing it
in CVS.

-- 
Rafael Laboissiere


----- Forwarded message from Kim Hansen <k-reportbug at oek.dk> -----

From: Kim Hansen <k-reportbug at oek.dk>
Subject: [Pkg-octave-devel] Bug#350230: octave2.9: glpk() fails on sparse
	matrices
Date: Sat, 28 Jan 2006 04:36:21 +0100
To: Debian Bug Tracking System <submit at bugs.debian.org>
Reply-To: Kim Hansen <k-reportbug at oek.dk>, 350230 at bugs.debian.org

Package: octave2.9
Version: 2.9.4-11
Severity: normal
Tags: patch


glpk() fails on sparse matrices with a coredump, I have attached a patch
that fixes it.

Regards,
Kim Hansen

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-486
Locale: LANG=en_DK, LC_CTYPE=da_DK (charmap=ISO-8859-1)

--- __glpk__.cc.orig	2006-01-28 03:18:23.000000000 +0000
+++ __glpk__.cc	2006-01-28 03:19:58.000000000 +0000
@@ -482,7 +482,7 @@
     }
   else
     {
-      SparseMatrix A (args(1).matrix_value ()); // get the sparse matrix
+      SparseMatrix A = args(1).sparse_matrix_value (); // get the sparse matrix
 
       if (error_state)
 	{
@@ -509,7 +509,7 @@
 	    nz++;
 	    rn(nz) = A.ridx(i) + 1;
 	    cn(nz) = j + 1;
-	    a(nz) = A(i,j);
+	    a(nz) = A.data(i);
 	  }
     }
 

_______________________________________________
Pkg-octave-devel mailing list
Pkg-octave-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-octave-devel


----- End forwarded message -----
----- Forwarded message from Kim Hansen <kim at i9.dk> -----

From: Kim Hansen <kim at i9.dk>
Subject: [Pkg-octave-devel] Bug#350230: octave2.9: script that triggers bug
Date: Sat, 28 Jan 2006 12:51:11 +0100
To: Debian Bug Tracking System <350230 at bugs.debian.org>
Reply-To: kimhanse+reportbug at gmail.com, 350230 at bugs.debian.org

Package: octave2.9
Version: 2.9.4-11
Followup-For: Bug #350230

this script triggers the bug

======================
c=[-2;-1]
b=[5;7;12;8]
A=[1 1;1 0;3 1;1 2]
As=sparse(A)

printf('\n%s\n', 'Solution should be x=[3.5; 1.5], and the cost is -8.5');

## Works
x = glpk(c, A, b, zeros(size(c,1),1), [], (char('U'*ones(1,size(b,1)))))
c' * x

## Fails
xs = glpk(c, As, b, zeros(size(c,1),1), [], (char('U'*ones(1,size(b,1)))))
c' * xs
======================


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-486
Locale: LANG=en_DK, LC_CTYPE=da_DK (charmap=ISO-8859-1)

Versions of packages octave2.9 depends on:
ii  atlas3-base [liblapack.so.3]  3.6.0-20   Automatically Tuned Linear Algebra
ii  fftw3                         3.0.1-14   library for computing Fast Fourier
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-7  GCC support library
ii  libgfortran0                  4.0.2-7    Runtime library for GNU Fortran ap
ii  libglpk0                      4.8-3      linear programming kit (shared lib
ii  libhdf5-serial-1.6.4-0c2 [lib 1.6.4-4    Hierarchical Data Format 5 (HDF5) 
ii  libncurses5                   5.5-1      Shared libraries for terminal hand
ii  libreadline5                  5.1-5      GNU readline and history libraries
ii  libstdc++6                    4.0.2-7    The GNU Standard C++ Library v3
ii  libumfpack4                   4.4-3      set of routines for solving unsymm
ii  texinfo                       4.8-4      Documentation system for on-line i
ii  zlib1g                        1:1.2.3-9  compression library - runtime

octave2.9 recommends no packages.

-- no debconf information


_______________________________________________
Pkg-octave-devel mailing list
Pkg-octave-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-octave-devel



----- End forwarded message -----





More information about the Pkg-octave-devel mailing list