Sign in Join

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

Mailing lists / lazarus / 2011-03

Problems with r29727

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Bart

Hi,

I just updated Lazarus (SVN) to r29727.
Made a clean build from commandline using fpc 2.4.2

Now when I run Lazarus, it tends to crash at random moments (Access Violation). I haven't been able to keep it running more the 2 minutes...
I tried trapping it in gdb, but when lazarus crashes, gdb happily says the program exited normally, so I was unable to create a backtrace. I'm running Lazarus under WinMe as my OS atm (didn't test in Linux yet).

Does anyone else have Access Violations (or SIGSEGV's) with this revision?

Also some changes were obviously made that affect building/running programs in the IDE?
When I started up Lazarus and build a simple program, it started rebuilding the LCL (which was rather annoying, since I just did that when I built Lazarus). Then I openend another simple project and built it. Now Lazarus started rebuilding the lazinterface (?) package (on which the program has no obvious dependency b.t.w.). Why does this happen, and can I prevent it?

Bart

Reply by email

Paul Ishenin
to Bart

05.03.2011 7:04, Bart ?????:

Hi, I just updated Lazarus (SVN) to r29727. Made a clean build from commandline using fpc 2.4.2

Do you use range checks?

Best regards,
Paul Ishenin

Reply by email

Bart
to Paul Ishenin

I just did a make clean all OPT=-gl, so range check is probably off (it is off by default in fpc and I didn't change the fpc.cfg to put it on).

I now managed (twice) to get lazarus to crash and create a debug.log. (I can't get a backtrace in gdb, afthe the crash I have to kill startlazarsu, and lazarus using the taskmanager before gdb becoms responsive again, and the it denies thee was a crash in the firts place. Yet another reason why I'm migrating to Linux <g>)

This is Lazarus crashing almost directly after starting it:

SetPrimaryConfigPath NewValue="h:\programmas\svnlaz" -> "H:\programmas\svnlaz" TMainIDE.DoLoadLFM Creating designer for hidden component of F:\LazarusProjecten\UurCodes\main.ppTMainIDE.DoOpenProjectFile Form1:TForm1 TDesignerTApplication.HandleException Access violation Stack trace:
$00000001
$005CB486 TWIN32THEMESERVICES__GETDETAILREGION, line 191 of win32themes.pas $00432D5C THINTWINDOW__UPDATEREGION, line 91 of ./include/hintwindow.inc $004335D9 THINTWINDOW__INITIALIZEWND, line 247 of ./include/hintwindow.inc $0053A007 TWINCONTROL__CREATEWND, line 7290 of ./include/wincontrol.inc $00422E13 TSCROLLINGWINCONTROL__CREATEWND, line 34 of ./include/scrollingwincontrol.inc
$004291EC TCUSTOMFORM__CREATEWND, line 2466 of ./include/customform.inc $005399D5 TWINCONTROL__CREATEHANDLE, line 7176 of ./include/wincontrol.inc $0053AB2A TWINCONTROL__HANDLENEEDED, line 7613 of ./include/wincontrol.inc $0052B571 TCONTROLCANVAS__CREATEHANDLE, line 99 of ./include/controlcanvas.inc
$004BD846 TCANVAS__REQUIREDSTATE, line 1570 of ./include/canvas.inc $004BD012 TCANVAS__GETUPDATEDHANDLE, line 1253 of ./include/canvas.inc $00433582 THINTWINDOW__CALCHINTRECT, line 238 of ./include/hintwindow.inc $0042E1BB TAPPLICATION__SHOWHINTWINDOW, line 837 of ./include/application.inc
$0042E3FB TAPPLICATION__ONHINTTIMER, line 919 of ./include/application.inc $00557535 TCUSTOMTIMER__DOONTIMER, line 181 of customtimer.pas $0055749F TCUSTOMTIMER__TIMER, line 156 o

Both times I got the same output in debug.log, so the problem probably is in GetDetailRegion in win32themes.pas, which was introduced in r29642.

I now downgraded Laz to r29641 and the crashes seem to have gone.

I guess I'll have to file a report in Mantis?

Bart

Paul Ishenin wrote 18 lines
05.03.2011 7:04, Bart ?????: > Hi, > > I just updated Lazarus (SVN) to r29727. > Made a clean build from commandline using fpc 2.4.2 Do you use range checks? Best regards, Paul Ishenin -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Juha Manninen
to Bart: I just updated Lazarus (SVN) to r29727. Made a clean build from commandline using fpc…

Bart kirjoitti lauantai 05 maaliskuu 2011 02:04:27:

Show quoted text 13 lines
Hi, I just updated Lazarus (SVN) to r29727. Made a clean build from commandline using fpc 2.4.2 Now when I run Lazarus, it tends to crash at random moments (Access Violation). I haven't been able to keep it running more the 2 minutes... I tried trapping it in gdb, but when lazarus crashes, gdb happily says the program exited normally, so I was unable to create a backtrace. I'm running Lazarus under WinMe as my OS atm (didn't test in Linux yet). Does anyone else have Access Violations (or SIGSEGV's) with this revision?

Not SIGSEGV but sometimes I am getting the listing (below) when closing Lazarus. It does not happen always.
GDB didn't find any errors here either.
The listing would continue forever and Lazarus must be killed from task manager.
I have range checks enabled.

My "Refactor Menu" changes are one suspect but I didn't find any such problem from it.

---

Call trace for block $00007F76C0B10B20 size 80
$00000000005BE2CC line 345 of ../inc/objpas.inc
$0000000000AD96A8 line 971 of codetree.pas
$0000000000B3B924 line 1927 of identcompletiontool.pas $0000000000B2F682 line 8150 of finddeclarationtool.pas $0000000000B1E7BE line 2625 of finddeclarationtool.pas $0000000000B1D8CE line 3144 of finddeclarationtool.pas $0000000000B2665B line 5273 of finddeclarationtool.pas $0000000000B26593 line 5290 of finddeclarationtool.pas Call trace for block $00007F76C1B208C0 size 83
$00000000005B5E8E line 569 of ../inc/astrings.inc
$0000000000B09857 line 4222 of pascalparsertool.pas $0000000000B82E7A line 527 of pascalreadertool.pas $0000000000B3B8EA line 1920 of identcompletiontool.pas $0000000000B2F682 line 8150 of finddeclarationtool.pas $0000000000B1E7BE line 2625 of finddeclarationtool.pas $0000000000B1D8CE line 3144 of finddeclarationtool.pas $0000000000B2665B line 5273 of finddeclarationtool.pas Call trace for block $00007F76C0B10A40 size 80
$00000000005BE2CC line 345 of ../inc/objpas.inc
$0000000000AD96A8 line 971 of codetree.pas
$0000000000B3B924 line 1927 of identcompletiontool.pas $0000000000B2F682 line 8150 of finddeclarationtool.pas $0000000000B1E7BE line 2625 of finddeclarationtool.pas $0000000000B1D8CE line 3144 of finddeclarationtool.pas $0000000000B2665B line 5273 of finddeclarationtool.pas $0000000000B26593 line 5290 of finddeclarationtool.pas Call trace for block $00007F76C0A28AC0 size 44
$00000000005B5E8E line 569 of ../inc/astrings.inc
$0000000000B09857 line 4222 of pascalparsertool.pas ...

Reply by email

Bart
to Juha Manninen

I think I solved it, see the patch I posted in Mantis: http://bugs.freepascal.org/view.php?id=18873

Bart

Juha Manninen wrote 15 lines
Bart kirjoitti lauantai 05 maaliskuu 2011 11:12:44: > @Juha: this looks like a heaptrc output ot me. > Might be related to this: http://bugs.freepascal.org/view.php?id=18859 Right. I have also heaptrc enabled. Now I am wondering why I didn't get this error before. It seems FPC had the problem for some time already. Juha -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email