Opened 10 years ago

Closed 7 years ago

Last modified 4 years ago

#9169 closed defect (worksforme)

cygwin: a cachefunc.py doctest hangs seemingly forever

Reported by: was Owned by: tbd
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: porting: Cygwin Keywords:
Cc: jpflori, dimpase, kcrisman Merged in:
Authors: Reviewers: Jean-Pierre Flori
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by chapoton)

On Cygwin, the following test hangs:

            sage: @cached_function
            ... def oddprime_factors(n):
            ...     l = [p for p,e in factor(n) if p != 2]
            ...     return len(l)
            sage: oddprime_factors.precompute(range(1,100), 4)

The above is very fast on any other platform.

This results in a doctest file failure:

sage -t  "devel/sage/sage/misc/cachefunc.py"                
*** *** Error: TIMED OUT! PROCESS KILLED! *** ***
*** *** Error: TIMED OUT! *** ***
 [361.6 s]

Change History (11)

comment:1 Changed 7 years ago by kcrisman

FWIW, this file is now cachefunc.pyx.

comment:2 Changed 7 years ago by kcrisman

This same test still fails, though for me it is because of forking errors and an inability to start Singular at times (presumably for that reason).

comment:3 Changed 7 years ago by kcrisman

  • Cc jpflori added

comment:4 Changed 7 years ago by jpflori

On my install (64bits Windows 7 + sage 5.6.rc0) the test passes.

comment:5 follow-up: Changed 7 years ago by kcrisman

That's good to hear. I am frustrated by this forking business. A complete rebase just shifts the error to a different random file that won't be remapped. So I can never tell whether things are really a problem or not.

comment:6 in reply to: ↑ 5 Changed 7 years ago by dimpase

  • Status changed from new to needs_review

Replying to kcrisman:

That's good to hear. I am frustrated by this forking business. A complete rebase just shifts the error to a different random file that won't be remapped. So I can never tell whether things are really a problem or not.

Are you working on a 32-bit Windows? I've given up on attempting to use Cygwin on 32-bit systems.

Anyhow, this test works for me too. Let's close this one.

comment:7 Changed 7 years ago by kcrisman

I'd feel best if we were able to try on 32-bit XP... though I recognize this may be impossible unless my box stops acting up.

comment:8 Changed 7 years ago by jpflori

  • Cc dimpase kcrisman added

When the status on my 64 bits Windows 7 looks good enough (which looks close), I'll dig up an old 32 bits install and give it a try.

comment:9 Changed 7 years ago by jpflori

  • Milestone changed from sage-5.7 to sage-duplicate/invalid/wontfix
  • Status changed from needs_review to positive_review

This is ok on 32 bits Windows 7, so I'll close it.

comment:10 Changed 7 years ago by jdemeyer

  • Resolution set to worksforme
  • Reviewers set to Jean-Pierre Flori
  • Status changed from positive_review to closed

comment:11 Changed 4 years ago by chapoton

  • Description modified (diff)
Note: See TracTickets for help on using tickets.