<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear Xiangyong,</p>
<p>First of all this is not specific to SCIP: If you encounter a
segmentation fault in C/C++ you should use a debugger and valgrind
to find out where the memory access violation occurs.</p>
<p>In this particular case I guess the problem could be related to
the use of block memory. Particularly the block memory in SCIP
requires to give the correct sizes of an allocation when it is
freed. E.g. when you do<br>
</p>
<p>SCIP_CALL( SCIPallocBlockMemoryArray(scip, &array, N) );</p>
<p>...</p>
<p>SCIPfreeBlockMemoryArray(scip, &array, N);</p>
<p>It is very important that N has the same value in both calls. To
debug this you can add the preprocessor define CHECKCHKFREE via
compiler flags or by uncommenting the define in
src/blockmemshell/memory.c within SCIP.</p>
<p>Best,</p>
<p>Robert<br>
</p>
n 03/08/2018 10:29 AM, <a class="moz-txt-link-abbreviated" href="mailto:lixiangyong@163.com">lixiangyong@163.com</a> wrote:<br>
<blockquote type="cite" cite="mid:2018030817293699652110@163.com">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style>Dear
all,
<div><br>
</div>
<div>My program could work when I compiled it
with NOBLKBUFMEM=true.</div>
<div><br>
</div>
<div>If I removed NOBLKBUFMEM=true, the program terminated with
error of "segment fault." </div>
<div><br>
</div>
<div>What is the problem?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Xiangyong</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="https://listserv.zib.de/mailman/listinfo/scip">https://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</blockquote>
<br>
</body>
</html>