On Dec 20, 2007 8:55 AM, mhampton <[EMAIL PROTECTED]> wrote:
>
> OK, I will give the server logs here in case they are of interest.  I
> am still not sure what went wrong.  I will have to find a quicker way
> to do my calculation - perhaps cast things to floats, and use python's
> math.abs().

If you can reproduce this it would be very valuable.

The public notebooks run for weeks without ever crashing, but
clearly you did crash the notebook server below somehow.

 -- William

> As a preamble to the server logs: it looked like I was dropped into a
> python session, so I entered "exit()".  Then I pressed CTRL-C several
> times and got back to a sage prompt, and from there restarted the
> notebook, which seems fine, none of the worksheets are active.  Here
> is server output:
>
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] End Of File
> (EOF) in read_nonblocking(). Empty string style platform.
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252]
> <pexpect.spawn instance at 0x2af6ee0>
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] version: 2.0
> ($Revision: 1.151 $)
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] command: /
> Volumes/D/sage-2.8.4.1/sage
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] args: ['/
> Volumes/D/sage-2.8.4.1/sage', '-python', '-u']
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] patterns:
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252]     >>>
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] buffer (last
> 100 chars):
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] before (last
> 100 chars):
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] after: <class
> 'pexpect.EOF'>
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] match: None
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] match_index:
> None
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] exitstatus:
> None
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] flag_eof: 1
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] pid: 9636
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] child_fd: 15
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] timeout: 30
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] delimiter:
> <class 'pexpect.EOF'>
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] logfile: None
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252] maxread: 1
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252]
> searchwindowsize: None
> 2007/12/20 08:51 -0500 [HTTPChannel,11974,71.221.40.252]
> delaybeforesend: 0
> Python 2.5.1 (r251:54863, Sep 21 2007, 09:05:53)
> [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
> >>> exit()
> 2007/12/20 10:45 -0500 [HTTPChannel,11974,71.221.40.252] Exception
> rendering:
> 2007/12/20 10:45 -0500 [HTTPChannel,11974,71.221.40.252] Unhandled
> Error
>         Traceback (most recent call last):
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/internet/defer.py", line 182, in addCallbacks
>             self._runCallbacks()
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/internet/defer.py", line 317, in _runCallbacks
>             self.result = callback(self.result, *args, **kw)
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/internet/defer.py", line 281, in _continue
>             self.unpause()
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/internet/defer.py", line 277, in unpause
>             self._runCallbacks()
>         --- <exception caught here> ---
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/internet/defer.py", line 317, in _runCallbacks
>             self.result = callback(self.result, *args, **kw)
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/web2/server.py", line 268, in <lambda>
>             d.addCallback(lambda res, req: res.renderHTTP(req), self)
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/web2/resource.py", line 85, in renderHTTP
>             return method(request)
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/web2/resource.py", line 202, in http_GET
>             return super(Resource, self).http_GET(request)
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/twisted/web2/resource.py", line 128, in http_GET
>             return self.render(request)
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/sage/server/notebook/twist.py", line 1061, in render
>             self.worksheet.restart_sage()
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/sage/server/notebook/worksheet.py", line 1351, in
> restart_sage
>             ulimit = self.notebook().get_ulimit())
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/sage/server/notebook/worksheet.py", line 79, in
> initialized_sage
>             S._start(block_during_init=False)
>           File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-
> packages/sage/interfaces/expect.py", line 463, in _start
>             raise RuntimeError, "Unable to start %s"%self.__name
>         exceptions.RuntimeError: Unable to start sage
>
> ^C^C2007/12/20 10:46 -0500 [-] (Notebook cleanly saved. Press control-
> C again to exit.)
> 2007/12/20 10:46 -0500 [-] (Notebook cleanly saved. Press control-C
> again to exit.)
> ^C^C^CERROR: Internal Python error in the inspect module.
> Below is the traceback from this internal error.
>
> Traceback (most recent call last):
>   File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-packages/
> IPython/ultraTB.py", line 491, in text
>     records = _fixed_getinnerframes(etb, context,self.tb_offset)
>   File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-packages/
> IPython/ultraTB.py", line 124, in _fixed_getinnerframes
>     records  = inspect.getinnerframes(etb, context)
>   File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/inspect.py", line
> 877, in getinnerframes
>     framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
>   File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/inspect.py", line
> 837, in getframeinfo
>     filename = getsourcefile(frame) or getfile(frame)
>   File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/inspect.py", line
> 386, in getsourcefile
>     for suffix, mode, kind in imp.get_suffixes():
>   File "/Volumes/D/sage-2.8.4.1/local/lib/python2.5/site-packages/sage/
> interfaces/get_sigs.py", line 9, in my_sigint
>     raise KeyboardInterrupt
> KeyboardInterrupt
>
> Unfortunately, your original traceback can not be constructed.
>
>
>
> On Dec 20, 8:13 am, "William Stein" <[EMAIL PROTECTED]> wrote:
>
> > On Dec 20, 2007 7:08 AM, mhampton <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > What is lisp.run?  I was doing a pretty simple calculation, which
> >
> > lisp.run is the name of the clisp interpreter, which maxima uses.
> > So in your calculation, you were evidentily doing a big maxima
> > calculation.
> >
> > > ended up taking a long time (12+ hours, I was expecting maybe 30
> > > minutes tops), and I noticed that lisp.run seemed to be doing all the
> > > work.  After poking around, my best guess is that it was somehow being
> > > called by the abs() function through pari or maxima (I had a loop that
> > > was doing about 180,000 calls to abs()).
> >
> > Yep.
> >
> > > I also managed to crash my sage server to some extent, so I can't
> > > immediately supply better diagnostics - interrupting the calculation
> >
> > Wow.  It should be very very difficult to crash the sage server, since
> > it is very much a separate process from anything that does any
> > computing, and the linking between the two processes is only
> > via a pseudo-tty, so it's very hard to crash the server -- in fact I know
> > of no systematic way to do so.
> >
> > > didn't work, so I tried quitting/restarting the worksheet, and now I
> > > can't access the server at all.  When I get in to my office I can
> > > check this out in more detail.  By running 'tops' remotely it looks
> > > like my other worksheet processes are still hanging around but I am
> > > not sure.
> >
> > It's likely.
> >
> > William
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to