#7095: os x 10.6 port -- numerous mysterious errors caused by weird "abort trap"
issue
------------------------+---------------------------------------------------
   Reporter:  was       |       Owner:  tbd       
       Type:  defect    |      Status:  new       
   Priority:  critical  |   Milestone:  sage-4.3.1
  Component:  porting   |    Keywords:            
Work_issues:            |      Author:            
   Upstream:  N/A       |    Reviewer:            
     Merged:            |  
------------------------+---------------------------------------------------

Comment(by was):

 Hi,

 For what it is worth...

 I built GCC 4.4.2 from source with the configure line (with backslashes
 not included below):
 {{{
 ../gcc-4.4.2/configure --enable-languages=c,c++,fortran
 --with-gmp=/Users/was/build/sage-4.3/local/
 --with-tune=generic --build=x86_64-apple-darwin10
 --host=x86_64-apple-darwin10 --target=x86_64-apple-darwin10
 --prefix=/Users/was/build/gcc/gcc-4.4.2/local/
 --with-mpfr=/Users/was/build/sage-4.3/local/
 }}}

 I then built Sage, skipping a few things:
 {{{
 sage: !more BUILD_NOTES.txt

 * twisted -- skipped

 * ratpoints -- comment out fnested-functions option!

 * sagenb -- skipped

 * skipped ecl and maxima
 sage: hg_sage.diff()
 cd "/Users/was/build/gcc/gcc-4.4.2/sage-4.3/devel/sage" && hg diff  | less
 diff -r 21efb0b3fc47 sage/all.py
 --- a/sage/all.py       Thu Dec 24 09:44:02 2009 -0800
 +++ b/sage/all.py       Tue Jan 05 11:44:26 2010 -0800
 @@ -41,7 +41,7 @@
  #Import twisted.persisted.styles in order to allow things like
  #modules to be pickles

 -import twisted.persisted.styles
 +#import twisted.persisted.styles

 }}}

 and... many (but not all) of the bugs reported above *VANISH*.
 {{{
 sage: sys.maxint
 9223372036854775807
 sage: factorial(factorial(x))
 factorial(factorial(x))
 sage: factorial(CC(1.0))
 1.00000000000000
 sage: factorial(CDF(1.0))
 1.0
 sage: sinh(x).subs({x:CIF(2.2)})

 /Users/was/build/gcc/gcc-4.4.2/sage-4.3/local/bin/sage-sage: line 206:
 24620 Abort trap              sage-
 ipython "$@" -i
 }}}

 Under gdb:
 {{{
 sage: sinh(x).subs({x:CIF(2.2)})

 Program received signal SIGABRT, Aborted.
 0x00007fff823fffe6 in __kill ()
 (gdb) bt
 #0  0x00007fff823fffe6 in __kill ()
 #1  0x00007fff824a0e32 in abort ()
 #2  0x000000010070bd51 in uw_init_context_1 ()
 #3  0x000000010070c4cc in _Unwind_Resume ()
 #4  0x00000001073a033f in GiNaC::function::eval ()
 #5  0x000000010733a072 in GiNaC::ex::construct_from_basic ()
 #6  0x0000000107393ce6 in GiNaC::function::thiscontainer ()
 #7  0x000000010730f24f in GiNaC::container<std::vector>::subs (this=<value
 temporarily unavailable, due to
  optimizations>, m...@0x7fff5fbfd270, options=0) at container.h:591
 #8  0x0000000107661b70 in GiNaC::ptr<GiNaC::basic>::operator= () at
 ex.h:827
 #9  operator= [inlined] () at
 /Users/was/build/gcc/gcc-4.4.2/sage-4.3/local/include/pynac/ptr.h:75
 #10 0x0000000107661b70 in
 __pyx_pf_4sage_8symbolic_10expression_10Expression_substitute
 (__pyx_v_self=<val
 ue temporarily unavailable, due to optimizations>, __pyx_args=0x1,
 __pyx_kwds=<value temporarily unavailab
 le, due to optimizations>) at ex.h:13761
 }}}

 I didn't try building my own linker or binutils.

 Also:
 {{{
 sage: plot(sin)
 /Users/was/build/gcc/gcc-4.4.2/sage-4.3/local/bin/sage-sage: line 206:
 25006 Abort trap              sage-
 ipython "$@" -i
 }}}

 So, no dice.  The problem must be somewhere else...

 William

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7095#comment:21>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
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