#17667: Maxima parser fails on ==
----------------------------------+----------------------------
   Reporter:  vbraun              |            Owner:
       Type:  defect              |           Status:  new
   Priority:  major               |        Milestone:  sage-6.5
  Component:  packages: standard  |         Keywords:
  Merged in:                      |          Authors:
  Reviewers:                      |  Report Upstream:  N/A
Work issues:                      |           Branch:
     Commit:                      |     Dependencies:
   Stopgaps:                      |
----------------------------------+----------------------------
 There is no `==` operator in Maxima, but on invalid input it does bad
 things to the C-level stream. On Linux (below) this is caught by gilbc, on
 OSX the Maxima process hangs indefinitely:
 {{{
 $ sage -maxima
 ;;; Loading #P"/home/vbraun/Code/sage.git/local/lib/ecl/sb-bsd-
 sockets.fas"
 ;;; Loading #P"/home/vbraun/Code/sage.git/local/lib/ecl/sockets.fas"
 ;;; Loading #P"/home/vbraun/Code/sage.git/local/lib/ecl/defsystem.fas"
 ;;; Loading #P"/home/vbraun/Code/sage.git/local/lib/ecl/cmp.fas"
 Maxima 5.35.1 http://maxima.sourceforge.net
 using Lisp ECL 13.5.1
 Distributed under the GNU Public License. See the file COPYING.
 Dedicated to the memory of William Schelter.
 The function bug_report() provides bug reporting information.
 (%i1) 1 == 1;

 Maxima encountered a Lisp error:

  Read or write operation signaled an error
 C library explanation: Illegal seek.

 Automatically continuing.
 To enable the Lisp debugger set *debugger-hook* to nil.
 }}}

 This syntax error was diagnosed correctly in Maxima-5.34.1:
 {{{
 $ ./sage -maxima
 ;;; Loading #P"/home/vbraun/Sage/git-temp/local/lib/ecl/cmp.fas"
 ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
 ;;;
 ;;; End of Pass 1.
 ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
 ;;;
 ;;; End of Pass 1.
 ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
 ;;;
 ;;; End of Pass 1.
 ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
 ;;;
 ;;; End of Pass 1.
 ;;; Loading #P"/home/vbraun/Sage/git-temp/local/lib/ecl/sb-bsd-
 sockets.fas"
 ;;; Loading #P"/home/vbraun/Sage/git-temp/local/lib/ecl/sockets.fas"
 ;;; Loading #P"/home/vbraun/Sage/git-temp/local/lib/ecl/defsystem.fas"
 Maxima 5.34.1 http://maxima.sourceforge.net
 using Lisp ECL 13.5.1
 Distributed under the GNU Public License. See the file COPYING.
 Dedicated to the memory of William Schelter.
 The function bug_report() provides bug reporting information.
 (%i1) 1 == 1;
 incorrect syntax: = is not a prefix operator
 1 ==
   ^
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17667>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to