[Top][All Lists]

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

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

From: Andrew Makhorin
Subject: [Bug-glpk] [Fwd: glp_prob_read_lp fails reading compressed (.gz) files]
Date: Fri, 02 Aug 2013 03:05:46 +0400

-------- Forwarded Message --------
From: Achim G├Ądke <address@hidden>
To: address@hidden
Subject: glp_prob_read_lp fails reading compressed (.gz) files
Date: Fri, 2 Aug 2013 09:11:41 +1200

Hi there!

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

Best regards, Achim

Attachment: glpk_bug_read_gz.c
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]