[Qt-interest] QPainter segmentation fault on Linux
Christoph Bartoschek
bartoschek at gmx.de
Sat Feb 21 17:47:23 CET 2009
Davide wrote:
>> 1. Compile an optimized version of your program but leave the debug
>> symbols in (-O2 -g) and then try valgrind.
>
> Compile an optimized version means a "release" version?
> I'm sorry but I'm no so familiar with compiler flags. Anyway I will
> try something on Monday at work.
Yes. But you have to make sure that the optimized code is compiled with
debug symbols. Unix compilers enable debug symbols with -g. Debug symbols
do not harm the optimization of the code. It should run as fast ass without
debug symbols.
You also have to ensure that the debug symbols are not stripped after
compiling. Some build environments always strip the final binary.
Christoph
More information about the Qt-interest-old
mailing list