[Bug 487088] [NEW] Sage crashes on solve/diff/integrate
Christoph Hüsler
burnstone at burnstone.ch
Mon Nov 23 13:16:48 UTC 2009
Public bug reported:
Binary package hint: sagemath
Whenever I try to execute any of the examples from
http://www.sagemath.org/doc/tutorial/tour_algebra.html, sage crashes:
$ sage
----------------------------------------------------------------------
| SAGE Version 3.0.5, Release Date: 2008-07-11 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: integral(x*sin(x^2), x)
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (356, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (865, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (387, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (805, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (785, 0))
---------------------------------------------------------------------------
EOF Traceback (most recent call last)
/home/burnstone/ethz/analysis/u10/<ipython console> in <module>()
/usr/lib/python2.5/site-packages/sage/misc/functional.pyc in integral(x, *args, **kwds)
434 """
435 if hasattr(x, 'integral'):
--> 436 return x.integral(*args, **kwds)
437 else:
438 from sage.calculus.calculus import SR
/usr/lib/python2.5/site-packages/sage/calculus/calculus.pyc in integral(self, v, a, b)
2503 raise TypeError, 'only one endpoint given'
2504 if a is None:
-> 2505 return self.parent()(self._maxima_().integrate(v))
2506 else:
2507 try:
/usr/lib/python2.5/site-packages/sage/calculus/calculus.pyc in _maxima_(self, session)
1132 """
1133 if session is None:
-> 1134 return RingElement._maxima_(self, maxima)
1135 else:
1136 return RingElement._maxima_(self, session)
/usr/lib/python2.5/site-packages/sage/structure/sage_object.so in
sage.structure.sage_object.SageObject._maxima_
(sage/structure/sage_object.c:3076)()
/usr/lib/python2.5/site-packages/sage/structure/sage_object.so in
sage.structure.sage_object.SageObject._interface_
(sage/structure/sage_object.c:2207)()
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in __call__(self, x)
375 def __call__(self, x):
376 import sage.rings.all
--> 377 return Expect.__call__(self, x)
378
379 def __init__(self, script_subdirectory=None, logfile=None, server=None,
/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in __call__(self, x)
946 return x
947 if isinstance(x, basestring):
--> 948 return cls(self, x)
949 try:
950 return self._coerce_from_special_method(x)
/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in __init__(self, parent, value, is_name)
1212 else:
1213 try:
-> 1214 self._name = parent._create(value)
1215 except (TypeError, KeyboardInterrupt, RuntimeError, ValueError), x:
1216 self._session_number = -1
/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in _create(self, value)
1090 name = self._next_var_name()
1091 #self._last_name = name
-> 1092 self.set(name, value)
1093 return name
1094
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in set(self, var, value)
853 self._batch(cmd, batchload=True)
854 else:
--> 855 self._eval_line(cmd)
856 #self._sendline(cmd)
857 #self._expect_expr()
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt, reformat, error_check)
559 return repr(a)
560 else:
--> 561 self._sendline(line)
562
563 if not wait_for_prompt:
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in _sendline(self, str)
430
431 def _sendline(self, str):
--> 432 self._sendstr(str)
433 os.write(self._expect.child_fd, os.linesep)
434
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in _sendstr(self, str)
435 def _sendstr(self, str):
436 if self._expect is None:
--> 437 self._start()
438 try:
439 os.write(self._expect.child_fd, str)
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in _start(self)
420
421 def _start(self):
--> 422 Expect._start(self)
423 self._eval_line('0;')
424
/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in _start(self, alt_message, block_during_init)
467 if block_during_init:
468 for X in self.__init_code:
--> 469 self.eval(X)
470 else:
471 for X in self.__init_code:
/usr/lib/python2.5/site-packages/sage/interfaces/expect.pyc in eval(self, code, strip, synchronize, **kwds)
915 try:
916 with gc_disabled():
--> 917 return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != ''])
918 except KeyboardInterrupt:
919 # DO NOT CATCH KeyboardInterrupt, as it is being caught
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt, reformat, error_check)
564 return
565
--> 566 self._expect_expr(self._display_prompt)
567 self._expect_expr()
568 out = self._before()
/usr/lib/python2.5/site-packages/sage/interfaces/maxima.pyc in _expect_expr(self, expr, timeout)
455 i = self._expect.expect(expr,timeout=timeout)
456 else:
--> 457 i = self._expect.expect(expr)
458 if i > 0:
459 v = self._expect.before
/usr/lib/python2.5/site-packages/pexpect.pyc in expect(self, pattern, timeout, searchwindowsize)
1309
1310 compiled_pattern_list = self.compile_pattern_list(pattern)
-> 1311 return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
1312
1313 def expect_list(self, pattern_list, timeout = -1, searchwindowsize = -1):
/usr/lib/python2.5/site-packages/pexpect.pyc in expect_list(self, pattern_list, timeout, searchwindowsize)
1323 self.searchwindowsize value is used. """
1324
-> 1325 return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
1326
1327 def expect_exact(self, pattern_list, timeout = -1, searchwindowsize = -1):
/usr/lib/python2.5/site-packages/pexpect.pyc in expect_loop(self, searcher, timeout, searchwindowsize)
1394 self.match = None
1395 self.match_index = None
-> 1396 raise EOF (str(e) + '\n' + str(self))
1397 except TIMEOUT, e:
1398 self.buffer = incoming
EOF: End Of File (EOF) in read_nonblocking(). Exception style platform.
<pexpect.spawn object at 0x2482390>
version: 2.3 ($Revision: 399 $)
command: /usr/bin/maxima
args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage-maxima.lisp']
searcher: searcher_re:
0: re.compile("<sage-display>")
buffer (last 100 chars):
before (last 100 chars):
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i2) xmalloc: out of virtual memory
after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: 2
flag_eof: True
pid: 22499
child_fd: 3
closed: False
timeout: None
delimiter: <class 'pexpect.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 10000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0
delayafterclose: 0.1
delayafterterminate: 0.1
ProblemType: Bug
Architecture: amd64
Date: Mon Nov 23 14:14:23 2009
DistroRelease: Ubuntu 9.10
Package: sagemath 3.0.5dfsg-4ubuntu1 [modified: usr/share/sagemath/data/extcode/sagebuild/build/compilers/__init__.pyc usr/share/sagemath/data/extcode/sagebuild/build/compilers/all.pyc usr/share/sagemath/data/extcode/sagebuild/build/compilers/cython.pyc usr/share/sagemath/data/extcode/sagebuild/build/compilers/gcc.pyc usr/share/sagemath/data/extcode/sagebuild/build/__init__.pyc usr/share/sagemath/data/extcode/sagebuild/build/all.pyc usr/share/sagemath/data/extcode/sagebuild/build/action.pyc usr/share/sagemath/data/extcode/sagebuild/build/taskmanager.pyc usr/share/sagemath/data/extcode/sagebuild/build/optionmanager.pyc usr/share/sagemath/data/extcode/sagebuild/build/enviroment.pyc usr/share/sagemath/data/extcode/sagebuild/build/filewalker.pyc usr/share/sagemath/data/extcode/sagebuild/build/compiler.pyc usr/share/sagemath/data/extcode/sagebuild/build/config.pyc usr/share/sagemath/data/extcode/sagebuild/build/dependencies.pyc]
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: sagemath
Uname: Linux 2.6.31-14-generic x86_64
** Affects: sagemath (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug
--
Sage crashes on solve/diff/integrate
https://bugs.launchpad.net/bugs/487088
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list