Qt-interest Archive, May 2008
Segmentation fault from QRegion::setRects () when QT embedded is built in release mode and O3 optimization
Message 1 in thread
Hi All,
When i run an application and link it against the Qt embedded library built
in release mode with O3 optimization its causing segmentation fault. When i
tried using gdb to locate the place it reported QRegion::setRects
() as causing segmentation fault. If the libraries are in debug mode and O2
optimization (by default) segmentation fault is not occuring. Is
there anything wrong building library with this configuration?
I am using Qt embedded 4.4.0 on ARM processor with 210MB RAM.
--
Regards,
Harinandan S
Message 2 in thread
Hi,
> When i run an application and link it against the Qt embedded library
> built in release mode with O3 optimization its causing segmentation
> fault. When i tried using gdb to locate the place it reported
> QRegion::setRects () as causing segmentation fault. If the libraries are
> in debug mode and O2 optimization (by default) segmentation fault is not
> occuring. Is there anything wrong building library with this configuration?
Probably a compiler bug.
Solution is not to use -O3 until the compiler is fixed, at least for the
specific source file that's causing the segfault.
--
[ signature omitted ]