Vincent Snijders wrote 6 lines
I think what I needed to know was that Lazarus is already compiled with debugging info etc.- somebody please correct me if I'm wrong and it needs additional options.
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
#0 0x001821d0 in TPEN__FREEREFERENCE (this=0xf6f10430) at pen.inc:230 #1 0x001823e8 in TPEN__SETCOLOR (NEWCOLOR=8421504, NEWFPCOLOR= {RED = 32896, GREEN = 32896, BLUE = 32896, ALPHA = 65535}, this=0xf6f10430) at pen.inc:269
#2 0x00181ac4 in TPEN__SETCOLOR (VALUE=8421504, this=0xf6f10430) at pen.inc:47
#3 0x00167554 in TCUSTOMTREEVIEW__DOPAINT (this=0xf6fd12a0) at treeview.inc:4031
#4 0x00163a50 in TCUSTOMTREEVIEW__PAINT (this=0xf6fd12a0) at treeview.inc:2999
#5 0x001e862c in TCUSTOMCONTROL__PAINTWINDOW (DC=-144883680, this=0xf6fd12a0) at customcontrol.inc:127
#6 0x001ce9bc in TWINCONTROL__PAINTHANDLER (THEMESSAGE= {MSG = 66592, DC = -144883680, PAINTSTRUCT = 0xf6f15430, RESULT = 0}, this=0xf6fd12a0)
at wincontrol.inc:4239
#7 0x001d432c in TWINCONTROL__WMPAINT (MSG=
{MSG = 66592, DC = -144883680, PAINTSTRUCT = 0xf6f15430, RESULT = 0}, this=0xf6fd12a0)
at wincontrol.inc:6043
#8 0x001e8514 in TCUSTOMCONTROL__WMPAINT (MESSAGE= {MSG = 66592, DC = -144883680, PAINTSTRUCT = 0xf6f15430, RESULT = 0}, this=0xf6fd12a0)
at customcontrol.inc:107
#9 0x0002ca78 in SYSTEM_TOBJECT_$__DISPATCH$formal () #10 0x001ddec0 in TCONTROL__WNDPROC (THEMESSAGE=
{MSG = 66592, WPARAM = -144883680, LPARAM = -151956432, RESULT = 0, WPARAMHI = 63325, WPARAMLO = 16416, LPARAMHI = 63217, LPARAMLO = 21552, RESULTHI = 0, RESULTLO = 0}, this=0xf6fd12a0) at control.inc:1583 #11 0x001d070c in TWINCONTROL__WNDPROC (MESSAGE=
{MSG = 66592, WPARAM = -144883680, LPARAM = -151956432, RESULT = 0, WPARAMHI = 63325, WPARAMLO = 16416, LPARAMHI = 63217, LPARAMLO = 21552, RESULTHI = 0, RESULTLO = 0}, this=0xf6fd12a0) at wincontrol.inc:4749 #12 0x00166cd4 in TCUSTOMTREEVIEW__WNDPROC (MESSAGE= {MSG = 66592, WPARAM = -144883680, LPARAM = -151956432, RESULT = 0, WPARAMHI = 63325, WPARAMLO = 16416, LPARAMHI = 63217, LPARAMLO = 21552, RESULTHI = 0, RESULTLO = 0}, this=0xf6fd12a0) at treeview.inc:3884 #13 0x002ff950 in DELIVERMESSAGE (TARGET=0xf6fd12a0, AMESSAGE=void) at gtkproc.inc:3547
#14 0x0030ed48 in DODELIVERPAINTMESSAGE (TARGET=0xf6fd12a0, PAINTMSG= {MSG = 66592, DC = -144883680, PAINTSTRUCT = 0xf6f15430, RESULT = 0}) at gtkcallback.inc:50
#15 0x002e839c in TGTKWIDGETSET__SENDMESSAGE (HANDLEWND=14639848, MSG=66659, WPARAM=-153244864, LPARAM=28,
this=0xf7734020) at gtkwinapi.inc:8159
#16 0x002c4adc in TGTKWIDGETSET__APPPROCESSMESSAGES (this=0xf7734020) at gtkwidgetset.inc:1202
#17 0x000551dc in TAPPLICATION__HANDLEMESSAGE (this=0xf78ec020) at application.inc:980
#18 0x000556a4 in TAPPLICATION__RUNLOOP (this=0xf78ec020) at application.inc:1091
#19 0x000c1478 in TWIDGETSET__APPRUN (ALOOP=0x55648 <TAPPLICATION__RUNLOOP>, this=0xf7734020)
at interfacebase.inc:49
#20 0x00055640 in TAPPLICATION__RUN (this=0xf78ec020) at application.inc:1078
#21 0x0001a7b4 in main () at lazarus.pp:104
(gdb)
As a detail, until I quit out of the debugger the splash image appears on all desktops in front of anything else.
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?
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.
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]