← Back to team overview

elementary-dev-community team mailing list archive

Re: Fixin' Files

 

On Mon, Jul 22, 2013 at 3:26 PM, Sergey "Shnatsel" Davidoff
<sergey@xxxxxxxxxxxxxxxx> wrote:
> First, I have to add "-lefence" to the C compiler parameters in CMake and I
> have little idea how to do that. This will make Files segfault exactly where
> the original corruption happens and ease debugging greatly. It's much more
> fun than trying to track down the crashes in regular builds!

I can give it a try

SET(GCC_EF_COMPILE_FLAGS "-fefence")
SET(GCC_EF_LINK_FLAGS    "-lefence")


SET( CMAKE_C_FLAGS  "${CMAKE_C_FLAGS} ${GCC_EF_COMPILE_FLAGS}" )
SET( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} ${GCC_EF_LINK_FLAGS}" )

Then use LD_PRELOAD


> Second, I totally suck at OOP so I probably won't be able to fix the crashes
> even if I track them down. Anyone up for joining me in fixing this?

Finding is cause of the problem usually the toughest part. I can try, but
since my knowledge of C, memory profiling etc is limited, I can't guarantee.

-
Manish


Follow ups

References