[Lazarus] Lazarus compiled with FPC2.4.4, -O2 optimized, crashes

2012-02-19 Thread Juha Manninen
Interesting bug: Lazarus crashes when it is compiled with FPC2.4.4 and -O2, on Linux. Maybe it has happened for long, I have not built an optimized binary for a long time. Happens with both GTK2 and QT bindings. Juha --- TMainIDE.DoLoadLFM Creating designer for hidden component of

Re: [Lazarus] Lazarus compiled with FPC2.4.4, -O2 optimized, crashes

2012-02-19 Thread zeljko
On Sunday 19 of February 2012 19:47:24 Juha Manninen wrote: Interesting bug: Lazarus crashes when it is compiled with FPC2.4.4 and -O2, on Linux. Maybe it has happened for long, I have not built an optimized binary for a long time. Happens with both GTK2 and QT bindings. Juha ---

Re: [Lazarus] Lazarus compiled with FPC2.4.4, -O2 optimized, crashes

2012-02-19 Thread Martin
line 443 is a begin statement? On 19/02/2012 18:58, zeljko wrote: On Sunday 19 of February 2012 19:47:24 Juha Manninen wrote: Interesting bug: Lazarus crashes when it is compiled with FPC2.4.4 and -O2, on Linux. Maybe it has happened for long, I have not built an optimized binary for a

Re: [Lazarus] Lazarus compiled with FPC2.4.4, -O2 optimized, crashes

2012-02-19 Thread Juha Manninen
Ok, I made a proper backtrace. The line numbers are more correct, too. This is not a serious issue. It happens only with -O2 and FPC 2.4.4. 2.6.x is better in many ways. --- (gdb) bt #0 TEXTTOVIEWINDEX (this=0x0, AINDEX=412) at lazsynedittext.pas:444 #1 0x00d01c74 in TEXTTOVIEWINDEX

Re: [Lazarus] Lazarus compiled with FPC2.4.4, -O2 optimized, crashes

2012-02-19 Thread Martin
I can't reproduce it. Ok I do not have Linux and 2.4.4. I tried - Fedora (gtk) 2.5.1 -O2 - Win 2.4.4 -O2 But that looks like an FPC issue... See below: - If the constructor has an exception, then that woul run destroy automatically; but things would crash much earlier... anyway. re-run in