Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2011-12

Bindings crash attn. Den

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko

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.freepascal.org/pipermail/qt/attachments/20111210/34a770f3/attachment.html>

Den Jean
to zeljko: Den, seem that you changed your gcc compiler between 2.1 and 2.4 bindings ? Problem: I…
zeljko wrote
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.

Try again, I put a new 2.5RC. When re-reading your mail fully for the reply, I just notice that you even provide the same solution :-): -mincoming-stack-boundary=XX
I did not look up when -mpreferred-stack-boundary=num changed defaults, but I vaguely remember some heated discussion about this on some mailing list.

Can you test with some themes and report please. It now works with oxygen on Fedora 15.

regards,

Den Jean