Bug#718392: libglpk0: glp_prob_read_lp fails reading compressed (.gz) files

Achim Gaedke Achim.Gaedke at gmail.com
Wed Jul 31 01:43:12 UTC 2013


Package: libglpk0
Version: 4.45-1
Severity: normal
Tags: upstream

please compile and run glpk_bug_read_gz.c
$ gcc glpk_bug_read_gz.c -lglpk -o glpk_bug_read_gz

The program is based on glpk-4.52.1/examples/sample.c and contains various write/read commands.
The write/read pair fails (it is the only one).

      fprintf(stdout, "glpk version %s\n", glp_version());
      glp_write_lp(lp, NULL, "temp_lp.gz");
      glp_read_lp(lp, NULL, "temp_lp.gz");

The terminal output for this program reads:
$ ./glpk_bug_read_gz 
glpk version 4.52
Writing problem data to 'temp_lp.gz'...
11 lines were written
Reading problem data from 'temp_lp.gz'...
temp_lp.gz:12: read error - 

The bug is reproduced with glpk-4.45 as well.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.9-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libglpk0 depends on:
ii  libc6     2.17-7
ii  libgmp10  2:5.1.2+dfsg-2
ii  libltdl7  2.4.2-1.3
ii  zlib1g    1:1.2.8.dfsg-1

libglpk0 recommends no packages.

Versions of packages libglpk0 suggests:
ii  libiodbc2-dev       3.52.7-3
ii  libmysqlclient-dev  5.5.31+dfsg-1

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glpk_bug_read_gz.c
Type: text/x-c
Size: 2256 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20130731/5de8e66b/attachment-0001.bin>


More information about the debian-science-maintainers mailing list