<div dir="ltr"><div>It is Gambas problem when there is segmentation fault from native Gambas code.</div><div><br></div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 26, 2019 at 10:41 PM 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">I'm not understanding the need for deep-diving debugging here.<br>
<br>
You have some code that is blowing up.  It doesn't blow up immediately, so you know it isn't an obvious inherent Gambas problem.  Something must be different in the call that blows up vs the calls that don't.  That something is in your code, and you need to find it.  It seems to me, tracing the blowup into the internals of Gambas to see what actually blows, so you can deduce what you did in your code to make that happen is a cumbersome way to go about it.<br>
<br>
Traditional source code level debugging, e.g. print statements, breakpoints, and watch variables, should help you find your problem.  The most I can see arising from doing the debugging down to the Gambas code itself, is to formulate a recommendation for one more safety check in the code.  Depending upon what the problem is, this may or may not be something that needs fixing.  But, you still know you have a problem in your code.<br>
<br>
Perhaps you should post a part of your code around the problem area and somebody might spot what is going on.<br>
<br>
On the other hand, if you are interested in these advanced debugging techniques in their own right, forget everything I said.<br>
<br>
Ced<br>
<br>
For upgrading your Gambas, doesn't the PPA (team-gambas/gambas3) work for you?  You shouldn't need to compile it yourself.<br>
<br>
<br>
----- Original Message -----<br>
From: "KKing" <<a href="mailto:kicking177@gmail.com" target="_blank">kicking177@gmail.com</a>><br>
<br>
...<br>
<br>
So I'm back to trying to establish why a large application ported from <br>
powerbasic is failing with a segmentation fault.<br>
<br>
Please note I am not looking for anyone to tell me the problem with my <br>
code, I am looking for guidance on how to go about debugging a Gambas <br>
application.<br>
<br>
....<br>
<br>
My next steps are likely to be to grab the latest version of Gambas <br>
source and compile that on a Debian 9 64bit unit, and assuming it still <br>
fails, repeat the above.<br>
<br>
Does that sound reasonable, anything else I should do differently?<br>
<br>
K.<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>
<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>