Closed peanutfun closed 2 years ago
@peanutfun Thanks for opening this issue. I will open a new PR to resolve this problem according to your suggestion.
@peanutfun I have implemented your suggestion here.
Now GiNaCDE can check the correct initialization of degAcoeff
before accessing it and shows a message if degAcoeff
is not initialized correctly.
Yes, I can confirm that the issue is resolved. Thank you!
Not setting
degAcoeff
results in a segmentation fault when trying to solve an equation with the (modified) F-expansion method. The error occurs atdesolve.cpp#L681
.Example code taken from
examples/5thGKdV.cpp
:In command line:
As a remedy, I suggest checking if
degAcoeff
is not default-initialized anymore before accessing it, and throwing an exception otherwise. This way, users also get notified of what went wrong.