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

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Sat Sep 20 10:00:58 CEST 2008


Vincent Snijders wrote:
> 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.

Using fpc 2.2.3 compiled without optimisation I appear to get the same:

(gdb) run
Starting program: /usr/local/bin/lazarus
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 25243)]

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 25243)]
0x001821d0 in TPEN__FREEREFERENCE (this=0xf6ec8610) at pen.inc:230
230     pen.inc: No such file or directory.
         in pen.inc
(gdb) backtrace
#0  0x001821d0 in TPEN__FREEREFERENCE (this=0xf6ec8610) at pen.inc:230
#1  0x001823e8 in TPEN__SETCOLOR (NEWCOLOR=8421504, NEWFPCOLOR=
       {RED = 32896, GREEN = 32896, BLUE = 32896, ALPHA = 65535}, 
this=0xf6ec8610) at pen.inc:269
#2  0x00181ac4 in TPEN__SETCOLOR (VALUE=8421504, this=0xf6ec8610) at 
pen.inc:47
#3  0x00167554 in TCUSTOMTREEVIEW__DOPAINT (this=0xf6f792a0) at 
treeview.inc:4031
#4  0x00163a50 in TCUSTOMTREEVIEW__PAINT (this=0xf6f792a0) at 
treeview.inc:2999
#5  0x001e862c in TCUSTOMCONTROL__PAINTWINDOW (DC=-145145824, 
this=0xf6f792a0) at customcontrol.inc:127
#6  0x001ce9bc in TWINCONTROL__PAINTHANDLER (THEMESSAGE=
       {MSG = 66592, DC = -145145824, PAINTSTRUCT = 0xf6ecd610, RESULT = 
0}, this=0xf6f792a0)
     at wincontrol.inc:4239
#7  0x001d432c in TWINCONTROL__WMPAINT (MSG=
       {MSG = 66592, DC = -145145824, PAINTSTRUCT = 0xf6ecd610, RESULT = 
0}, this=0xf6f792a0)
     at wincontrol.inc:6043
#8  0x001e8514 in TCUSTOMCONTROL__WMPAINT (MESSAGE=
       {MSG = 66592, DC = -145145824, PAINTSTRUCT = 0xf6ecd610, RESULT = 
0}, this=0xf6f792a0)
     at customcontrol.inc:107
#9  0x0002ca78 in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#10 0x001ddec0 in TCONTROL__WNDPROC (THEMESSAGE=
       {MSG = 66592, WPARAM = -145145824, LPARAM = -152250864, RESULT = 
0, WPARAMHI = 63321, WPARAMLO = 16416, LPARAMHI = 63212, LPARAMLO = 
54800, RESULTHI = 0, RESULTLO = 0}, this=0xf6f792a0) at control.inc:1583
#11 0x001d070c in TWINCONTROL__WNDPROC (MESSAGE=
       {MSG = 66592, WPARAM = -145145824, LPARAM = -152250864, RESULT = 
0, WPARAMHI = 63321, WPARAMLO = 16416, LPARAMHI = 63212, LPARAMLO = 
54800, RESULTHI = 0, RESULTLO = 0}, this=0xf6f792a0) at wincontrol.inc:4749
#12 0x00166cd4 in TCUSTOMTREEVIEW__WNDPROC (MESSAGE=
       {MSG = 66592, WPARAM = -145145824, LPARAM = -152250864, RESULT = 
0, WPARAMHI = 63321, WPARAMLO = 16416, LPARAMHI = 63212, LPARAMLO = 
54800, RESULTHI = 0, RESULTLO = 0}, this=0xf6f792a0) at treeview.inc:3884
#13 0x002ff950 in DELIVERMESSAGE (TARGET=0xf6f792a0, AMESSAGE=void) at 
gtkproc.inc:3547
#14 0x0030ed48 in DODELIVERPAINTMESSAGE (TARGET=0xf6f792a0, PAINTMSG=
       {MSG = 66592, DC = -145145824, PAINTSTRUCT = 0xf6ecd610, RESULT = 
0}) at gtkcallback.inc:50
#15 0x002e839c in TGTKWIDGETSET__SENDMESSAGE (HANDLEWND=14639392, 
MSG=66659, WPARAM=-153572208, LPARAM=28,
     this=0xf76f4020) at gtkwinapi.inc:8159
#16 0x002c4adc in TGTKWIDGETSET__APPPROCESSMESSAGES (this=0xf76f4020) at 
gtkwidgetset.inc:1202
#17 0x000551dc in TAPPLICATION__HANDLEMESSAGE (this=0xf78ac020) at 
application.inc:980
#18 0x000556a4 in TAPPLICATION__RUNLOOP (this=0xf78ac020) at 
application.inc:1091
#19 0x000c1478 in TWIDGETSET__APPRUN (ALOOP=0x55648 
<TAPPLICATION__RUNLOOP>, this=0xf76f4020)
     at interfacebase.inc:49
#20 0x00055640 in TAPPLICATION__RUN (this=0xf78ac020) at 
application.inc:1078
#21 0x0001a7b4 in main () at lazarus.pp:104
(gdb)

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the Lazarus mailing list