[Qt] Bindings crash attn. Den

zeljko zeljko at holobit.net
Sat Dec 10 21:29:52 CET 2011


Hi,

Den, seem that you changed your gcc compiler between 2.1 and 2.4 bindings ?

Problem: I have gcc-4.5.1 (Fedora 14) , when I rebuild bindings (no matter is 
it 2.1,2.4 or even 2.5Rc)  - it crashes imediatelly with oxygen theme.

Test application can be simple form with only one control (doesn't matter 
which one) ... TButton, TBitBtn, TTreeView etc.
Empty form does not crash, and TLabel on such form doesn't crash, but 
TSpeedButton crashes (obviously because it calls theme to paint QPushButton).

Your first binary compiled with -mstackrealign (2.1) WORKS FINE, all other 
crashes.
Now I really don't know what to do .... seem that -mstackrealign is broken in 
decent gcc's or we need to play with -mincoming-stack-boundary=XX ...and don't 
know what value would be added to that param. XX=numbytes and gcc it assumes 
as xx * 2, so if param is 8 it'll assume 16 (tried with param 4 and param 8 
and it crashes too).
Also compiled 2.5RC without -mstackrealign - and got same crashes, so it seem 
that -mstackrealign means exactly nothing with my gcc version.

NOTE: all crashes happens with themes which are NOT standard qt lib themes eg. 
oxygen.

Maybe we must pass some more params to gcc ?

P.S: DO NOT DELETE THAT GOOD BINARY FROM YOUR WEB PAGE :)

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20111210/34a770f3/attachment-0002.html>


More information about the Qt mailing list