[Top][All Lists]

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

Re: [Help-glpk] Calling the same LP repeatedly - segmentation fault

From: Heinrich Schuchardt
Subject: Re: [Help-glpk] Calling the same LP repeatedly - segmentation fault
Date: Fri, 6 May 2016 21:50:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0

Hello Krishna,

if you want to analyze the problem under Linux a good tool is valgrind.

If you want somebody on the list to find out what is going wrong,
please, supply a complete reproducable example together with the
following information:

operating system used including bitness (32bit or 64bit)
GLPK version used
compiler version used.

The code snippet you supplied yesterday is insufficient to understand
the problem you are facing.

Best regards

Heinrich Schuchardt

On 05/06/2016 08:08 PM, Krishna wrote:
> Andrew Makhorin <mao <at>> writes:
>> To deallocate the problem object you should call glp_delete_prob(lp),
>> not glp_free.
> Hi Andrew,
> Thank you, I did try that too to deallocate the problem, I just didn't 
> post it here. Anyway, I am trying to figure out why alloc.c is causing a 
> segmentation fault. 
> I am doing a Binary search in the C program and if the bound is not 
> satisfied, the LP has to be called again and again until the bound is 
> satisfied. Only the fist call to the LP works fine. When the LP is called 
> after creating the problem and deleting it, create_prob() is trigerring 
> the seg fault. This is a very important step in my simulations and this 
> issue has been stalling me for 3 days now. I have looked up extensively 
> but found nothing, please help me understand what I am doing wrong and if 
> the seg fault can be fixed. I really appreciate any help! 
> Thank you,
> Krishna
> _______________________________________________
> Help-glpk mailing list
> address@hidden

reply via email to

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