[Qt-interest] QPainter segmentation fault on Linux

Davide davide83 at gmail.com
Sat Feb 21 16:12:51 CET 2009


Hi,

On Sat, Feb 21, 2009 at 2:04 PM, Christoph Bartoschek <bartoschek at gmx.de> wrote:
> Do I understand it correctly: The debug version crashes when run natively
> and the debug version does not crash when run under valgrind?

Yes

> 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.

> 2. Are you using threads? Valgrind alters the scheduling of your threads. To
> check your application use heldgrind and drd on your program:
> valgrind --tool=helgrind ./your_prog  and valgrind --tool=drd ./your_prog
> 3. Does your program depend on the accuracy of floating-point computations?
> As far as I know valgrind only supports 64bits for doubles. It does not
> emulate the wider registers of some processors.

No threads, some floating point computation but no problems with
accuracy so I don't think this could be the problem.

Regards

-- 
Davide



More information about the Qt-interest-old mailing list