Re: SWI-Prolog : Out Of Local Stack



On 2006-09-20, roschler <robert.oschler@xxxxxxxxx> wrote:
Jan Wielemaker wrote:
On 2006-09-17, roschler <robert.oschler@xxxxxxxxx> wrote:


call(PredCall) is certainly not better than simply PredCall. Looks like
a bug in the debugger. Please report, preferably to the SWI-Prolog
bugzilla system. Include a *complete* program, not just a snippet. Also
include the version, as there have been some recent changes to the
debugger.

--- Jan

Jan,

I have entered a bug report with a complete test program into
SWI-Prolog BugZilla; just follow the reported steps.

Fixed. See updated bug report (and mail if all went as it should).

In the meantime, is the main liability in using call/1 simply speed,
since it's an interpretive call and not compiled?

call(X) and X are the same. The current version simply defines

call(X) :- X.

Also, is there a way to tell from Prolog code if the code is currently
being traced in the GUI debugger? If there is, and it's not too
ridiculous, I could create a call like:

safe_call(Goal) :-
is_gui_tracing_active,
!,
call(Goal).
safe_call(Goal) :-
\+ is_gui_tracing_active,
!,
Goal.

Too silly?

Bugs should be fixed at the right place. You can check whether the
tracer is active using tracing/0 and the gui tracer using
current_prolog_flag(gui_tracer, true). Very exceptional cases
aside, never use this in your application.

Thanks for reporting --- Jan
.



Relevant Pages

  • Re: Bug in debugger (or my code): Bizarre copy of ARRAY...
    ... Your code looks very much like Perl 4. ... > After switching the debugger on: ... I have no idea why they syntax you used doesn't report an error or ... > Do I still have a bug in my code though it works and I do not see where it ...
    (comp.lang.perl.misc)
  • Re: SWI-Prolog : Out Of Local Stack
    ... a bug in the debugger. ... Please report, preferably to the SWI-Prolog ... bugzilla system. ... SWI-Prolog BugZilla; ...
    (comp.lang.prolog)
  • Re: Bug in debugger (or my code): Bizarre copy of ARRAY...
    ... Do I still have a bug in my code though it ... > works and I do not see where it could be or is that a debugger bug? ... the latest version of perl, please report it to the Perl 5 Porters list. ...
    (comp.lang.perl.misc)
  • Re: spectacular crash
    ... Last time I tried to report a bug, QC tried to install an EXE on my system ... I do not consider it a big problem that the debugger has trouble ... displaying a 256 MB array, even though my PC has 6 times more RAM than that. ...
    (borland.public.delphi.non-technical)
  • Re: [patch] scsi: revert "[SCSI] Get rid of scsi_cmnd->done"
    ... Noone knows how many thousand bug reports have never reached lkml ... filing or get back to terminate the report. ... But I would like kernel people to become less egocentric ... Send _one_ email to lkml and you'll get forever spam to this address. ...
    (Linux-Kernel)