Dear Maintainer,
Situation: Developing in a check-out of the Zephyr project repository.
A lot of files from simulation runs had been deleted ("twister* in the lines below)
Had switched branch, wanted to updated the tags database
Using ggtags from Emacs, the "Update tag files" menu item reported a segmentation fault:
----------
-*- mode: compilation; default-directory: "~/repoutsjekk/zephyrproject/zephyr/subsys/bluetooth/audio/" -*-
Compilation started at Thu Jan 27 13:09:44
global -u
Segmentation fault
global -u exited abnormally with code 1 at Thu Jan 27 13:10:06
--------
Running "global -u" from the command line gave the same result - segfault (below is output from "global -u -vv"):
--------
[Thu Jan 27 13:18:50 CET 2022] Gtags started.
Using configuration file '/etc/gtags/gtags.conf'.
Using configuration label 'default'.
Tag found in '/home/asbjorn/repoutsjekk/zephyrproject/zephyr'.
Incremental updating.
[Thu Jan 27 13:19:12 CET 2022] Updating 'GTAGS' and 'GRTAGS'.
[1/267521] deleting tags of doc/_build/src/guides/test/mocking.c
[2/267521] deleting tags of twister-out.12/native_posix/tests/bluetooth/shell/bluetooth.shell.audio.no_otsc/zephyr/include/generated/devicetree_unfixed.h
[3/267521] deleting tags of twister-out.12/native_posix/tests/bluetooth/shell/bluetooth.shell.audio.no_otsc/zephyr/include/generated/syscall_list.h
[4/267521] deleting tags of twister-out.12/native_posix/tests/bluetooth/shell/bluetooth.shell.audio.no_otsc/zephyr/include/generated/otype-to-size.h
[5/267521] deleting tags of twister-out.12/native_posix/tests/bluetooth/shell/bluetooth.shell.audio.no_otsc/zephyr/include/generated/autoconf.h
[6/267521] deleting tags of twister-out.12/native_posix/tests/bluetooth/shell/bluetooth.shell.audio.no_otsc/zephyr/include/generated/offsets.h
[...]
[267519/267521] deleting tags of twister-out.5/qemu_x86/tests/bluetooth/shell/bluetooth.shell.shell_br/zephyr/misc/generated/configs.c
[267520/267521] deleting tags of twister-out.5/qemu_x86/tests/bluetooth/shell/bluetooth.shell.shell_br/CMakeFiles/3.21.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
[267521/267521] deleting tags of twister-out.5/qemu_x86/tests/bluetooth/shell/bluetooth.shell.shell_br/CMakeFiles/3.21.2/CompilerIdC/CMakeCCompilerId.c
Segmentation fault
------------------
Deleting GPATH, GRTAGS and GTAGS and runnning "gtags" brought the system back to a working state.