GIMP crashes with an invalid pluginrc
My pluginrc starts with:
# GIMP pluginrc
#
# This file can safely be removed and will be automatically regenerated by
# querying the installed plug-ins.
(protocol-version 24)
(file-version 5)
(plug-in-def "${gimp_plug_in_dir}/plug-ins/python-console/python-console.py" 1529990119
Changing the last line to
(plug-in-def "${gimp_plug_io_dir}/plug-ins/python-console/python-console.py" 1529990119
GIMP crashes and gdb shows:
home/massimo/prefix/bin/gimp-2.10: Gimp-Plug-In-CRITICAL: gimp_plug_in_def_new: assertion 'G_IS_FILE (file)' failed
(gimp-2.10:10231): GLib-GObject-CRITICAL **: 12:23:42.932: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Thread 1 "gimp-2.10" received signal SIGSEGV, Segmentation fault.
0x00000000006db6b5 in plug_in_def_deserialize (plug_in_defs=<synthetic pointer>, scanner=0x34d6c30, gimp=0xda8140) at plug-in-rc.c:286
warning: Source file is more recent than executable.
286 return G_TOKEN_INT;
#0 0x00000000006db6b5 in plug_in_def_deserialize (plug_in_defs=<synthetic pointer>, scanner=0x34d6c30, gimp=0xda8140) at plug-in-rc.c:286
#1 plug_in_rc_parse (gimp=0xda8140, file=file@entry=0x359ee20, error=error@entry=0x7fffffffccc8) at plug-in-rc.c:206
#2 0x00000000006d667f in gimp_plug_in_manager_read_pluginrc (status_callback=0x49ce40 <splash_update>, pluginrc=0x359ee20, manager=0xdfe020) at gimppluginmanager-restore.c:401
#3 gimp_plug_in_manager_restore (manager=<optimized out>, context=0x118cf00, status_callback=status_callback@entry=0x49ce40 <splash_update>) at gimppluginmanager-restore.c:112
#4 0x00000000006f25ae in gimp_real_restore (gimp=0xda8140, status_callback=0x49ce40 <splash_update>) at gimp.c:530
#5 0x00007ffff3412d8d in g_closure_invoke (closure=0xda54a0, return_value=0x0, n_param_values=2, param_values=0x7fffffffcef0, invocation_hint=0x7fffffffce90) at gclosure.c:810
#6 0x00007ffff3425584 in signal_emit_unlocked_R (node=node@entry=0x7fffc800b790, detail=detail@entry=0, instance=instance@entry=0xda8140, emission_return=emission_return@entry=0x0,
instance_and_params=instance_and_params@entry=0x7fffffffcef0) at gsignal.c:3673
#7 0x00007ffff342ee2e in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd098) at gsignal.c:3391
#8 0x00007ffff342f4d2 in g_signal_emit (instance=instance@entry=0xda8140, signal_id=<optimized out>, detail=detail@entry=0) at gsignal.c:3447
#9 0x00000000006f1ac6 in gimp_restore (gimp=gimp@entry=0xda8140, status_callback=status_callback@entry=0x49ce40 <splash_update>, error=error@entry=0x7fffffffd1d0) at gimp.c:799
#10 0x0000000000496064 in app_run (full_prog_name=<optimized out>, filenames=<optimized out>, alternate_system_gimprc=alternate_system_gimprc@entry=0x0, alternate_gimprc=alternate_gimprc@entry=0x0, session_name=<optimized out>,
batch_interpreter=0x0, batch_commands=0x0, as_new=0, no_interface=0, no_data=0, no_fonts=0, no_splash=0, be_verbose=0, use_shm=1, use_cpu_accel=1, console_messages=0, use_debug_handler=0, show_playground=0, show_debug_menu=0,
stack_trace_mode=GIMP_STACK_TRACE_NEVER, pdb_compat_mode=GIMP_PDB_COMPAT_ON, backtrace_file=0xc68700 "/home/massimo/.config/GIMP/2.10/CrashLog/GIMP-crash-1530008619.txt") at app.c:330
#11 0x00000000004958df in main (argc=<optimized out>, argv=<optimized out>) at main.c:526
Issue discovered with zzuf