#13921: Make the GP executable work with SAGE_DEBUG on Darwin
-------------------------------------------------------+--------------------
       Reporter:  SimonKing                            |         Owner:  was    
 
           Type:  defect                               |        Status:  new    
 
       Priority:  critical                             |     Milestone:  
sage-5.6
      Component:  number theory                        |    Resolution:         
 
       Keywords:  pari gp debug                        |   Work issues:         
 
Report Upstream:  Reported upstream. No feedback yet.  |     Reviewers:         
 
        Authors:  Jeroen Demeyer                       |     Merged in:         
 
   Dependencies:                                       |      Stopgaps:         
 
-------------------------------------------------------+--------------------
Changes (by {'newvalue': u'Jeroen Demeyer', 'oldvalue': ''}):

  * author:  => Jeroen Demeyer


Old description:

> On bsd.math (hence, Darwin), there is a problem with the GP executable
> when building Sage (or: only the pari/gp spkg) with SAGE_DEBUG=yes.
>
> As Jeroen found, a crash occurs as follows:
> {{{
> $ ./sage --gp
> ? factor(10356613*10694706299664611221)
> }}}
> With gdb, one then gets
> {{{
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: 13 at address: 0x0000000000000000
> 0x00007fff8a66cfc1 in dyld_stub_binder ()
> (gdb) bt
> #0  0x00007fff8a66cfc1 in dyld_stub_binder ()
> #1  0x000000010040e398 in  stub helpers ()
> }}}
>
> The problem vanishes with Apple's gcc. The problem also vanishes with
> static linking.
>
> Reported to PARI/GP: [http://pari.math.u-bordeaux.fr/archives/pari-
> dev-1301/msg00000.html]

New description:

 On bsd.math (hence, Darwin), there is a problem with the GP executable
 when building Sage (or: only the pari/gp spkg) with SAGE_DEBUG=yes.

 As Jeroen found, a crash occurs as follows:
 {{{
 $ ./sage --gp
 ? factor(10356613*10694706299664611221)
 }}}
 With gdb, one then gets
 {{{
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: 13 at address: 0x0000000000000000
 0x00007fff8a66cfc1 in dyld_stub_binder ()
 (gdb) bt
 #0  0x00007fff8a66cfc1 in dyld_stub_binder ()
 #1  0x000000010040e398 in  stub helpers ()
 }}}

 The problem vanishes with Apple's gcc. The problem also vanishes with
 static linking.

 Reported to PARI/GP: [http://pari.math.u-bordeaux.fr/archives/pari-
 dev-1301/msg00000.html]

 spkg:
 [http://boxen.math.washington.edu/home/jdemeyer/spkg/pari-2.5.3.p2.spkg]

--

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