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

Segfault with bivariate polynomial ring (promotion) #39

Closed
thofma opened this issue Jun 14, 2016 · 1 comment
Closed

Segfault with bivariate polynomial ring (promotion) #39

thofma opened this issue Jun 14, 2016 · 1 comment

Comments

@thofma
Copy link
Member

thofma commented Jun 14, 2016

julia> R = ResidueRing(ZZ, 2)
Residue ring of Integer Ring modulo 2

julia> T, x = R["x"]
(Univariate Polynomial Ring in x over Residue ring of Integer Ring modulo 2,x)

julia> S, y = T["y"]
(Univariate Polynomial Ring in y over Univariate Polynomial Ring in x over Residue ring of Integer Ring modulo 2,y)

julia> zero(R)*y^0
Speicherzugriffsfehler (Speicherabzug geschrieben)

The error is a segfault, but I was too lazy to change languages.

I can reproduce it with the release and development version of julia.

It worked with an older version of Nemo, but I did not have time to do a bisect. It is probably due to the changed promotion system.

@thofma
Copy link
Member Author

thofma commented Jun 15, 2016

Here is the proper error message:

ERROR: StackOverflowError:                                                                                              
 in promote_rule(::Type{Nemo.GenRes{Nemo.fmpz}}, ::Type{Nemo.GenPoly{Nemo.nmod_poly}}) at /home/thofmann/.julia/v0.5/Nem
o/src/generic/Residue.jl:255 (repeats 80000 times)                                                                      

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

No branches or pull requests

1 participant