Beim Debugen ist mir aufgefallen, dass dieses minimale C-Programm
Code:
#include <assert.h>
#include <math.h>
#include <string.h>
#include <setjmp.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <signal.h> // signals
int
main (int argc, char *argv[])
{
char line[100000][256] = { {'\0'} };
return (0);
}
korrekt läuft, wenn es ohne Electric Fence compiliert wird, aber mit Electric Fence, konkret
gcc -O3 -D__SMP__ -D_REENTRANT -lm -lz -Wall -pedantic -ggdb -lefence -o error0 error0.c
liefert es nur "Speicherzugriffsfehler".
Insight meldet nur "Cannot insert breakpoint 1:" und gdb meldet
"Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x4000bb50: Eingabe-/Ausgabefehler.
The same program may be running in another process. "
Ist das ein Fehler im gcc oder im Electric Fence?
Lesezeichen