* bug#10336: Holidays vs. release
2012-01-25 16:10 ` Ludovic Courtès
@ 2012-01-25 18:07 ` Andy Wingo
2012-01-26 4:40 ` dsmich
2012-01-25 20:34 ` Ludovic Courtès
2012-01-27 18:36 ` bug#10336: lexical vars are collectable test is failing Andy Wingo
2 siblings, 1 reply; 9+ messages in thread
From: Andy Wingo @ 2012-01-25 18:07 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 10336
Hi Ludovic,
I pushed a couple patches that should help this bug out, though for some
reason I wasn't able to reproduce the issue before. I wonder why.
On Wed 25 Jan 2012 17:10, ludo@gnu.org (Ludovic Courtès) writes:
> So I looked into it, and there’s at least one thing wrong: the test must
> be compiled with #:partial-eval? #f, otherwise the ‘let’ vanishes, which
> defeats the test.
Indeed. I think I fixed that now.
> Second thing, it suffices to insert a function call like
> ((lambda (x) #f) #f) just before calls to ‘gc’ to solve the problem.
Strange. Another thing was that the function was a constant, not a
closure, so it wasn't going to be collectable in the first place.
Can you retry the test now, Dale?
Thanks,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#10336: Holidays vs. release
2012-01-25 18:07 ` Andy Wingo
@ 2012-01-26 4:40 ` dsmich
0 siblings, 0 replies; 9+ messages in thread
From: dsmich @ 2012-01-26 4:40 UTC (permalink / raw)
To: Ludovic Courtès, Andy Wingo; +Cc: 10336
---- Andy Wingo <wingo@pobox.com> wrote:
> Hi Ludovic,
>
> I pushed a couple patches that should help this bug out, though for some
> reason I wasn't able to reproduce the issue before. I wonder why.
>
> On Wed 25 Jan 2012 17:10, ludo@gnu.org (Ludovic Courtès) writes:
>
> > So I looked into it, and there’s at least one thing wrong: the test must
> > be compiled with #:partial-eval? #f, otherwise the ‘let’ vanishes, which
> > defeats the test.
>
> Indeed. I think I fixed that now.
>
> > Second thing, it suffices to insert a function call like
> > ((lambda (x) #f) #f) just before calls to ‘gc’ to solve the problem.
>
> Strange. Another thing was that the function was a constant, not a
> closure, so it wasn't going to be collectable in the first place.
>
> Can you retry the test now, Dale?
Sure. v2.0.3-190-gf5e772b still has the same failure.
-Dale
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#10336: Holidays vs. release
2012-01-25 16:10 ` Ludovic Courtès
2012-01-25 18:07 ` Andy Wingo
@ 2012-01-25 20:34 ` Ludovic Courtès
2012-01-25 23:05 ` Andy Wingo
2012-01-27 18:36 ` bug#10336: lexical vars are collectable test is failing Andy Wingo
2 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2012-01-25 20:34 UTC (permalink / raw)
To: dsmich; +Cc: 10336
Hello,
Andy Wingo <wingo@pobox.com> skribis:
> I pushed a couple patches that should help this bug out,
As I wrote, it doesn’t solve the problem. :-/
However, I suspect it’s just one or two words on the stack that fail to
be cleared, which is why I ended up looking at the assembly in search of
a real bug.
> Can you retry the test now, Dale?
It’s retried at every commit. ;-)
http://hydra.nixos.org/jobset/gnu/guile-2-0/
(It’s on i686-linux-gnu.)
Ludo’.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#10336: Holidays vs. release
2012-01-25 20:34 ` Ludovic Courtès
@ 2012-01-25 23:05 ` Andy Wingo
0 siblings, 0 replies; 9+ messages in thread
From: Andy Wingo @ 2012-01-25 23:05 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 10336
Hi,
On Wed 25 Jan 2012 21:34, ludo@gnu.org (Ludovic Courtès) writes:
> Andy Wingo <wingo@pobox.com> skribis:
>
>> I pushed a couple patches that should help this bug out,
>
> As I wrote, it doesn’t solve the problem. :-/
Ah sorry, I misunderstood.
> I suspect it’s just one or two words on the stack that fail to be
> cleared, which is why I ended up looking at the assembly in search of
> a real bug.
Interesting. That would explain why it would be architecture-specific,
as well.
Thanks for the patience :)
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#10336: lexical vars are collectable test is failing
2012-01-25 16:10 ` Ludovic Courtès
2012-01-25 18:07 ` Andy Wingo
2012-01-25 20:34 ` Ludovic Courtès
@ 2012-01-27 18:36 ` Andy Wingo
2012-02-01 23:16 ` Andy Wingo
2 siblings, 1 reply; 9+ messages in thread
From: Andy Wingo @ 2012-01-27 18:36 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 10336
retitle 10366 lexical vars are collectable test is failing
On Wed 25 Jan 2012 17:10, ludo@gnu.org (Ludovic Courtès) writes:
> Second thing, it suffices to insert a function call like
> ((lambda (x) #f) #f) just before calls to ‘gc’ to solve the problem.
>
> So I’m thinking we may have a real bug here.
I pushed an experimental patch that attempts to NULL out variables that
are local to the VM. Let's see what hydra does with it.
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#10336: lexical vars are collectable test is failing
2012-01-27 18:36 ` bug#10336: lexical vars are collectable test is failing Andy Wingo
@ 2012-02-01 23:16 ` Andy Wingo
0 siblings, 0 replies; 9+ messages in thread
From: Andy Wingo @ 2012-02-01 23:16 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 10336-done
On Fri 27 Jan 2012 19:36, Andy Wingo <wingo@pobox.com> writes:
> On Wed 25 Jan 2012 17:10, ludo@gnu.org (Ludovic Courtès) writes:
>
>> Second thing, it suffices to insert a function call like
>> ((lambda (x) #f) #f) just before calls to ‘gc’ to solve the problem.
>>
>> So I’m thinking we may have a real bug here.
>
> I pushed an experimental patch that attempts to NULL out variables that
> are local to the VM. Let's see what hydra does with it.
In the end that failed. I pushed a different patch that tried to NULL
out recursively called C stack frames. Perhaps it worked? As tests are
passing, I will close this one for now. It's possible that simply
recursing through the VM wouldn't work well, as there might be stack
slots in vm_engine that don't get set in all code paths. If we see
errors in the future, let's just mark those as flaky and move on. Let's
also try to reduce the number of UNRESOLVED results in general, so that
these hacks will be more visible.
Regards,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 9+ messages in thread