#include "misc/auxiliary.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 43 of file dError.cc.
46 #ifdef HAVE_EXECINFO_H 48 void *buffer[SIZE+1];
int ret;
54 #ifndef MAKE_DISTRIBUTION 55 fprintf(stderr,
"\n// ***dError: ");
56 vfprintf(stderr, fmt, ap);
57 #if !defined(OM_NDEBUG) 58 #ifdef omPrintCurrentBackTraceMax 59 fprintf(stderr,
" occurred at: \n");
65 #ifdef HAVE_EXECINFO_H 66 ret = backtrace( buffer, SIZE );
67 fprintf(stderr,
"\nExecinfo backtrace (with %zd stack frames): \n", ret);
69 #ifndef HAVE_GCC_ABI_DEMANGLE 70 backtrace_symbols_fd(buffer, ret, STDERR_FILENO);
72 char **ptr = backtrace_symbols( buffer, ret );
78 for (
int i = 0;
i < ret;
i++)
87 fprintf (stderr,
" #%02d: '%s': ",
i, s);
88 ss[0] =
'('; s = ss + 1;
95 demangledName = abi::__cxa_demangle( s,
NULL,
NULL, &status );
96 if( status == 0 && demangledName !=
NULL )
97 fprintf (stderr,
" '%s'", (demangledName[0] != 0)? demangledName: s);
99 fprintf (stderr,
" '%s'", s);
110 fprintf (stderr,
" + %s", s);
114 fprintf (stderr,
" %s\n", ss + 2);
125 fprintf(stderr,
"\n// !!! YOU HAVE FOUND A BUG IN SINGULAR.");
126 fprintf(stderr,
"// !!! Please, email the input\n// and the following error message to singular@mathematik.uni-kl.de")
127 vfprintf(stderr, fmt, ap);
const CanonicalForm int s
static void malloc_free(void *ptr)
static int index(p_Length length, p_Ord ord)
#define omPrintCurrentBackTraceMax(A, B)
◆ malloc_free()
static void malloc_free |
( |
void * |
ptr | ) |
|
|
inlinestatic |