SIGSEGV during start w/ GNOME Usage >=3.37
#0 0x00007ffff7c36cbf in g_path_get_basename (file_name=0xf00dface00000000 <error: Cannot access memory at address 0xf00dface00000000>) at ../glib/gfileutils.c:2542
#1 0x0000555555579d96 in usage_process_get_full_process_cmd (pid=pid@entry=6) at src/gnome-usage.p/process.c:339
#2 0x0000555555579e26 in usage_process_construct (object_type=<optimized out>, pid=pid@entry=6) at src/gnome-usage.p/process.c:199
#3 0x000055555557a563 in usage_process_new (pid=pid@entry=6) at src/gnome-usage.p/process.c:210
#4 0x0000555555586ef5 in usage_system_monitor_update_data (self=self@entry=0x7ffff2fefc80 [UsageSystemMonitor]) at src/gnome-usage.p/system-monitor.c:746
#5 0x0000555555587214 in usage_system_monitor_init (self=0x7ffff2fefc80 [UsageSystemMonitor]) at src/gnome-usage.p/system-monitor.c:549
#6 0x000055555558757a in usage_system_monitor_construct (object_type=<optimized out>) at src/gnome-usage.p/system-monitor.c:465
#7 0x0000555555587d6d in usage_system_monitor_new () at src/gnome-usage.p/system-monitor.c:477
#8 usage_system_monitor_get_default () at src/gnome-usage.p/system-monitor.c:348
#9 0x0000555555577b03 in usage_process_list_box_construct (object_type=<optimized out>, type=type@entry=USAGE_PROCESS_LIST_BOX_TYPE_PROCESSOR) at src/gnome-usage.p/process-list-box.c:376
#10 0x00005555555780f3 in usage_process_list_box_new (type=type@entry=USAGE_PROCESS_LIST_BOX_TYPE_PROCESSOR) at src/gnome-usage.p/process-list-box.c:394
#11 0x000055555556d622 in usage_processor_sub_view_construct (object_type=<optimized out>) at src/gnome-usage.p/cpu-sub-view.c:333
#12 0x000055555556d8d5 in usage_processor_sub_view_new () at src/gnome-usage.p/cpu-sub-view.c:377
#13 0x000055555557640f in usage_performance_view_construct (object_type=<optimized out>) at src/gnome-usage.p/performance-view.c:228
#14 0x0000555555576645 in usage_performance_view_new () at src/gnome-usage.p/performance-view.c:279
#15 0x000055555558a7c1 in usage_window_construct (object_type=<optimized out>, application=<optimized out>) at src/gnome-usage.p/window.c:309
#16 0x0000555555569c2c in usage_application_real_activate (base=0x7ffff3928100 [UsageApplication]) at src/gnome-usage.p/application.c:241
#17 usage_application_real_activate (base=0x7ffff3928100 [UsageApplication]) at src/gnome-usage.p/application.c:226
#18 0x00007ffff7d3f3be in _g_closure_invoke_va
(closure=closure@entry=0x7ffff6dcf8b0, return_value=return_value@entry=0x0, instance=instance@entry=0x7ffff3928100, args=args@entry=0x7fffffffe430, n_params=0, param_types=0x0) at ../gobject/gclosure.c:873
#19 0x00007ffff7d579e8 in g_signal_emit_valist (instance=0x7ffff3928100, signal_id=<optimized out>, detail=0, var_args=var_args@entry=0x7fffffffe430) at ../gobject/gsignal.c:3403
#20 0x00007ffff7d57bdf in g_signal_emit (instance=instance@entry=0x7ffff3928100, signal_id=<optimized out>, detail=detail@entry=0) at ../gobject/gsignal.c:3550
#21 0x00007ffff7e64583 in g_application_activate (application=application@entry=0x7ffff3928100 [UsageApplication]) at ../gio/gapplication.c:2303
#22 0x00007ffff7e64918 in g_application_real_local_command_line (application=0x7ffff3928100 [UsageApplication], arguments=0x7fffffffe588, exit_status=0x7fffffffe584) at ../gio/gapplication.c:1139
#23 0x00007ffff7e64a8e in g_application_run (application=0x7ffff3928100 [UsageApplication], argc=-6780, argv=<optimized out>) at ../gio/gapplication.c:2528
#24 0x000055555556d9c4 in _vala_main (args=0x7fffffffe638, args_length1=1) at src/gnome-usage.p/gnome-usage.c:64
#25 0x00007ffff7f8497c in () at /lib/ld-musl-x86_64.so.1
#26 0x00007ffff7f84955 in () at /lib/ld-musl-x86_64.so.1
#27 0x00007fffffffe630 in ()
#28 0x0000000000000000 in ()
Consistently happens during start on Alpine Linux. Valgrind has the following to say:
$ valgrind gnome-usage
==23273== Memcheck, a memory error detector
==23273== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==23273== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==23273== Command: gnome-usage
==23273==
--23273-- WARNING: unhandled amd64-linux syscall: 315
--23273-- You may be able to write your own handler.
--23273-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--23273-- Nevertheless we consider this a bug. Please report
--23273-- it at http://valgrind.org/support/bug_reports.html.
==23273== Warning: unimplemented fcntl command: 1033
** (gnome-usage:23273): WARNING **: 16:41:57.225: game-mode.vala:95: GameMode D-Bus error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.feralinteractive.GameMode was not provided by any .service files
==23273== Conditional jump or move depends on uninitialised value(s)
==23273== at 0x12DD8F: usage_process_get_full_process_cmd (process.c:333)
==23273== by 0x12DE25: usage_process_construct (process.c:199)
==23273== by 0x13AEF4: usage_system_monitor_update_data (system-monitor.c:746)
==23273== by 0x13B213: usage_system_monitor_init (system-monitor.c:549)
==23273== by 0x13B579: usage_system_monitor_construct (system-monitor.c:465)
==23273== by 0x13BD6C: usage_system_monitor_new (system-monitor.c:477)
==23273== by 0x13BD6C: usage_system_monitor_get_default (system-monitor.c:348)
==23273== by 0x12BB02: usage_process_list_box_construct (process-list-box.c:376)
==23273== by 0x121621: usage_processor_sub_view_construct (cpu-sub-view.c:333)
==23273== by 0x12A40E: usage_performance_view_construct (performance-view.c:228)
==23273== by 0x13E7C0: usage_window_construct (window.c:309)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:241)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:226)
==23273== by 0x4E9F3BD: _g_closure_invoke_va (gclosure.c:873)
==23273==
==23273== Conditional jump or move depends on uninitialised value(s)
==23273== at 0x4F20CB9: g_path_get_basename (gfileutils.c:2542)
==23273== by 0x12DD95: usage_process_get_full_process_cmd (process.c:339)
==23273== by 0x12DE25: usage_process_construct (process.c:199)
==23273== by 0x13AEF4: usage_system_monitor_update_data (system-monitor.c:746)
==23273== by 0x13B213: usage_system_monitor_init (system-monitor.c:549)
==23273== by 0x13B579: usage_system_monitor_construct (system-monitor.c:465)
==23273== by 0x13BD6C: usage_system_monitor_new (system-monitor.c:477)
==23273== by 0x13BD6C: usage_system_monitor_get_default (system-monitor.c:348)
==23273== by 0x12BB02: usage_process_list_box_construct (process-list-box.c:376)
==23273== by 0x121621: usage_processor_sub_view_construct (cpu-sub-view.c:333)
==23273== by 0x12A40E: usage_performance_view_construct (performance-view.c:228)
==23273== by 0x13E7C0: usage_window_construct (window.c:309)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:241)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:226)
==23273==
==23273== Use of uninitialised value of size 8
==23273== at 0x4F20CBF: g_path_get_basename (gfileutils.c:2544)
==23273== by 0x12DD95: usage_process_get_full_process_cmd (process.c:339)
==23273== by 0x12DE25: usage_process_construct (process.c:199)
==23273== by 0x13AEF4: usage_system_monitor_update_data (system-monitor.c:746)
==23273== by 0x13B213: usage_system_monitor_init (system-monitor.c:549)
==23273== by 0x13B579: usage_system_monitor_construct (system-monitor.c:465)
==23273== by 0x13BD6C: usage_system_monitor_new (system-monitor.c:477)
==23273== by 0x13BD6C: usage_system_monitor_get_default (system-monitor.c:348)
==23273== by 0x12BB02: usage_process_list_box_construct (process-list-box.c:376)
==23273== by 0x121621: usage_processor_sub_view_construct (cpu-sub-view.c:333)
==23273== by 0x12A40E: usage_performance_view_construct (performance-view.c:228)
==23273== by 0x13E7C0: usage_window_construct (window.c:309)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:241)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:226)
==23273==
==23273== Invalid read of size 1
==23273== at 0x4F20CBF: g_path_get_basename (gfileutils.c:2544)
==23273== by 0x12DD95: usage_process_get_full_process_cmd (process.c:339)
==23273== by 0x12DE25: usage_process_construct (process.c:199)
==23273== by 0x13AEF4: usage_system_monitor_update_data (system-monitor.c:746)
==23273== by 0x13B213: usage_system_monitor_init (system-monitor.c:549)
==23273== by 0x13B579: usage_system_monitor_construct (system-monitor.c:465)
==23273== by 0x13BD6C: usage_system_monitor_new (system-monitor.c:477)
==23273== by 0x13BD6C: usage_system_monitor_get_default (system-monitor.c:348)
==23273== by 0x12BB02: usage_process_list_box_construct (process-list-box.c:376)
==23273== by 0x121621: usage_processor_sub_view_construct (cpu-sub-view.c:333)
==23273== by 0x12A40E: usage_performance_view_construct (performance-view.c:228)
==23273== by 0x13E7C0: usage_window_construct (window.c:309)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:241)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:226)
==23273== Address 0x7c9757d70f88d1ac is not stack'd, malloc'd or (recently) free'd
==23273==
==23273==
==23273== Process terminating with default action of signal 11 (SIGSEGV)
==23273== General Protection Fault
==23273== at 0x4F20CBF: g_path_get_basename (gfileutils.c:2544)
==23273== by 0x12DD95: usage_process_get_full_process_cmd (process.c:339)
==23273== by 0x12DE25: usage_process_construct (process.c:199)
==23273== by 0x13AEF4: usage_system_monitor_update_data (system-monitor.c:746)
==23273== by 0x13B213: usage_system_monitor_init (system-monitor.c:549)
==23273== by 0x13B579: usage_system_monitor_construct (system-monitor.c:465)
==23273== by 0x13BD6C: usage_system_monitor_new (system-monitor.c:477)
==23273== by 0x13BD6C: usage_system_monitor_get_default (system-monitor.c:348)
==23273== by 0x12BB02: usage_process_list_box_construct (process-list-box.c:376)
==23273== by 0x121621: usage_processor_sub_view_construct (cpu-sub-view.c:333)
==23273== by 0x12A40E: usage_performance_view_construct (performance-view.c:228)
==23273== by 0x13E7C0: usage_window_construct (window.c:309)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:241)
==23273== by 0x11DC2B: usage_application_real_activate (application.c:226)
==23273==