Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alarm() doesn't work with the factor() command #3723

Closed
williamstein opened this issue Jul 25, 2008 · 2 comments
Closed

alarm() doesn't work with the factor() command #3723

williamstein opened this issue Jul 25, 2008 · 2 comments

Comments

@williamstein
Copy link
Contributor

teragon-2:~ was$ sage
----------------------------------------------------------------------
| SAGE Version 3.0.5, Release Date: 2008-07-11                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
Loading SAGE library. Current Mercurial branch is: review
sage: alarm(3); factor(2^997-1) 

#
# and I wait 10 seconds then hit control c
#

^C---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)

/Users/was/s/local/lib/python2.5/site-packages/sage/misc/misc.py in __mysig(a, b)
   1343 __alarm_time=0
   1344 def __mysig(a,b):
-> 1345     raise KeyboardInterrupt, "computation timed out because alarm was set for %s seconds"%__alarm_time
   1346 
   1347 def alarm(seconds):

KeyboardInterrupt: computation timed out because alarm was set for 3 seconds
sage: 

Component: misc

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/3723

@jdemeyer
Copy link

comment:1

Clearly duplicate of #13311.

@jdemeyer
Copy link

Reviewer: Jeroen Demeyer

@jdemeyer jdemeyer removed this from the sage-5.10 milestone May 15, 2013
@jdemeyer jdemeyer changed the title alarm doesn't work with the factor command on os x (but control c does) alarm() doesn't work with the factor() command May 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants