Opened 12 years ago

Closed 11 years ago

#7152 closed defect (fixed)

Segmentation fault with monomials()

Reported by: mraum Owned by: tbd
Priority: major Milestone: sage-4.3.1
Component: algebra Keywords: monomials, singular
Cc: MRaum@…, malb, wjp Merged in: sage-4.3.1.rc1
Authors: Burcin Erocal Reviewers: Willem Jan Palenstijn
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


Using implicite coercion and then calling monomials might cause a segmentation fault. This is a side effect.

K.<rho> = NumberField(x**2 + 1)
R.<x,y> = QQ[]
p = rho*x
q = x
 Segmentation Fault

Going back to line 5 you can avoid this by


This might be used as a workaround.

If no implicite coercion is involved, everything works fine, i.e. use

R.<x,y> = K[]

This is most probably related to #6160.

Attachments (1)

trac_7152-monomials_cring.patch (1.3 KB) - added by burcin 11 years ago.
set current ring for singular in monomials() method

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by burcin

  • Authors set to Burcin Erocal
  • Cc malb wjp added
  • Keywords singular added; multivariate polynomial ring coercion removed
  • Report Upstream set to N/A
  • Status changed from new to needs_review

This segfaults because the monomials() method doesn't set the current ring. attachment:trac_7152-monomials_cring.patch contains the fix.

Changed 11 years ago by burcin

set current ring for singular in monomials() method

comment:2 Changed 11 years ago by wjp

  • Status changed from needs_review to positive_review

Looks good.

comment:3 Changed 11 years ago by rlm

  • Merged in set to sage-4.3.1.rc1
  • Resolution set to fixed
  • Reviewers set to Willem Jan Palenstijn
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.