Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: NTL error handling
PostPosted: Wed Jul 25, 2018 12:08 am 
Singular commit 28d88317f5be18d83c49515617dfb0e38ae38600 added an error callback to NTL. If I understand that correctly, that callback completely halts the program.

That causes issues with the NTL usage in sage. Sage has its own error callback (used to catch errors and report them to the user). However with the newest singular, the program will just immediately halt whenever a NTL error occurs (even when using NTL directly).

Is that a bug?


Report this post
Top
  
Reply with quote  
 Post subject: Re: NTL error handling
PostPosted: Wed Jul 25, 2018 11:09 am 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
Not a bug, just 2 parts of SAGE using the same error handler interface
- the last one wins.
We can move the initialization out of libSingular,
so that it is active only within Singular:
see
https://github.com/Singular/Sources/commit/502cf86d0bb2a96715be6764774b64a69c1ca34c


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: NTL error handling
PostPosted: Wed Jul 25, 2018 3:01 pm 

Joined: Wed Jul 25, 2018 12:05 am
Posts: 8
Thank you for the quick fix, that looks like it is exactly what we need!

Do you plan to make a release including this soon? Or do you know if it is possible to work around this until then?

Otherwise sage will have to continue using the old Singular version patch its Singular (backporting that commit). Because of that all the distributions packaging sage would either have to accept the error, stay at an older singular or patch their singular too.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: NTL error handling
PostPosted: Thu Jul 26, 2018 5:15 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
Singular 4.1.1p3 will appear within the next week,
next relase (4.1.2?) probably in October.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: NTL error handling
PostPosted: Sun Jul 29, 2018 6:37 pm 

Joined: Wed Jul 25, 2018 12:05 am
Posts: 8
Alright, that's perfect. Thank you for the quick fix!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: NTL error handling
PostPosted: Tue Jul 31, 2018 4:29 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
singular-4.1.1p3 released


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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 11:00 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group