View Issue Details

IDProjectCategoryView StatusLast Update
0038878LazarusWidgetsetpublic2021-05-12 15:07
ReporterAnton Kavalenka Assigned To 
PrioritynormalSeveritytrivialReproducibilityhave not tried
Status newResolutionopen 
Product Version2.1 (SVN) 
Summary0038878: gtk2: Widgetset leaks memory when working on nested XServer
DescriptionInitkeyboardTables gets called on keyboard layout switch or on application exit from GTK2 callback 'keys-changed'

This never happens on GNOME desktop, only in nested X does something nasty with dynamic array of records
FillByte(MKeyStateMap, SizeOF(MKeyStateMap), 0);
commenting this fill prevents memory leak

TagsNo tags attached.
Fixed in Revision
WidgetsetGTK 2
Attached Files


Anton Kavalenka

2021-05-12 15:05

reporter   ~0130831

Call trace for block $00007F181C937680 size 112
  $00000000005FB3BB INITKEYBOARDTABLES, line 3470 of gtk2/
  $0000000000470C65 APPINIT, line 1037 of gtk2/
  $000000000045D2C6 INITIALIZE, line 482 of include/
  $000000000041F194 main, line 22 of project1.lpr
  $000000000041F194 main, line 22 of project1.lpr

Anton Kavalenka

2021-05-12 15:07

reporter   ~0130832

Run the attached project in nested X, change keyboard layout, press ESC or click the button (108,404 bytes)

Issue History

Date Modified Username Field Change
2021-05-12 15:03 Anton Kavalenka New Issue
2021-05-12 15:05 Anton Kavalenka Note Added: 0130831
2021-05-12 15:07 Anton Kavalenka Note Added: 0130832
2021-05-12 15:07 Anton Kavalenka File Added: