gnome-terminal attempts to free a non-allocated block on start
Steps to reproduce:
- start any terminal window.
- start gnome-terminal from there with
G_SLICE=debug-blocks
What happens:
gnome-terminal aborts one instance after printing GSlice: MemChecker: attempt to release non-allocated block: 0x5555557b4ab0 size=192
and starts a new window. This is the backtrace:
#0 0x00007ffff3f5df2b in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff3f48561 in __GI_abort () at abort.c:79
#2 0x00007ffff4f000e4 in g_slice_free1 (mem_size=192, mem_block=0x5555557b4ab0) at gslice.c:1109
#3 0x000055555555bdb5 in gs_local_options_free (v=<synthetic pointer>) at terminal.c:47
#4 0x000055555555bdb5 in main (argc=<optimized out>, argv=<optimized out>) at terminal.c:543
#5 0x00007ffff3f4a18b in __libc_start_main (main=
0x55555555b8e0 <main>, argc=2, argv=0x7fffffffd5a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd598) at ../csu/libc-start.c:308
#6 0x000055555555c8aa in _start () at terminal.c:340
What should happen:
No abort.
Additional info:
I was unable to find the cause of this issue using valgrind.
Installed software versions:
gnome-terminal-3.28.2-1.fc28.x86_64 glib2-2.56.1-3.fc28.x86_64 vte291-0.52.2-1.fc28.x86_64