Segfault when running `pack -o non_existent_dir`
Pretty self-explanitory; running gnome-extensions pack -o
for an output dir that doesn't exist segfaults in the error callback.
Sorry, I'm not sure if this is the canonical repository for the tool or if it's now a part of gnome-shell.
Thread 1 "gnome-extension" received signal SIGSEGV, Segmentation fault.
0x000055555555c180 in on_error (compressor=<optimized out>, error=<optimized out>, data=0x0) at ../src/extensions-tool/command-pack.c:268
268 *((GError **)data) = g_error_copy (error);
Missing separate debuginfos, use: dnf debuginfo-install gvfs-client-1.42.2-1.fc31.x86_64 pcre2-10.34-5.fc31.x86_64
(gdb) bt
#0 0x000055555555c180 in on_error (compressor=<optimized out>, error=<optimized out>, data=0x0) at ../src/extensions-tool/command-pack.c:268
#1 0x00007ffff7929aa8 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#2 0x00007ffff79292a4 in ffi_call (cif=cif@entry=0x7fffffffcb90, fn=fn@entry=0x55555555c170 <on_error>, rvalue=<optimized out>, avalue=avalue@entry=0x7fffffffcae0)
at ../src/x86/ffi64.c:525
#6 0x00007ffff7d9e3ae in <emit signal ??? on instance 0x5555555a8850 [AutoarCompressor]>
(instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=<optimized out>) at ../gobject/gsignal.c:3397
#3 0x00007ffff7d8224d in g_cclosure_marshal_generic
(closure=closure@entry=0x5555555a81f0, return_gvalue=return_gvalue@entry=0x0, n_param_values=n_param_values@entry=2, param_values=param_values@entry=0x7fffffffcdb0, invocation_hint=invocation_hint@entry=0x7fffffffcd30, marshal_data=marshal_data@entry=0x0) at ../gobject/gclosure.c:1500
#4 0x00007ffff7d81742 in g_closure_invoke (closure=0x5555555a81f0, return_value=0x0, n_param_values=2, param_values=0x7fffffffcdb0, invocation_hint=0x7fffffffcd30)
at ../gobject/gclosure.c:810
#5 0x00007ffff7d95604 in signal_emit_unlocked_R
(node=node@entry=0x5555555a6f20, detail=detail@entry=0, instance=instance@entry=0x5555555a8850, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffcdb0) at ../gobject/gsignal.c:3641
#7 0x00007ffff7c3470f in autoar_common_g_signal_emit (instance=0x5555555a8850, in_thread=0, signal_id=34, detail=0) at gnome-autoar/autoar-private.c:204
#8 0x00007ffff7c35aff in autoar_compressor_signal_error (self=0x5555555a8850 [AutoarCompressor]) at gnome-autoar/autoar-compressor.c:673
#9 0x00007ffff7c37ce6 in autoar_compressor_run (self=0x5555555a8850 [AutoarCompressor]) at gnome-autoar/autoar-compressor.c:1561
#10 0x00007ffff7c37d9c in autoar_compressor_start (self=0x5555555a8850 [AutoarCompressor], cancellable=0x0) at gnome-autoar/autoar-compressor.c:1589
#11 0x000055555555d0e6 in extension_pack_compress (error=0x7fffffffd2c8, overwrite=0, outdir=<optimized out>, pack=0x555555574700) at ../src/extensions-tool/command-pack.c:313
#12 pack_extension
(gettext_domain=<optimized out>, podir=<optimized out>, schemas=<optimized out>, extra_sources=<optimized out>, force=0, dstdir=<optimized out>, srcdir=0x555555573da0 "working-extension@test") at ../src/extensions-tool/command-pack.c:422
#13 handle_pack (argc=<optimized out>, argv=<optimized out>, do_help=0) at ../src/extensions-tool/command-pack.c:513
#14 0x00007ffff7a421a3 in __libc_start_main () at /lib64/libc.so.6
#15 0x0000555555559b5e in _start () at /usr/include/glib-2.0/glib/glib-autocleanups.h:28