Skip to content

how to debug the segfaults

Alex Liberzon edited this page Sep 10, 2016 · 2 revisions

Mac users can download the Mac version of Electric Fence here memory debuggers, see at the bottom the compressed folder bz2 after expanding, probably best to change the installation library (at least that's what I had to do on my Mac:

 open `Makefile` and change  line 8 to: 

LIB_INSTALL_DIR= /usr/local/lib

Then it's just

sudo make

that did the installation for me.

then I could compile with the memory debugger as it's suggested:

    cd liboptv  
    mkdir build && cd build  
    cmake --DCMAKE_BUILD_TYPE=Debug ../  
    make verify  
    sudo make install
Clone this wiki locally