# Segmentation fault when multiplying by variable

In Sage 7.5.1 I'm trying to work with unknown values in GF(3) and polynomials.

The following code gives me a *segmentation fault*:

```
P.<x> = GF(3)['x']
var('a')
sigma = 2*x+ 1
print(a*(sigma))
```

What is the proper way to handle unknown GF(3) values like "a" in Sage?

Seg fault confirmed with Sage 8.1.beta5; looks a real bug...

@eric_g Yikes, should I report it somewhere?

same error in 8.1.beta8.

Bug confirmed. I haven't been able to track it completely, but experimentally the bug happens when one multiplies a symbolic expression by a non-monic polynomial over some finite field.

You can report it on trac and/or on sage-devel.

Concerning your last question, on possibility (depending on what is your goal) is to define a multivariate polynomial ring in

`x`

and`a`

, using for instance`P.<x,a> = GF(3)[]`

.I've created #24072 to report the bug.