Skip to content

Invalid memory deallocation when clearing the Process Name Filter field

Versions affected: 1.5.5, git

Steps to reproduce this issue:

  1. Enter (for example) "firefox" to filter the displayed processes
  2. Perform a mouse click in the blank space below the displayed processes
  3. Clear the text field containing "firefox"

Screenshot_20221216_204730

gdb backtrace:

Thread 1 "xfce4-taskmanager" received signal SIGABRT, Aborted.
(gdb) bt
#0  __pthread_kill_implementation
#1  0x00007fad80fb3e0f in __pthread_kill_internal
#2  0x00007fad80f65ab2 in __GI_raise
#3  0x00007fad80f50464 in __GI_abort
#4  0x00007fad80fa8248 in __libc_message
#5  0x00007fad80fbd4ba in malloc_printerr
#6  0x00007fad80fbf500 in _int_free
#7  0x00007fad80fc1c8f in __GI___libc_free () at malloc.c:3385
#8  0x00007fad81160529 in g_free () at glib-2.74.1/glib/gmem.c:229
#9  0x00007fad8199c0f2 in gtk_tree_path_free () at gtk+-3.24.34/gtk/gtktreemodel.c:928
#10 gtk_tree_path_free () at gtk+-3.24.34/gtk/gtktreemodel.c:923
#11 0x000055fd97977f94 in xtm_process_window_unstick_view_cursor () at process-window.c:277
#12 xtm_process_window_unstick_view_cursor () at process-window.c:264