#15214: singular bus error
---------------------------+-----------------------------------------------
   Reporter:  felixs       |            Owner:
       Type:  defect       |           Status:  new
   Priority:  critical     |        Milestone:  sage-5.12
  Component:  packages:    |         Keywords:  singular segfault bus error
  standard                 |          Authors:  Felix Salfelder
  Merged in:               |  Report Upstream:  N/A
  Reviewers:               |           Branch:
Work issues:               |     Dependencies:
     Commit:               |
   Stopgaps:               |
---------------------------+-----------------------------------------------
 During singular documentation build, the file
 `Definition_of_a_user_defined_type.sing` is executed. This triggers a bus
 error with singular (3-1-5.p8) from sage 5.12-beta5, but works with
 singular (3-1-5.p4) from 5.8. Looks like a regression.

 The contents of that file.
 {{{
   newstruct("nt","int a,poly b,string c");
   nt A;
   nt B;
   A.a=3;
   A.c=string(A.a);
   B=A;
   newstruct("t2","nt","string c");
   t2 C; C.c="t2-c";
   A=C;
   typeof(A);
   A;
   // a motivating example ------------------------------------------
   newstruct("IDEAL","ideal I,proc prettyprint");
   newstruct("HOMOGENEOUS_IDEAL","IDEAL","intvec weights,proc
 prettyprint");
   proc IDEAL_pretty_print(IDEAL I)
   {
     "ideal generated by";
     I.I;
   }
   proc H_IDEAL_pretty_print(HOMOGENEOUS_IDEAL I)
   {
     "homogeneous ideal generated by";
     I.I;
     "with weights";
     I.weights;
   }
   proc p_print(IDEAL I) { I.prettyprint(I); }
   ring r;
   IDEAL I;
   I.I=ideal(x+y2,z);
   I.prettyprint=IDEAL_pretty_print;
   HOMOGENEOUS_IDEAL H;
   H.I=ideal(x,y,z);
   H.prettyprint=H_IDEAL_pretty_print;
   H.weights=intvec(1,1,1);
   p_print(I);
   p_print(H);
 }}}

 A session (with p8 on 5.12 on sage.math), clearly fails because of 10202.
 {{{
 $ singular /tmp/Definition_of_a_user_defined_type.sing
                      SINGULAR                                 /
 Development
  A Computer Algebra System for Polynomial Computations       /   version
 3-1-5
                                                            0<
  by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   Jul 2012
 FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
 t2
 c=t2-c
 c=
 b=??
 a=0
 Singular : signal 11 (v: 3150):
 current line:>> I.prettyprint(I); <<
 Segment fault/Bus error occurred at aa9aec because of 10202 (r:1379708681)
 please inform the authors
 trying to restart...
 Auf Wiedersehen.
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/15214>
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/groups/opt_out.

Reply via email to