probably endless loop printing result of expansion

0 views
Skip to first unread message

marcomaggi

unread,
Oct 18, 2010, 7:31:49 AM10/18/10
to Mosh Developer Disscus
It happens to me that when I recompile my libraries mosh prints what
appears to be the result of a file expansion (a long S-expression).
Have you included a print statement in an attempt to debug a known
problem? Notice that it does not happen when I compile starting from
an empty "~/.mosh", rather it happens only when, after having modified
a file, I recompile using a "compile all" script.

I have to do more investigations to find the cause of this, it seems
that it happens only with a "complicated" hierarchy of libraries.
--
Marco Maggi

higepon

unread,
Oct 18, 2010, 7:36:39 AM10/18/10
to mosh-develo...@googlegroups.com
Hi.

I've not seen the problem.
You are the one of heavy mosh users.
If you find some clue, please let me know.

Cheers.

> --
> You received this message because you are subscribed to the Google Groups "Mosh Developer Disscus" group.
> To post to this group, send email to mosh-develo...@googlegroups.com.
> To unsubscribe from this group, send email to mosh-developer-di...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mosh-developer-discuss?hl=en.
>
>

marcomaggi

unread,
Oct 18, 2010, 2:22:46 PM10/18/10
to Mosh Developer Disscus
It seems the S-exp is printed by:

(when verbose?
(format (current-error-port)
"WARNING: library ~s has an inconsistent dependency \
on library ~s; file ~s will be recompiled from \
source. l=~a label=~a (library-id l)=~a\n"
name dname filename l label (library-id l)))

in "/boot/runtimes/psyntax-mosh/psyntax/library-manager.ss"
or some library derived from that. The S-exp is written
only when I use the "--verbose" command line argument; maybe
setting that "verbose?" variable to true is too much when
"--verbose" is used: it is unlikely that a human can do
something with the S-exp dump.

Also, from eye analysis of the output, it may be that
sometimes FORMAT enters an infinite loop while printing one
of the arguments.
--
Marco Maggi

higepon

unread,
Oct 18, 2010, 11:17:25 PM10/18/10
to mosh-develo...@googlegroups.com
Hi.

Thank you for your information.

Changed and committed verbose mode to use shared structure aware
output format using ~e.
Would you try in on master?

Cheers.

marcomaggi

unread,
Oct 20, 2010, 2:32:43 PM10/20/10
to Mosh Developer Disscus
On Oct 19, 5:17 am, higepon <hige...@gmail.com> wrote:
> Changed and committed verbose mode to use shared structure aware
> output format using ~e.
> Would you try in on master?

Thanks I do not see the endless loop anymore, but is it useful to
print the full S-expression? For the "--verbose" option it should be
enough to print the "library will be recompiled" message; the S-
expression dump belongs to a debug mode. I compile with "--verbose"
with the purpose of seeing at which point an error shows up, but if
the screen is full of S-expressions (several screens on my xterms) I
cannot follow what happens anymore.
--
Marco Maggi

higepon

unread,
Oct 21, 2010, 9:01:00 AM10/21/10
to mosh-develo...@googlegroups.com
Sounds reasonable.
I don't remeber the reason why S-exp to be printed.
Fixed on master head.
http://github.com/higepon/mosh/commit/dbe442800118fec45e06f975b0e27aee92e8cd92

Cheers.

Reply all
Reply to author
Forward
0 new messages