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/ _______________________________________________ flac-dev mailing list flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev