-------- Forwarded Message -------- From: Carlo Baldassi <[email protected]> To: [email protected] Cc: Miles Lubin <[email protected]> Subject: segfault reading a compressed mps file in 4.52 Date: Tue, 26 Nov 2013 19:08:35 +0100
Using GLPK 4.52, glp_read_mps fails with a segfault on this file: https://github.com/mlubin/SimplexBenchmarks/raw/master/GenerateData/greenbea.gz uncompressing it works fine. Also, GLPK 4.48 works fine on the compressed file, so the bug was introduced between these versions. I'm testing on 64bit Linux (Ubuntu 13.04). zlib version is 1.2.7. Here is a sample C file which reproduces the problem: #include <stdio.h> #include <stdlib.h> #include <glpk.h> int main() { glp_prob * lp; lp = glp_create_prob(); glp_read_mps(lp, GLP_MPS_DECK, NULL, "greenbea.gz"); glp_delete_prob(lp); return 0; } Here is the output: $ glpktst Reading problem data from `greenbea.gz'... Segmentation fault (core dumped) Best regards Carlo Baldassi _______________________________________________ Bug-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-glpk
