#10018: Unhandled SIGSEGV after bnfcertify()
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: jdemeyer
Type: defect | Status: new
Priority: critical | Milestone: sage-4.6
Component: c_lib | Keywords: segfault segmentation fault allocatemem
interrupt _sig_on _sig_retry
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Comment(by leif):
Replying to [comment:13 leif]:
> The actual error message should be {{{vsnprintf()}}}'ed into a buffer
(upstream) such that we can also propagate the real cause.
I added the following in {{{src/language/init.c}}} to debug PARI:
{{{
#!C
void
pari_err(int numerr, ...)
{
PariOUT *out = pariOut;
va_list ap;
va_start(ap,numerr);
if (numerr==talker) /* added part */
{
va_list ap2;
const char *fmt;
va_copy(ap2,ap);
fmt=(char*)va_arg(ap2,char*);
vfprintf(stderr,fmt,ap2); /* we can equally well write into a global
buffer here */
fflush(stderr); /* with vsnprintf() to propagate the error
message */
}
...
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10018#comment:15>
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.