[Scip] Receiving segmentation fault when calling SCIPallocBufferArray

贺行遒 hexqiu at hotmail.com
Mon May 18 10:06:11 CEST 2015


Oops. I already found where it went wrong. 
I called SCIPallocBufferArray(subscip, &somearray, nsomearray);
The 'subscip' should be 'scip' here.
I forgot to modify this when reconstructing my code.

Sorry to bother you. 
Wish you all have a nice day!

From: hexqiu at hotmail.com
To: scip at zib.de
Subject: Receiving segmentation fault when calling SCIPallocBufferArray
Date: Mon, 18 May 2015 15:58:34 +0800







Hello all,

Just as the title says, my program received signal SIGSEGV during the running process.

I put the bin file into gdb and it said the error occured when allocating memory by calling SCIPallocBufferArray().

I don't know what's go wrong and how I can handle this problem. Could any of you give me some advice?
Thanks a lot!

Several lines of debugging infomation given by gdb are listed below:

Program received signal SIGSEGV, Segmentation fault.
0x082fd3e1 in SCIPallocBufferSize (scip=0xb7cc0ba5 <_IO_file_write+69>, ptr=0xbfffd3a4, size=64) at src/scip/scip.c:38056
38056       SCIP_CALL( SCIPsetAllocBufferSize(scip->set, ptr, size) );
(gdb) p ptr
$3 = (void **) 0xbfffd3a4
(gdb) bt
#0  0x082fd3e1 in SCIPallocBufferSize (scip=0xb7cc0ba5 <_IO_file_write+69>, ptr=0xbfffd3a4, size=64) at src/scip/scip.c:38056
#1  0x08052734 in pricerRedcostOAAR (scip=0x89f6238, pricer=0x8a0e180, lowerbound=0xbfffe188, stopearly=0xbfffe19c, result=0xbfffe194)
    at src/pricer_OAAR.c:648

Best Regards,
He Xingqiu




 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20150518/8acbee0e/attachment.html>


More information about the Scip mailing list