Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951321 - dev-debug/gdb: segfault when tab completing
Summary: dev-debug/gdb: segfault when tab completing
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-13 23:51 UTC by NRK
Modified: 2025-03-14 03:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb build log (gdb-16.2:20250313-234112.log.bz2,46.96 KB, application/x-bzip2)
2025-03-13 23:51 UTC, NRK
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NRK 2025-03-13 23:51:56 UTC
Created attachment 920752 [details]
gdb build log

1. Open gdb
2. Type "catch syscall "
3. Press TAB for autocomplete
4. Observe segfault

Reproduced with v15.2-r101 and v16:

	Reading symbols from /bin/true...
	(No debugging symbols found in /bin/true)
	(gdb) catch syscall warning: Can not parse XML syscalls information; XML support was disabled at compile time.
	
	
	Fatal signal: Segmentation fault
	----- Backtrace -----
	0x50d5cb ???
	0x6547a2 ???
	0x654926 ???
	0x7fa64218aa7f ???
	0x4dfd08 ???
	0x57c20c ???
	0x57fb99 ???
	0x7fa64302be66 ???
	0x7fa643030c1f rl_complete_internal
	0x7fa64301fb58 _rl_dispatch_subseq
	0x7fa64302086c readline_internal_char
	0x7fa643046f74 rl_callback_read_char
	0x65618d ???
	0x65631f ???
	0x96b3ef ???
	0xac3005 ???
	0xac3b30 ???
	0x73fab9 ???
	0x742794 ???
	0x4521a4 ???
	0x7fa6421710f8 ???
	0x7fa6421711b4 __libc_start_main
	0x45fd70 ???
	0xffffffffffffffff ???
	---------------------
	A fatal error internal to GDB has been detected, further
	debugging is not possible.  GDB will now terminate.
	
	This is a bug, please report it.  For instructions, see:
	<https://bugs.gentoo.org/>.
	
	zsh: segmentation fault  gdb /bin/true


Use flags:

	~> equery --quiet u gdb
	-cet
	-debuginfod
	-guile
	-guile_single_target_2-2
	+guile_single_target_3-0
	-lzma
	-multitarget
	-nls
	+python
	-python_single_target_python3_10
	-python_single_target_python3_11
	+python_single_target_python3_12
	-python_single_target_python3_13
	-rocm
	-server
	-sim
	-source-highlight
	-test
	-vanilla
	-xml
	-xxhash
	+zstd

Build log: attached.