[fpc-devel] gdb crashes with trunk
Martin Schreiber
fpmse at bluewin.ch
Fri Apr 4 08:37:24 CEST 2008
On Thursday 03 April 2008 15.02:46 Martin Schreiber wrote:
> On Thursday 03 April 2008 14.04:44 Jonas Maebe wrote:
>
> > One thing you can try is using -gw to use dwarf instead of stabs.
>
> That helps, thanks a lot!
>
There are gdb crashes with -gw too:
"
mse at linux-mse:~/packs/standard/svn/mse/trunk/apps/ide> gdb ./mseidefp
GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 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 "i586-suse-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) break fpc_raiseexception
Breakpoint 1 at 0x805b635: file ../inc/except.inc, line 195.
(gdb) run
Starting program: /home/mse/packs/standard/svn/mse/trunk/apps/ide/mseidefp
[Thread debugging using libthread_db enabled]
[New Thread 0xb7bb88d0 (LWP 5338)]
[Switching to Thread 0xb7bb88d0 (LWP 5338)]
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x846aee0,
OBJ=0xb7bb1da0, ANADDR=0x80dd526, AFRAME=0xbfeef30c) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb) c
Continuing.
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x846aee0,
OBJ=0xb7bb2830, ANADDR=0x80dd526, AFRAME=0xbfeeef4c) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb)
Continuing.
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x846aee0,
OBJ=0xb7bb2580, ANADDR=0x80dd526, AFRAME=0xbfeeef4c) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb)
Continuing.
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x846aee0,
OBJ=0xb7bb2830, ANADDR=0x80dd526, AFRAME=0xbfeeef4c) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb)
Continuing.
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x846aee0,
OBJ=0xb7bb26a0, ANADDR=0x80dd526, AFRAME=0xbfeeef4c) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb)
Continuing.
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x846aee0,
OBJ=0xb7bb26d0, ANADDR=0x80dd526, AFRAME=0xbfeeef4c) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb)
Continuing.
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x846aee0,
OBJ=0xb7bb26a0, ANADDR=0x80dd526, AFRAME=0xbfeeef4c) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb)
Continuing.
[New Thread 0xb74cab90 (LWP 5347)]
Breakpoint 1, fpc_raiseexception (fpc_raiseexception=0x84642e0,
OBJ=0xb7bb24b0, ANADDR=0x80ccd55, AFRAME=0xbfeef428) at ../inc/except.inc:195
195 fpc_Raiseexception:=nil;
(gdb) bt
#0 fpc_raiseexception (fpc_raiseexception=0x84642e0, OBJ=0xb7bb24b0,
ANADDR=0x80ccd55, AFRAME=0xbfeef428) at ../inc/except.inc:195
#1 0x080ccd61 in VALIDATERENAME (ACOMPONENT=0xb74d1a80, CURNAME=0x0,
NEWNAME=0xb76dc188 'inlinefo2', this=0xb74cfc10)
at ../objpas/classes/compon.inc:364
#2 0x080ccbff in SETNAME (NEWNAME=0xb76dc188 'inlinefo2', this=0xb74d1a80)
at ../objpas/classes/compon.inc:313
#3 0x080d56bc in READCOMPONENT (READCOMPONENT=0xb74d1a80, COMPONENT=0x0,
this=0xb755c220) at ../objpas/classes/reader.inc:854
#4 0x080d5ae5 in READDATA (INSTANCE=0xb74cfc10, this=0xb755c220)
at ../objpas/classes/reader.inc:920
#5 0x080cca57 in READSTATE (READER=0xb755c220, this=0xb74cfc10)
at ../objpas/classes/compon.inc:272
#6 0x080fc8e5 in TMSECOMPONENT__READSTATE (READER=0xb755c220,
this=0xb74cfc10) at mseclasses.pas:2834
#7 0x08189983 in TCUSTOMMSEFORM__READSTATE (READER=0xb755c220,
this=0xb74cfc10) at mseforms.pas:1206
#8 0x080d6dab in READROOTCOMPONENT (READROOTCOMPONENT=0xb74cfc10,
AROOT=0xb74cfc10, this=0xb755c220) at ../objpas/classes/reader.inc:1289
#9 0x0816782c in TDESCENDENTINSTANCELIST__MODULEMODIFIED (AMODULE=0xb76cc5b0,
this=0xb7ba0570) at msedesigner.pas:1277
#10 0x08169960 in TMODULELIST__COMPONENTMODIFIED (ACOMPONENT=0xb75fee30,
this=0xb7b99e20) at msedesigner.pas:2097
#11 0x0816b2c2 in TDESIGNER__COMPONENTMODIFIED (COMPONENT=0xb75fee30,
this=0xb77ea020) at msedesigner.pas:2802
#12 0x08167acc in TDESCENDENTINSTANCELIST__MODULEMODIFIED (AMODULE=0xb76cc470,
this=0xb7ba0570) at msedesigner.pas:1341
#13 0x08169960 in TMODULELIST__COMPONENTMODIFIED (ACOMPONENT=0xb7602100,
this=0xb7b99e20) at msedesigner.pas:2097
#14 0x0816b2c2 in TDESIGNER__COMPONENTMODIFIED (COMPONENT=0xb7602100,
this=0xb77ea020) at msedesigner.pas:2802
#15 0x0826e595 in TDESIGNWINDOW__DOMODIFIED (this=0xb7808620) at
formdesigner.pas:2080
#16 0x0826ef59 in TFORMDESIGNERFO__DOASYNCEVENT (ATAG=1, this=0xb7602c80) at
formdesigner.pas:2343
---Type <return> to continue, or q <return> to quit---
#17 0x080fc22d in TMSECOMPONENT__RECEIVEEVENT (EVENT=0xb752b1e0,
this=0xb7602c80) at mseclasses.pas:2588
#18 0x080f4b17 in TACTCOMPONENT__RECEIVEEVENT (EVENT=0xb752b1e0,
this=0xb7602c80) at mseapplication.pas:388
#19 0x0807b1ba in TWIDGET__RECEIVEEVENT (EVENT=0xb752b1e0, this=0xb7602c80) at
msegui.pas:9158
#20 0x08144afb in TCUSTOMEVENTWIDGET__RECEIVEEVENT (EVENT=0xb752b1e0,
this=0xb7602c80) at msewidgets.pas:3910
#21 0x08188aca in TCUSTOMMSEFORM__RECEIVEEVENT (EVENT=0xb752b1e0,
this=0xb7602c80) at mseforms.pas:854
Segmentation fault
mse at linux-mse:~/packs/standard/svn/mse/trunk/apps/ide>
"
I have no simple testcase.
Martin
More information about the fpc-devel
mailing list