Crash after execute TSaveDialog
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
On 3 of 4 of my tested versions of FPC/Lazarus crashes, after executing SaveDialog. After pushing Save, Lazarus crashes when the program was terminated.
We discussed it here: http://www.lazarusforum.de/viewtopic.php?f=19&t=7206
Versions how crash (all Windows 64bit, Lazarus 32bit):
Lazarus 1.1 r42453 FPC 2.7.1 i386-win32-win32/win64
Lazarus 1.0.10 r41613 FPC 2.6.2 i386-win32-win32/win64
Lazarus 1.0.4 r39422 FPC 2.6.0 i386-win32-win32/win64
Lazarus 1.1 r42538 FPC 2.7.1
Versions, what not crash:
Lazarus 1.1 r42244 FPC 2.7.1 i386-win32-win32/win64
Lazarus 1.1 r39972 FPC 2.6.0
Lazarus 1.1 r40524 FPC 2.7.1 Windows XP 32bit
Lazarus 1.1 r40369 FPC 2.7.1 Windows 7 64bit
CT Lazarus 1.1 SVN 40461 CT fpc 2.7.1 Windows 7 64 bit (Lazarus 32bit)
CT Lazarus 1.1 SVN 40461 CT fpc 2.7.1 Windows 7 64 bit und Lazarus 64bit
Steps to reproduce:
- take a empty form
- place there a button and a TSaveDialog
use following code:
procedure TForm1.Button1Click(Sender: TObject);
begin
SaveDialog1.FileName:='Sicherung.dat';
if SaveDialog1.Execute then
Caption:='Speichern unter: '+SaveDialog1.FileName;
end;
Run the program!
Just click "Save"/"Speichern" and close the program, dont click on a file (in the TSaveDialog-window)!!!.
After some time the debugger crash, on 2.7.1 with this message: While executing the command:
"TGDBMIDebuggerInstruction: "-file-exec-and-symbols ", "
gdb reported:
"&"../../gdb-7.2/gdb/printcmd.c:1916: internal-error: clear_dangling_display_expressions: Assertion `objfile->pspace == solib->pspace' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.""
Additional information:
Maybe the same, cause TSaveDialog as a child of TOpenDialog?! http://bugs.freepascal.org/view.php?id=23117
Mantis conversion info:
- Mantis ID: 25012
- Build: r42453
- Platform: Windows 64bit Lazarus 32bit
- Version: 1.1 (SVN)
- Target version: 1.4
- LazTarget: post 1.4