GNU bug report logs - #68895
Difference between trace behavior in guix repl and guile

Previous Next

Package: guix;

Reported by: Adriel Dumas--Jondeau <leirda <at> disroot.org>

Date: Fri, 2 Feb 2024 16:28:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Suhail Singh <suhailsingh247 <at> gmail.com>
Cc: Guix-devel mailing list <guix-devel <at> gnu.org>, 45mg <45mg.writes <at> gmail.com>, 68895 <at> debbugs.gnu.org, Adriel Dumas--Jondeau <leirda <at> disroot.org>
Subject: bug#68895: Difference between trace behavior in guix repl and guile
Date: Tue, 21 Jan 2025 23:15:03 +0900
Hello,

Suhail Singh <suhailsingh247 <at> gmail.com> writes:

> Suhail Singh <suhailsingh247 <at> gmail.com> writes:
>
>>> It looks like this isn't the only REPL command that doesn't work in
>>> `guix repl`. I haven't done anything close to a full investigation (I am
>>> new to using Guile!), but many other commands simply don't work.
>>
>> Thank you for your investigation.  I am cc-ing guix-devel in case they
>> have insight regarding these.
>
> Whoops, sent too quickly.  Current (probably inexhaustive) list:
>
> - trace
> - tracepoint
> - break

Perhaps Guix configures Guile to use the no-debug VM even for the REPL?
Se the '--no-debug' documentation in info '(guile) Command-line
Options':

   ‘--debug’
        Start with the debugging virtual machine (VM) engine.  Using the
        debugging VM will enable support for VM hooks, which are needed for
        tracing, breakpoints, and accurate call counts when profiling.  The
        debugging VM is slower than the regular VM, though, by about ten
        percent.  *Note VM Hooks::, for more information.

        By default, the debugging VM engine is only used when entering an
        interactive session.  When executing a script with ‘-s’ or ‘-c’,
        the normal, faster VM is used by default.

Indeed, if you look at the shebang of scripts/guix.in, which is the
template for the 'guix' entry point script, it uses the '-s' argument.

I'm not sure if there's a way to enable the debug VM after Guile was
started in the equivalent of --no-debug.

-- 
Thanks,
Maxim




This bug report was last modified 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.