SIGSEGV in Source Editor after revision 52918
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
A SIGSEGV is created, if you click twice at a tab of the Source Editor. This happens after revision 52918.
Steps to reproduce:
- run Lazarus
- start a new project
- click twice at the tab (unit1) at the top of the Source Editor
Additional information:
I use FPC trunk revision 34442
The BackTrace:
Starting program: C:\FreePascalTest\laz/lazarus.exe --pcp=C:\FreePascalTest\Configs --debug-log=C:\FreePascalTest\debug.txt
[New Thread 5268.0x1510]
Program received signal SIGSEGV, Segmentation fault.
0x0078d798 in UPDATESECTION (parentfp=0xd03f75c, ASECTION=0x10a912b8)
at menuintf.pas:1075
1075 if (Item.MenuItem<>nil)
(gdb) bt
#0 0x0078d798 in UPDATESECTION (parentfp=0xd03f75c, ASECTION=0x10a912b8)
at menuintf.pas:1075
#1 0x0078d77c in UPDATESECTION (parentfp=0xd03f75c, ASECTION=0x10a909c8)
at menuintf.pas:1071
#2 0x0078d6c6 in UPDATECONTAINER (this=0x10a909c8) at menuintf.pas:1106
#3 0x0078d695 in UPDATECONTAINER (this=0x10a912b8) at menuintf.pas:1099
#4 0x0078da39 in UPDATEVISIBLECOMMANDCOUNT (this=0x11396508, ADD=-1)
at menuintf.pas:1148
#5 0x0078e005 in REMOVE (this=0x11396508, ANITEM=0x113eb7d8)
at menuintf.pas:1280
#6 0x0078c731 in SETSECTION (this=0x113eb7d8, AVALUE=0x0) at menuintf.pas:689
#7 0x0078ca85 in DESTROY (this=0x113eb7d8, vmt=0x1) at menuintf.pas:755
#8 0x0040e4d2 in SYSTEM$_$TOBJECT_$__$$_FREE ()
#9 0x0078dd8d in CLEAR (this=0x11396508) at menuintf.pas:1204
#10 0x0078dc8f in DESTROY (this=0x11396508, vmt=0x1) at menuintf.pas:1186
#11 0x0040e4d2 in SYSTEM$_$TOBJECT_$__$$_FREE ()
#12 0x0078dd8d in CLEAR (this=0x11395328) at menuintf.pas:1204
#13 0x0078dc8f in DESTROY (this=0x11395328, vmt=0x1) at menuintf.pas:1186
#14 0x0040e4d2 in SYSTEM$_$TOBJECT_$__$$_FREE ()
#15 0x0078dd8d in CLEAR (this=0x10a912b8) at menuintf.pas:1204
#16 0x008ae6d8 in TABPOPUPMENUPOPUP (this=0x114a69a0, SENDER=0x1113dc68)
at sourceeditor.pp:6549
#17 0x005c121e in DOPOPUP (this=0x1113dc68, SENDER=0x1113dc68)
at include/popupmenu.inc:37
#18 0x005c1473 in POPUP (this=0x1113dc68, X=419, Y=187)
at include/popupmenu.inc:74
#19 0x005c13f1 in POPUP (this=0x1113dc68) at include/popupmenu.inc:66
#20 0x008b5d9d in NOTEBOOKMOUSEUP (this=0x114a69a0, SENDER=0x11487f88,
BUTTON=MBRIGHT, SHIFT=..., X=5, Y=-14) at sourceeditor.pp:8400
#21 0x0059373e in MOUSEUP (this=0x11487f88, BUTTON=MBRIGHT, SHIFT=..., X=5,
Y=-14) at include/control.inc:4210
#22 0x00c63d36 in EXTENDEDNOTEBOOK$_$TEXTENDEDNOTEBOOK_$__$$_MOUSEUP$TMOUSEBUTTON$TSHIFTSTATE$LONGINT$LONGINT ()
#23 0x0058e7ad in DOMOUSEUP (this=0x11487f88, MESSAGE=..., BUTTON=MBRIGHT)
at include/control.inc:2165
#24 0x0058f395 in WMRBUTTONUP (this=0x11487f88, MESSAGE=...)
at include/control.inc:2630
#25 0x0040e946 in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal ()
#26 0x00eae5a4 in VMT_$CONTROLS_$$_TWINCONTROL ()
#27 0x00eb0ba8 in VMT_$CONTROLS_$$_TDOCKIMAGEWINDOW ()
#28 0x0000002b in ?? ()
#29 0x00000205 in ?? ()
#30 0x00338d64 in ?? ()
#31 0x0058263c in WNDPROC (this=0x11487f88, MESSAGE=...)
at include/wincontrol.inc:5377
#32 0x00644d89 in DELIVERMESSAGE (TARGET=0x11487f88, AMESSAGE=0)
at lclmessageglue.pas:112
#33 0x00561088 in DOWINDOWPROC (this=0x338cd0) at win32/win32callback.inc:2461
#34 0x00561709 in WINDOWPROC (WINDOW=4785106, MSG=517, WPARAM=0,
LPARAM=524297) at win32/win32callback.inc:2619
#35 0x75ab62fa in USER32!OffsetRect () from C:\Windows\syswow64\user32.dll
#36 0x004903d2 in ARC (this=0x0, DC=5641872, LEFT=0, TOP=524297, RIGHT=0,
BOTTOM=517, ANGLE16DEG=4785106, ANGLE16DEGLENGTH=5641872)
at include/intfbasewinapi.inc:35
#37 0x75ab6d3a in USER32!IsWindow () from C:\Windows\syswow64\user32.dll
#38 0x00561690 in DOWINDOWPROC (this=0x0) at win32/win32callback.inc:2589
#39 0x75ab77d3 in USER32!AnyPopup () from C:\Windows\syswow64\user32.dll
#40 0x00000000 in ?? ()
Mantis conversion info:
- Mantis ID: 30574
- OS: 7
- OS Build: 32bit
- Build: 52918
- Platform: Windows
- Version: 1.7 (SVN)
- Fixed in revision: 52935 (#eabe435a)