[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52]
From: |
Andrew Makhorin |
Subject: |
[Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52] |
Date: |
Wed, 27 Nov 2013 11:18:35 +0400 |
-------- Forwarded Message --------
From: Carlo Baldassi <address@hidden>
To: address@hidden
Cc: Miles Lubin <address@hidden>
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] [Fwd: segfault reading a compressed mps file in 4.52],
Andrew Makhorin <=
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Raniere Silva, 2013/11/27
- Message not available
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Carlo Baldassi, 2013/11/28
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Andrew Makhorin, 2013/11/28
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Carlo Baldassi, 2013/11/28
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Carlo Baldassi, 2013/11/28
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Andrew Makhorin, 2013/11/28
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Heinrich Schuchardt, 2013/11/28
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Andrew Makhorin, 2013/11/28
- Re: [Bug-glpk] [Fwd: segfault reading a compressed mps file in 4.52], Carlo Baldassi, 2013/11/28