Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • GitLab
  • GitHub
  • Configuration
  • AI
  • BLOG
  • LINUX
  • ABOUT
    • ABOUT
    • Perception Style
    • Motivation

Tag Archives: electric fence debug

How to compile a program to use electric fence library for debugging ?

$cat efence-p1.c #include <stdio.h> #include <stdlib.h> int main() { char *ptr = (char *) malloc(1024); ptr[0] = 0; ptr[1024] = 0; exit(0); } $gcc -g efence-p1.c -lefence $./a.out Electric Fence 2.2 Copyright (C) 1987-1999 Bruce Perens <bruce@perens.com> Segmentation fault $

Posted byjeffrinJune 13, 2014Posted inC, Debug Method Development, Programming LanguagesTags: electric fence debug
September 2026
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  
« Aug    
TRUEANGLE, Proudly powered by WordPress.