[lazarus] Extra (gdb) info for: Bug# 159

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 26 04:26:18 EST 2003


On Fri, 26 Dec 2003 12:15:54 +1000  prologic at shortcircuit.net.au (James
Mills) wrote:

Thanks for the report.
But it is not the backtrace of the range check error. You have to set a
break point for this. Please do the following:

[]$ gdb lazarus
(gdb) break FPC_RAISEEXCEPTION
(gdb) run
(gdb) bt


Mattias




> $ gdb lazarus
> GNU gdb 6.0-debian
> Copyright 2003 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-linux"...
> (gdb) run
> Starting program:
> /home/prologic/programming/temp/lazarus/lazarus/lazarus 
> 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
> 
> NOTE: FPC Source Directory not set! (see Environment Options)
> 
> NOTE: Could not create Define Template for Free Pascal Sources
> TMainIDE.DoNewProject A
> TMainIDE.DoNewEditorFile A NewFilename=
> TPascalParserTool.BuildTree B OnlyIntf=FALSE  project1.lpr
> [TCustomFormEditor.CreateComponent] Class='TFORM'
> TPascalParserTool.BuildTree B OnlyIntf=FALSE  project1.lpr
> TMainIDE.DoNewEditorFile end unit1.pas
> TMainIDE.DoNewProject end 0
> TApplication.HandleException Range check error
> TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM
> TApplication.HandleException: there was another exception during showing
> the first exception
> [TMainIDE.Destroy] A
> 
> Program received signal SIGSEGV, Segmentation fault.
> TDEFINETEMPLATE__FINDCHILDBYNAME (ANAME=$8489c63, this=$0)
>     at definetemplates.pas:1554
> 1554	definetemplates.pas: No such file or directory.
> 	in definetemplates.pas
> (gdb) bt
> #0  TDEFINETEMPLATE__FINDCHILDBYNAME (ANAME=$8489c63, this=$0)
>     at definetemplates.pas:1554
> #1  $081974c6 in REMOVEAUTOGENERATEDDEFINE (PARENTTEMPLATE=$0,
> NAME=$8489c63)
>     at editdefinetree.pas:379
> #2  $08196fe8 in UPDATECOMPILEROPTIONSTEMPLATES (PARENTTEMPLATE=$0, 
>     COMPOPTS=$40552474, RECURSIVEDEFINES=true, CLEARCACHE=true)
>     at editdefinetree.pas:265
> #3  $081f3d88 in TPROJECTDEFINETEMPLATES__COMPILERFLAGSCHANGED (
>     this=$4064ae04) at project.pp:2754
> #4  $081f3cf4 in TPROJECTDEFINETEMPLATES__ENDUPDATE (this=$4064ae04)
>     at project.pp:2728
> #5  $081f0b6c in TPROJECT__ENDUPDATE (this=$405a9794) at project.pp:1744
> #6  $081f0aa3 in TPROJECT__CLEAR (this=$405a9794) at project.pp:1726
> #7  $081eef29 in TPROJECT__DESTROY (this=$405a9794) at project.pp:1314
> #8  $083d905f in _SYSLINUX$$_$$_TOBJECT_$$_FREE ()
> #9  $081fe6de in FREETHENNIL (OBJ=$405a9794) at ideprocs.pp:943
> #10 $082dc431 in TMAINIDE__DESTROY (this=$404ae6c4) at main.pp:935
> #11 $083c361b in _CLASSES$$_$$_TCOMPONENT_$$_DESTROYCOMPONENTS ()
> #12 $083c35c9 in _CLASSES$$_$$_TCOMPONENT_$$_DESTROY ()
> #13 $0833c10b in _CUSTAPP$$_$$_TCUSTOMAPPLICATION_$$_DESTROY ()
> #14 $08345997 in TAPPLICATION__DESTROY (this=$85e0fa4) at
> application.inc:111
> #15 $083d905f in _SYSLINUX$$_$$_TOBJECT_$$_FREE ()
> #16 $0833ff9f in FREEINTERFACEOBJECT () at forms.pp:1246
> #17 $083d19f8 in INTERFACES_finalize () at interfaces.pp:46
> #18 $083d894d in _SYSLINUX$$_FINALIZEUNITS ()
> #19 $083d8998 in _SYSLINUX$$_INTERNALEXIT ()
> #20 $083d8a88 in _SYSLINUX$$_DO_EXIT ()
> #21 $083d8ad5 in
> _SYSLINUX$$_INTERNAL_BREAK_ERROR$LONGINT$POINTER$LONGINT ()
> #22 $083d8c86 in _SYSLINUX$$_HALT ()
> #23 $08346ced in TAPPLICATION__HANDLEEXCEPTION (SENDER=$0,
> this=$85e0fa4)
> ---Type <return> to continue, or q <return> to quit---
>     at application.inc:691
> #24 $0831e8f1 in DELIVERMESSAGE (TARGET=$40648eb4, AMESSAGE=void)
>     at gtkproc.inc:2178
> #25 $083a0bb8 in TGTKOBJECT__SENDMESSAGE (HANDLEWND=141592800, MSG=1123, 
>     WPARAM=1078831940, LPARAM=-1073745204, this=$85e11f4)
>     at gtkwinapi.inc:7292
> #26 $083829ba in TGTKOBJECT__HANDLEEVENTS (this=$85e11f4)
>     at gtkobject.inc:1362
> #27 $083448e9 in TCUSTOMFORM__SHOWMODAL (this=$40611fc4)
>     at customform.inc:1433
> #28 $083602b7 in SHOWPROMPTDIALOG (DIALOGCAPTION=$40616430, 
>     DIALOGMESSAGE=$40616a10, DIALOGTYPE=257, BUTTONS=$40594ff4, 
>     BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=2, USEDEFAULTPOS=true,
> X=0, 
>     Y=0) at promptdialog.inc:364
> #29 $083d14c3 in TINTERFACEBASE__PROMPTUSER (DIALOGCAPTION=$40616430, 
>     DIALOGMESSAGE=$40616a10, DIALOGTYPE=257, BUTTONS=$40594ff4, 
>     BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=2, this=$85e11f4)
>     at intfbaselcl.inc:349
> #30 $08365eae in PROMPTUSER (DIALOGCAPTION=$40616430, 
>     DIALOGMESSAGE=$40616a10, DIALOGTYPE=257, BUTTONS=$40594ff4, 
>     BUTTONCOUNT=2, DEFAULTINDEX=0, ESCAPERESULT=2) at lclintf.inc:277
> #31 $0835ecbe in MESSAGEDLG (ACAPTION=$40616430, AMSG=$40616a10, 
>     DLGTYPE=MTERROR, BUTTONS=[MBOK..MBCANCEL], HELPCTX=0)
>     at messagedialogs.inc:164
> #32 $0835cfe7 in SHOWMESSAGEBOX (TEXT=$40616590, CAPTION=$4062a9d0,
> FLAGS=17)
>     at dialogs.pp:392
> #33 $08345a03 in TAPPLICATION__MESSAGEBOX (TEXT=$40616590,
> CAPTION=$4062a9d0, 
>     FLAGS=17, this=$85e0fa4) at application.inc:133
> #34 $08347515 in TAPPLICATION__SHOWEXCEPTION (E=$40653564,
> this=$85e0fa4)
>     at application.inc:934
> ---Type <return> to continue, or q <return> to quit---
> #35 $08346e67 in TAPPLICATION__HANDLEEXCEPTION (SENDER=$0,
> this=$85e0fa4)
>     at application.inc:712
> #36 $0831e8f1 in DELIVERMESSAGE (TARGET=$40648eb4, AMESSAGE=void)
>     at gtkproc.inc:2178
> #37 $083a0bb8 in TGTKOBJECT__SENDMESSAGE (HANDLEWND=141592800, MSG=1123, 
>     WPARAM=1080124804, LPARAM=-1073746380, this=$85e11f4)
>     at gtkwinapi.inc:7292
> #38 $083829ba in TGTKOBJECT__HANDLEEVENTS (this=$85e11f4)
>     at gtkobject.inc:1362
> #39 $08346eb3 in TAPPLICATION__HANDLEMESSAGE (this=$85e0fa4)
>     at application.inc:727
> #40 $0834714f in RUNMESSAGE () at application.inc:834
> #41 $083471cf in TAPPLICATION__RUN (this=$85e0fa4) at
> application.inc:846
> #42 $083de188 in main () at lazarus.pp:83
> (gdb) 
> 
> cheers
> James
> 
> -- 
> -Zero Defect Software Engineers Group - ZDSEG
> -
> -Web:  http://www.shortcircuit.net.au/
> -Wiki: http://wiki.shortcircuit.net.au/
> -ICQ:  98888663
> -
> -You need only two tools. WD-40 and duct tape.
> -If it doesn't move and it should, use WD-40.
> -If it moves and shouldn't, use the tape.
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives


-- 






More information about the Lazarus mailing list