Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: segfault when calling pOne() when currRing == NULL
PostPosted: Thu Nov 20, 2014 6:50 pm 
Hi all,

Still playing with Singular 3-1-7p1 in debug mode and Sage, we got a segfault when pOne gets called but currRing is not set.
With Singular 3-1-6 it was not the case.
See trac.sagemath.org/ticket/17184#comment:48 and following comments.

I think the following commit might explain the behavior change:
* bceefc05ad02b92a823faffb7a4a247a0da12fc0

Just removing the "#if 0" fixes our problem.
Though it surely is better to fix the issue and leave it there, or revert the whole commit.

Or should always make completely sure there is a currRing set?

Best,
JP


Report this post
Top
  
Reply with quote  
 Post subject: Re: segfault when calling pOne() when currRing == NULL
PostPosted: Fri Nov 21, 2014 6:54 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
All of the polynomial routines require a ring, as argument or via the global variable currRing. If such a ring does not exit, an error should be reported.
The problem here is the place to check this: 3-1-6 does it during the resolution
of reserved names (IsCmd) while 4-0-0 should check during the evaluation of expressions.
The easiest way to fix it is really to change the "#if 0" to "#if 1" as the check during the evaluation is missing and also not necessary for 3-1-7.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: segfault when calling pOne() when currRing == NULL
PostPosted: Mon Nov 24, 2014 4:26 pm 
Thanks, that's exactly what I did!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group