#5862: [with patch, needs work] OSX 64 bit libsingular -- sage/libsingular
segfaults on first creation of a ring
---------------------------------+------------------------------------------
 Reporter:  was                  |       Owner:  malb      
     Type:  defect               |      Status:  new       
 Priority:  major                |   Milestone:  sage-3.4.2
Component:  commutative algebra  |    Keywords:            
---------------------------------+------------------------------------------

Comment(by GeorgSWeber):

 Hi,

 I digged around in the Mac OS X documentation, especially:
 
http://developer.apple.com/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryUsageGuidelines.html#//apple_ref/doc/uid/TP40001928-SW10

 In the section about "Opening Dynamic Libraries" there is also something
 said about closing dynamic libraries. Especially, the dynamic loader might
 or might not after "dlclose()" remove the library from the applications
 address space. That would be an explanation for seeing segfaults, I guess.

 Now in line 168 of "multi_polynomial_libsingular.pyx", there is a call to
 "dlclose()", and this call most probably is done before any ring is
 instantiated. I remember to have seen a file where on Sage shutdown many
 memory deallocations and such are performed, probably that call to
 "dlclose()" is done better there (I don't remember what that place was).

 See also trac #5522 about issues with whether libsingular was loaded or
 not.

 Cheers, gsw

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5862#comment:5>
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