|
From: | Jiří Spitz |
Subject: | Re: [Bug-glpk] Segfault in jday function |
Date: | Mon, 01 Jul 2013 17:18:13 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
Andrew Makhorin wrote:
The exception happens in a Posix version of glp_time function. It is difficult to say what is wrong, most likely it is some MINGW64 inconsistency, because under GNU/Linux this code works. To fix the bug you may simply to disable using the configuration header (created by the configure script) by replacing the fragment in file glpk-4.51/src/env/time.c, lines 24-26: #ifdef HAVE_CONFIG_H #include <config.h> #endif with the following one: #if 0 #include <config.h> #endif In this case an ANSI portable version will be used, which should work on any platform. Hope this helps.
Yes, this workaround works fine.
Since I didn't change anything in the glpk source and the message is not displayed when glpk runs outside GDB, the message has to come from GDB.BTW, who displays the message "warning: Invalid parameter passed to C runtime function." ? It is not a glpk message.
Thanks, Jiri
[Prev in Thread] | Current Thread | [Next in Thread] |