On 01/22/2012 04:28 PM, Stephen Montgomery-Smith wrote:
On 01/22/2012 04:24 PM, François Bissey wrote:
On Sun, 22 Jan 2012 15:54:19 Stephen Montgomery-Smith wrote:
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.

Can you still post what output/debugging info you have?

I am in the process of compiling with the "-g" option set. I'll send you
the output when this is done.


The "-g" option didn't seem to help one bit.  This is what I got.

Not all of the subpackages respect CFLAGS or CXXFLAGS. But I don't know if that is the reason the symbols are not showing up.

Any advice?

%./sage -gdb
----------------------------------------------------------------------
| Sage Version 4.8, Release Date: 2012-01-20                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
/usr/home/stephen/sage/work/sage-4.8/local/bin/sage-ipython
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
[New LWP 100403]
[New Thread 8012041c0 (LWP 100403/initial thread)]
Python 2.6.4 (r264:75706, Jan 22 2012, 22:20:43)
[GCC 4.6.3 20120113 (prerelease)] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
sage:
Exiting Sage (CPU time 0m0.02s, Wall time 0m2.62s).

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8012041c0 (LWP 100403/initial thread)]
0x0000000000000000 in ?? ()
(gdb) backtrace
#0  0x0000000000000000 in ?? ()
#1  0x0000000800f1b086 in __cxa_finalize () from /lib/libc.so.7
#2  0x0000000800ec5787 in exit () from /lib/libc.so.7
#3  0x000000080084a91f in Py_Exit (sts=Variable "sts" is not available.
) at Python/pythonrun.c:1618
#4  0x000000080084aa0f in handle_system_exit () at Python/pythonrun.c:1618
#5  0x000000080084ac95 in PyErr_PrintEx (set_sys_last_vars=1)
    at Python/pythonrun.c:1618
#6  0x0000000000000000 in ?? ()
#7  0x00000008006037ed in ?? () from /libexec/ld-elf.so.1
#8  0x00007fffffffdde0 in ?? ()
#9  0x0000000000600d29 in ?? ()
#10 0x000000085d2018c8 in ?? ()
#11 0x0000000000600d28 in ?? ()
#12 0x0000000000000001 in ?? ()
#13 0x000000080ea00248 in ?? ()
#14 0x0000000000600d28 in ?? ()
#15 0x00000000ffffffff in ?? ()
#16 0x0000000000000000 in ?? ()
#17 0x0000000000000206 in ?? ()
#18 0x00000008012171fe in ?? ()
#19 0x00000008012b29e0 in ?? ()
#20 0x0000000000000001 in ?? ()
#21 0x000000080084b10e in PyRun_SimpleFileExFlags (fp=Variable "fp" is not available.
)
---Type <return> to continue, or q <return> to quit---
    at Python/pythonrun.c:1618
#22 0x00007fffffffe010 in ?? ()
#23 0x00000008006037ed in ?? () from /libexec/ld-elf.so.1
#24 0x0000000000000246 in ?? ()
#25 0xffffff00bac20000 in ?? ()
#26 0x0000000801086c20 in __stack_chk_guard () from /lib/libc.so.7
#27 0x0000000000000003 in ?? ()
#28 0x0000000801086c20 in __stack_chk_guard () from /lib/libc.so.7
#29 0x00000008012171fe in ?? ()
#30 0x00007fffffffe010 in ?? ()
#31 0x00007fffffffe0e8 in ?? ()
#32 0x00000008012171fe in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000001 in ?? ()
#35 0x0000000801086c20 in __stack_chk_guard () from /lib/libc.so.7
#36 0x0000000800afd140 in Py_InteractiveFlag ()
   from /usr/home/stephen/sage/work/sage-4.8/local/lib//libpython2.6.so.1
#37 0x000000080085802f in Py_Main (argc=Variable "argc" is not available.
) at Modules/main.c:109
#38 0x000000080088a753 in hexdigits ()
   from /usr/home/stephen/sage/work/sage-4.8/local/lib//libpython2.6.so.1
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000632000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#42 0x00000008010566e0 in __stderrp () from /lib/libc.so.7
#43 0x0101000000000001 in ?? ()
#44 0x0000000000000001 in ?? ()
#45 0x00000008006093f9 in dlopen () from /libexec/ld-elf.so.1
#46 0x00000008006066f4 in dladdr () from /libexec/ld-elf.so.1
#47 0x00000008006037ed in ?? () from /libexec/ld-elf.so.1
#48 0x0000000000000246 in ?? ()
#49 0xffffff00bac20000 in ?? ()
#50 0x0000000000000000 in ?? ()
#51 0x0000000000000340 in ?? ()
#52 0x0000000000000000 in ?? ()
#53 0x00007fffffffe0e8 in ?? ()
#54 0x000000000000037f in ?? ()
#55 0x0000000000000002 in ?? ()
#56 0x00007fffffffe0c0 in ?? ()
#57 0x00007fffffffe100 in ?? ()
#58 0x00007fffffffe0e8 in ?? ()
#59 0x0000000000000000 in ?? ()
#60 0x0000000000000000 in ?? ()
#61 0x0000000000400618 in main (argc=Variable "argc" is not available.
) at ./Modules/python.c:23
(gdb)

--
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