<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Understanding why sig11 is bug in Gambas requires some understanding of how modern operating systems and how interpreted languages like Gambas work.</div><div> <a href="https://en.wikipedia.org/wiki/Memory_protection">https://en.wikipedia.org/wiki/Memory_protection</a></div><div><a href="https://en.wikipedia.org/wiki/Bytecode">https://en.wikipedia.org/wiki/Bytecode</a></div><div><br></div><div>Only way this could not be bug in Gambas (it may very well be <b>also</b> bug in the OPs code), is that the OP is calling external function written in some other language and the error comes from there, but by quick look it doesn't look like that.</div><div><br></div><div><br></div><div>Jussi<br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 27, 2019 at 2:27 AM Cedron Dawg <<a href="mailto:cedron@exede.net">cedron@exede.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ideally that is true. You shouldn't be able to throw anything at the underlying code and have it seg fault. Nor am I ruling out some sort of Gambas bug in this situation. But what is the difference between a seg fault and some other sort of cleaner error exit in this case? (Assuming the OP's source code is flawed)<br>
<br>
The fact that it happens as "after a certain number of entries the program fails" indicates either a capacity issue or a bad case scenario. If it failed the first time, then go looking for an obvious Gambas bug.<br>
<br>
My bet is that the problem ends up being in the OP's code, and maybe he's found a place where Gambas needs to be better fool-proofed. However, adding parameter validation testing to every function call is a questionable endeavor.<br>
<br>
Just 2 cents. I am curious about how this turns out.<br>
<br>
<br>
----- Original Message -----<br>
From: "Jussi Lahtinen" <<a href="mailto:jussi.lahtinen@gmail.com" target="_blank">jussi.lahtinen@gmail.com</a>><br>
To: "user" <<a href="mailto:user@lists.gambas-basic.org" target="_blank">user@lists.gambas-basic.org</a>><br>
Sent: Friday, April 26, 2019 6:46:13 PM<br>
Subject: Re: [Gambas-user] Debugging Gambas (again)<br>
<br>
It is Gambas problem when there is segmentation fault from native Gambas code. <br>
<br>
<br>
Jussi <br>
<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>