[Gambas-user] Debugging Gambas (again)

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat Apr 27 00:46:13 CEST 2019


It is Gambas problem when there is segmentation fault from native Gambas
code.


Jussi

On Fri, Apr 26, 2019 at 10:41 PM Cedron Dawg <cedron at exede.net> wrote:

> I'm not understanding the need for deep-diving debugging here.
>
> 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.
>
> 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.
>
> Perhaps you should post a part of your code around the problem area and
> somebody might spot what is going on.
>
> On the other hand, if you are interested in these advanced debugging
> techniques in their own right, forget everything I said.
>
> Ced
>
> For upgrading your Gambas, doesn't the PPA (team-gambas/gambas3) work for
> you?  You shouldn't need to compile it yourself.
>
>
> ----- Original Message -----
> From: "KKing" <kicking177 at gmail.com>
>
> ...
>
> So I'm back to trying to establish why a large application ported from
> powerbasic is failing with a segmentation fault.
>
> Please note I am not looking for anyone to tell me the problem with my
> code, I am looking for guidance on how to go about debugging a Gambas
> application.
>
> ....
>
> My next steps are likely to be to grab the latest version of Gambas
> source and compile that on a Debian 9 64bit unit, and assuming it still
> fails, repeat the above.
>
> Does that sound reasonable, anything else I should do differently?
>
> K.
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190427/7f21be01/attachment-0001.html>


More information about the User mailing list