Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow mixing of pos.char.ring elements and symbolic variables #21391

Closed
rwst opened this issue Sep 1, 2016 · 24 comments
Closed

Disallow mixing of pos.char.ring elements and symbolic variables #21391

rwst opened this issue Sep 1, 2016 · 24 comments

Comments

@rwst
Copy link

rwst commented Sep 1, 2016

This is to have a place for code examples and discussion of impact of the proposal in https://groups.google.com/forum/?hl=en#!topic/sage-devel/auLwQWtpnz0

The following produces a segmentation fault (Sage 7.4, Ubuntu 14.04 or OS X 10.10.5),
see Ask Sage.

sage: F = GF(3)
sage: num, den = F(2)*x + F(1), x
sage: num/den
 ... segmentation fault ...

With this branch this gives: TypeError: Multiplication of symbolic variable and an element of a ring with positive characteristic.

See also sage-support.

CC: @jdemeyer @videlec @slel

Component: symbolics

Keywords: segfault

Branch/Commit: u/rws/disallow_mixing_of_pos_char_ring_elements_and_symbolic_variables @ 8de8398

Reviewer: Ralf Stephan

Issue created by migration from https://trac.sagemath.org/ticket/21391

@rwst rwst added this to the sage-7.4 milestone Sep 1, 2016
@rwst
Copy link
Author

rwst commented Sep 1, 2016

@rwst
Copy link
Author

rwst commented Sep 1, 2016

comment:2

In a first scan these doctests would have to be changed:

sage -t src/sage/symbolic/expression.pyx  # 11 doctests failed
sage -t src/sage/symbolic/pynac.pyx  # 2 doctests failed
sage -t src/sage/rings/polynomial/polynomial_element.pyx  # 2 doctests failed
sage -t src/sage/rings/polynomial/laurent_polynomial.pyx  # 2 doctests failed
sage -t src/sage/rings/polynomial/polynomial_zz_pex.pyx  # 1 doctest failed

New commits:

714769921391: Disallow mixing of pos.char.ring elements and symbolic variables

@rwst
Copy link
Author

rwst commented Sep 1, 2016

Commit: 7147699

@rwst
Copy link
Author

rwst commented Sep 1, 2016

Author: Ralf Stephan

@rwst
Copy link
Author

rwst commented Dec 2, 2016

comment:3

Alternatively this could be made a stopgap. Which is better?

@slel
Copy link
Member

slel commented Dec 3, 2016

Changed keywords from none to segfault

@slel
Copy link
Member

slel commented Dec 3, 2016

comment:4

Adding an example leading to a segmentation fault to the ticket description.

@slel

This comment has been minimized.

@slel

This comment has been minimized.

@rwst

This comment has been minimized.

@rwst rwst modified the milestones: sage-7.4, sage-7.6 Jan 15, 2017
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 16, 2017

Changed commit from 7147699 to f2933cc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 16, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

dd6ad96Merge branch 'develop' into t/21391/disallow_mixing_of_pos_char_ring_elements_and_symbolic_variables
03ccd07Merge branch 'develop' into t/21391/disallow_mixing_of_pos_char_ring_elements_and_symbolic_variables
f2933cc21391: introduce ex.has_finite_parent()

@rwst
Copy link
Author

rwst commented Jan 16, 2017

comment:9

Critical because of segfault and public interest.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 20, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

333db3cMerge branch 'develop' into t/21391/disallow_mixing_of_pos_char_ring_elements_and_symbolic_variables

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 20, 2017

Changed commit from f2933cc to 333db3c

@rwst
Copy link
Author

rwst commented Mar 7, 2017

comment:11

Doctest failures.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 7, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

8700e00Merge branch 'develop' into t/21391/disallow_mixing_of_pos_char_ring_elements_and_symbolic_variables
c7f8ad221391: to prevent fails give the coordinate functions an explicit characteristic
943060521391: doctest fixes

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 7, 2017

Changed commit from 333db3c to 9430605

@rwst rwst removed the s: needs work label Mar 7, 2017
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 21, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

8de8398Merge branch 'develop' into t/21391/disallow_mixing_of_pos_char_ring_elements_and_symbolic_variables

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 21, 2017

Changed commit from 9430605 to 8de8398

@rwst
Copy link
Author

rwst commented Oct 21, 2017

comment:15

Doctest failures.

@rwst rwst modified the milestones: sage-7.6, sage-8.1 Oct 21, 2017
@koffie
Copy link

koffie commented Oct 25, 2017

comment:16

I think this can be closed as duplicate since #24072 has positive review.

@koffie koffie removed this from the sage-8.1 milestone Oct 25, 2017
@jdemeyer
Copy link

Changed author from Ralf Stephan to none

@jdemeyer
Copy link

Reviewer: Ralf Stephan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants