<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<span style="white-space: pre-wrap">
</span>
<blockquote type="cite"
cite="mid:PAXPR07MB77754011AA9310C37BCE0B9CA2202@PAXPR07MB7775.eurprd07.prod.outlook.com">
<pre class="moz-quote-pre" wrap="">
At #10 we can see the variable nNum set to a non-sense megabignumber.</pre>
</blockquote>
<p>Is it on a -DCMAKE_BUILD_TYPE=Debug build ? Otherwise stack
traces and variable content in the debugger might look like
garbage because of optimizations.<br>
</p>
<p>If it is a debug build, then there's likely some memory
corruption or uninitialized variable in your code. Valgrind is
generally a great tool to spot that. Otherwise add good old
printf() statements to track down where the corruption starts. And
given your Python sample code, I assume you could more easily
reproduce the issue in a pure native context, just running
"ogrinfo -al -q
autotest/ogr/data/miramon/Polygons/SimplePolygons/SimplePolFile.pol"
(if it doesn't crash, try running it under gdb or valgrind)<br>
</p>
<span style="white-space: pre-wrap">
</span>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>