[flac-dev] PATCH: x86-64 support and SSE intrinscis code

Erik de Castro Lopo mle+la at mega-nerd.com
Sun Sep 15 03:34:03 PDT 2013


Erik de Castro Lopo wrote:

> There is a segfault happening in the new code when compiling with
> -DDEBUG. Trying to track it down.

This turned out somewhat nasty.

The segfault was only happening in the libFLAC++ code and only when
compiled with -DDEBUG. Debugging with GDB and Valgrind only managed
to track the problem down to code where constructors or destructors
would be.

I then added -Weffc++ to CXXFLAGS and found a number of classes which
contained pointer data members but which had no copy constructors or
assignment operator methods. The other problem we related in missing
data member initializers.

Fixing all these issues made the segfault disappear.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list