#5344: [with patch, needs review] Singular/omalloc "double free" problem
-------------------------+--------------------------------------------------
 Reporter:  GeorgSWeber  |       Owner:  mabshoff
     Type:  defect       |      Status:  new     
 Priority:  blocker      |   Milestone:  sage-3.4
Component:  packages     |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by mabshoff):

 * cc: robertwb (added)


Comment:

 Georg,

 this is a know problem when using the system malloc with Singular, i.e.
 the above problem happens also on OSX in 64 bit mode where we already
 build Singular with the system malloc per default. There are more problems
 than four double frees at exit. The problem is that

  * the destructor for Rational in Givaro is not called, but the one in
 Singular
  * the same applies to some mpf_* function
  * What is even worst is that Sage's minpoly is not called, but instead
 libsingular's without the ring check

 Due to the above about 25 doctests will segafault, so this is more than a
 cosmetic issue. I am clueless why this happens, but I suspect a scope
 issue in Cython.

 RobertWB: thoughts?

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5344#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to