Forum > Linux
Running Lazarus on FreeBSD RELEASE-5.2.1
pewe:
I am trying to run Lazarus on my FreeBSD machine
but it fails always on the same place in control.inc
FreeBSD RELEASE-5.2.1
FPC Version: fpc-head
Lazarus Version: lazarus-head
GNU gdb 5.3 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd5.2"...
(gdb) run
Starting program: /usr/local/src/fpc-devel/lazarus/lazarus
Program received signal SIGSEGV, Segmentation fault.
TCONTROL__WNDPROC (THEMESSAGE={MSG = 45067, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$288f5084) at control.inc:1372
in control.inc
(gdb) bt
#0 TCONTROL__WNDPROC (THEMESSAGE={MSG = 45067, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$288f5084) at control.inc:1372
#1 $08303039 in TWINCONTROL__WNDPROC (MESSAGE={MSG = 45067, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$288f5084) at wincontrol.inc:1822
#2 $0839730e in TCUSTOMFORM__WNDPROC (THEMESSAGE={MSG = 45067, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}, this=$288f5084) at customform.inc:813
#3 $083073cc in TCONTROL__PERFORM (MSG=45067, WPARAM=0, LPARAM=0, this=$288f5084) at control.inc:837
#4 $08309eae in TCONTROL__SETVISIBLE (VALUE=false, this=$288f5084) at control.inc:2473
#5 $08396ad7 in TCUSTOMFORM__SETVISIBLE (VALUE=false, this=$288f5084) at customform.inc:284
#6 $08397bf4 in TCUSTOMFORM__CREATENEW (AOWNER=$0, NUM=1, vmt=$0, this=$288f5084) at customform.inc:1114
#7 $08397a74 in TCUSTOMFORM__CREATE (AOWNER=$0, vmt=$0, this=$288f5084) at customform.inc:1074
#8 $0839389d in TSPLASHFORM__CREATE (AOWNER=$0, vmt=$858ffd8, this=$288f5084) at splash.pp:66
#9 $083ae65e in main () at lazarus.pp:66
(gdb)
greetings pewe
Marc:
you can try to comment out line 1372 of controls.inc ( the line containing
SendDockNotification) to see if it makes any difference.
Anonymous:
then it hangs at another place (i have to look where, will follow).
the point is, that with FreeBSD 5.1 and fpc-1.0.10 there is no problem, running lazarus head.
do you know if this a problem between fpc-head and FreeBSD 5.2.1 or a lazarus problem ?
Anonymous:
commented out line 1372 in control.inc
i get the splash-screen, then a dialog with an access violation
and gdb says:
GNU gdb 5.3 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd5.2"...
(gdb)run
Starting program: /usr/local/src/fpc-devel/lazarus/lazarus
Note: environment config file not found - using defaults
NOTE: editor options config file not found - using defaults
NOTE: miscellaneous options file not found - using defaults
NOTE: codetools config file not found - using defaults
Program received signal SIGSEGV, Segmentation fault.
$0839e67c in fpc_check_object ()
(gdb) bt
#0 $0839e67c in fpc_check_object ()
#1 $0823e968 in ADDPOPUPMENUITEM (NEWMENUITEM=$289b4a04, PARENTMENUITEM=$0, ANAME=$84b8a2c, ACAPTION=$84b8a54, AHINT=$84b8a7c, ANONCLICK=$823fae4 <TOBJECTINSPECTOR__ONSETDEFAULTPOPUPMENUITEMCLICK>, CHECKEDFLAG=false,
ENABLEDFLAG=true, VISIBLEFLAG=true, parentfp=$bfbfe9f0) at objectinspector.pp:2243
#2 $0823e2f1 in TOBJECTINSPECTOR__CREATE (ANOWNER=$2891c154, vmt=$84b7f40, this=$289b2b64) at objectinspector.pp:2302
#3 $08374949 in TMAINIDE__SETUPOBJECTINSPECTOR (this=$2891c154) at main.pp:1206
#4 $083739c7 in TMAINIDE__CREATE (THEOWNER=$861e5d4, vmt=$0, this=$2891c154) at main.pp:885
#5 $0839b565 in TAPPLICATION__CREATEFORM (INSTANCECLASS=$8568ecc, REFERENCE=void, this=$861e5d4) at application.inc:1136
#6 $083ae695 in main () at lazarus.pp:74
(gdb) cont
Continuing.
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
TApplication.HandleException Access violation
TApplication.HideAllFormsWithStayOnTop :TSplashForm
Program received signal SIGSEGV, Segmentation fault.
$08221e5f in TDEBUGMANAGER__UPDATEBUTTONSANDMENUITEMS (this=$289b2754) at debugmanager.pas:1141
1141 RunSpeedButton.Enabled := DebuggerInvalid
(gdb) bt
#0 $08221e5f in TDEBUGMANAGER__UPDATEBUTTONSANDMENUITEMS (this=$289b2754) at debugmanager.pas:1141
#1 $08378810 in TMAINIDE__SETTOOLSTATUS (AVALUE=ITEXITING, this=$2891c154) at main.pp:2247
#2 $08373aff in TMAINIDE__DESTROY (vmt=$1, this=$2891c154) at main.pp:914
#3 $0835d4eb in CLASSES_TCOMPONENT_$__DESTROYCOMPONENTS ()
#4 $0835d473 in CLASSES_TCOMPONENT_$__DESTROY ()
#5 $082b72a7 in CUSTAPP_TCUSTOMAPPLICATION_$__DESTROY ()
#6 $083996e1 in TAPPLICATION__DESTROY (vmt=$1, this=$861e5d4) at application.inc:111
#7 $083a4fb9 in SYSTEM_TOBJECT_$__FREE ()
#8 $083944b1 in FREEINTERFACEOBJECT () at forms.pp:1264
#9 $0839c3e4 in INTERFACES_finalize () at interfaces.pp:46
#10 $083a7cd3 in SYSTEM_FINALIZEUNITS ()
#11 $083a7d36 in SYSTEM_INTERNALEXIT ()
#12 $083a7efc in SYSTEM_DO_EXIT ()
#13 $083a7f39 in SYSTEM_HALT$BYTE ()
#14 $083a8086 in SYSTEM_RUNERROR$WORD ()
#15 $083a5ea5 in SYSTEM_DOUNHANDLEDEXCEPTION ()
#16 $083a6234 in fpc_reraise ()
#17 $0839b593 in TAPPLICATION__CREATEFORM (INSTANCECLASS=$8568ecc, REFERENCE=void, this=$861e5d4) at application.inc:1135
#18 $083ae695 in main () at lazarus.pp:74
(gdb) cont
Continuing.
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
TApplication.HandleException Access violation
TApplication.HideAllFormsWithStayOnTop :TSplashForm
Runtime error 217 at $083A5EA5
$083A5EA5
$083A5EF1
$08353E84
$083A7FC6
$083A9F43
$BFBFFFB4 main, line 362 of mainbar.pas
$08378810 TMAINIDE__SETTOOLSTATUS, line 2247 of main.pp
$08373AFF TMAINIDE__DESTROY, line 914 of main.pp
$0835D4EB
$0835D473
$082B72A7
$083996E1 TAPPLICATION__DESTROY, line 111 of ./include/application.inc
$083A4FB9
$083944B1 FREEINTERFACEOBJECT, line 1264 of forms.pp
$0839C3E4 INTERFACES_finalize, line 46 of interfaces.pp
$083A7CD3
$083A7D36
$083A7EFC
$083A7F39
$083A8086
$083A5EA5
$083A6234
$0839B593 TAPPLICATION__CREATEFORM, line 1135 of ./include/application.inc
$083AE695 main, line 74 of lazarus.pp
$0805236A
Program exited with code 0331.
(gdb) quit
Marc:
Hmm... I've no experience with *BSD. Recently there were some problems with docking. Commenting out the single line helped for those problems. It seems that you've other issues.
Better ask it on the Lazarus mailing list, there is more BSD experience
Navigation
[0] Message Index
[#] Next page