#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: Not yet reported upstream; Will do shortly. | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------------------------------------------+------------
Description changed by jdemeyer:
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(-70665476079756004438844153774)
> }}}
> 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 ()
> }}}
> A smaller testcase is `? factor(10356613*10694706299664611221)`
>
> According to Jeroen, the problem vanishes with Apple's gcc.
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]
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13921#comment:2>
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.