Bug#718392: [Bug-glpk] [Fwd: glp_prob_read_lp fails reading compressed (.gz) files]

Andrew Makhorin mao at gnu.org
Fri Aug 2 00:04:10 UTC 2013


> 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.
> 
> See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718392
> 

Thank you for your bug report.

To fix the bug please replace file glpk-4.52.1/src/glpenv07.c with a
patched version (see attachment) and then recompile the package as
usual.


Andrew Makhorin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: glpenv07.c.gz
Type: application/x-gzip
Size: 3740 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20130802/de287fee/attachment-0001.bin>


More information about the debian-science-maintainers mailing list