On 01/21/2012 08:23 PM, Stephen Montgomery-Smith wrote:
On 01/21/2012 08:05 PM, Stephen Montgomery-Smith wrote:
I am able to build sage on FreeBSD. I have attached a tar file which
contains a "port" to build sage on FreeBSD. (FreeBSD users will know
what I mean by a "port.")

It does seem to work, but it segfaults on exit:

%./sage
----------------------------------------------------------------------
| Sage Version 4.8, Release Date: 2012-01-20 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: 1+1
2
sage: exit
Exiting Sage (CPU time 0m0.03s, Wall time 0m6.24s).
local/bin/sage-sage: line 303: 22511 Segmentation fault: 11 (core
dumped) sage-ipython "$@" -i

Any ideas on how to proceed?



I did a "sage -gdb" and it suggests that the problem might be to do with
~Commentator in commentator.C. This is part of the linbox subpackage. I
did a google and found this:
http://trac.sagemath.org/sage_trac/ticket/11718

Does construction and/or deconstruction of Commentator tend to cause
problems?


I fixed the problem as follows:

sed -i .bak -e 's/Commentator/Commensator/g' \
"$SAGE_ROOT"/local/lib/liblinboxsage.so.0

That way sage didn't get confused between the Commentator that appears in liblinbox and liblinboxsage.

Now I am getting a different segmentation fault, for which unfortunately gdb provides no clues.

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to