[Lazarus] Dear developers, we need your help before releasing 0.9.26

Vincent Snijders vsnijders at quicknet.nl
Fri Sep 19 13:31:37 CEST 2008


Mark Morgan Lloyd schreef:
> Using lazarus-0.9.25-20080828 compiled with FPC 2.2.0 which I believe is 
> robust on SPARC, hosted on Debian "Etch" with KDE on an Ultra-60, I get:
> 
> (gdb) run
> Starting program: /usr/local/share/lazarus-0.9.25/lazarus
> [Thread debugging using libthread_db enabled]
> [New Thread 16384 (LWP 31206)]
> 
> Gdk-CRITICAL **: file gdkgc.c: line 502 (gdk_gc_set_function): assertion 
> `gc != NULL' failed.
> 
> Gdk-CRITICAL **: file gdkdraw.c: line 381 (gdk_draw_pixmap): assertion 
> `gc != NULL' failed.
> 
> Gdk-CRITICAL **: file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != 
> NULL' failed.
> TMainIDE.ParseCmdLineOptions:
>    PrimaryConfigPath="/home/markMLl/.lazarus"
>    SecondaryConfigPath="/etc/lazarus"
> NOTE: miscellaneous options file not found - using defaults
> NOTE: codetools config file not found - using defaults
> NOTE: help options config file not found - using defaults
> TMainIDE.DoNewProject A
> TCustomFormEditor.CreateComponent Form1:TForm1 False
> TMainIDE.DoNewEditorFile END unit1.pas
> 
> Program received signal SIGBUS, Bus error.
> [Switching to Thread 16384 (LWP 31206)]
> 0x001821d0 in TPEN__FREEREFERENCE (this=0xf6f10430) at pen.inc:230
> 230     pen.inc: No such file or directory.
>          in pen.inc
> (gdb) backtrace
>

To me, this seems to be a compiler bug. Line 230 is:
   if not FReference.Allocated then Exit;
FReference is an object with a boolean property Allocated. I see no 
reason, why this should give a problem.

Can you try with fpc 2.2.2?

> I notice that on x86 I do not get those initial assertions- before I 
> even start trying to look at the source can anybody say whether that's 
> significant?
> 

I have no idea, maybe a gtk expert.

> Is there somewhere more appropriate that I should be posting or 
> discussing this? I'm very inexperienced in the arcane ways of formal bug 
> reports etc.
> 

For discussion bug, this is the best place. The bug tracker is a bit 
memory (it is easier to look up things), but not the right place for 
debugging.

Vincent



More information about the Lazarus mailing list