#include <misc/auxiliary.h>
#include <omalloc/omalloc.h>
#include <reporter/reporter.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
Go to the source code of this file.
§ DERROR_C
§ dErrorBreak()
§ dReportError()
int dReportError |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Definition at line 45 of file dError.cc.
48 #ifdef HAVE_EXECINFO_H 50 void *
buffer[SIZE+1];
int ret;
56 #ifndef MAKE_DISTRIBUTION 57 fprintf(stderr,
"\n// ***dError: ");
58 vfprintf(stderr, fmt, ap);
59 #if !defined(OM_NDEBUG) 60 #ifdef omPrintCurrentBackTraceMax 61 fprintf(stderr,
" occurred at: \n");
67 #ifdef HAVE_EXECINFO_H 68 ret = backtrace( buffer, SIZE );
69 fprintf(stderr,
"\nExecinfo backtrace (with %zd stack frames): \n", ret);
71 #ifndef HAVE_GCC_ABI_DEMANGLE 72 backtrace_symbols_fd(buffer, ret, STDERR_FILENO);
74 char **ptr = backtrace_symbols( buffer, ret );
80 for (
int i = 0;
i < ret;
i++)
89 fprintf (stderr,
" #%02d: '%s': ",
i, s);
90 ss[0] =
'('; s = ss + 1;
97 demangledName = abi::__cxa_demangle( s,
NULL,
NULL, &status );
98 if( status == 0 && demangledName !=
NULL )
99 fprintf (stderr,
" '%s'", (demangledName[0] != 0)? demangledName: s);
101 fprintf (stderr,
" '%s'", s);
112 fprintf (stderr,
" + %s", s);
116 fprintf (stderr,
" %s\n", ss + 2);
127 fprintf(stderr,
"\n// !!! YOU HAVE FOUND A BUG IN SINGULAR.");
128 fprintf(stderr,
"// !!! Please, email the input\n// and the following error message to singular@mathematik.uni-kl.de")
129 vfprintf(stderr, fmt, ap);
const CanonicalForm int s
int omPrintCurrentBackTraceMax(FILE *fd, int max)
static void malloc_free(void *ptr)
static int index(p_Length length, p_Ord ord)
§ malloc_free()
static void malloc_free |
( |
void * |
ptr | ) |
|
|
inlinestatic |