TDateEdit with OnChange event causes SIGSEGV in compiled application which also kills Lazarus itself
Original Reporter info from Mantis: yuryd
-
Reporter name: yury Donskoy
Original Reporter info from Mantis: yuryd
- Reporter name: yury Donskoy
Description:
A TDateEdit component on a form with a an OnChange event will cause the compiled application to crash with a SIGSEGV. After the first error box, if you don't use Run|Stop, will also kill Lazarus itself.
What exactly is a SIGSEGV, anyway? It can't be trapped by try...except...end;
Additional information:
Very simple to reproduce.
Will not crash:
- Create new project.
- Drop a TDateEdit component on the form.
- Save the project and the form.
- Compile and run.
- Play with the dates, making sure to select them, not just click on them - program and Lazarus should not crash.
- Exit program.
Will crash:
- Using project created above, attach an OnChange event and do something stupid in it like ShowMessage('DateEdit being changed');
- Save, compile and run.
- Play with the date, select one.
- Dialog box you created above will appear, click on it several times(don't know why this happens--does the OnChange get called more than once???)
- Program will crash. If you don't Run|Stop and click through all the error boxes, Lazarus will go down also.
Mantis conversion info:
- Mantis ID: 14977
- Version: 0.9.28
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 23212 (#d08379fc)
- Monitored by: » yuryd (yury Donskoy)
- Target version: 0.9.30