git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* `git config get --type=path` results in segmentation fault on value starting with `:(optional)`
@ 2025-11-20  6:46 Han Jiang
  2025-11-20  7:50 ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Han Jiang @ 2025-11-20  6:46 UTC (permalink / raw)
  To: Git Mailing List

What did you do before the bug happened? (Steps to reproduce your issue)
git -c 'section.key-path=/nonexistent' config get --show-origin
--show-scope --all --type=path 'section.key-path'
git -c 'section.key-path=:(optional)/nonexistent' config get
--show-origin --show-scope --all --type=path 'section.key-path'

What did you expect to happen? (Expected behavior)

1st command outputs "command command line:   C:/Program Files/Git/nonexistent";
2nd command outputs nothing, $?=1;

What happened instead? (Actual behavior)

1st command outputs "command command line:   C:/Program Files/Git/nonexistent";
2nd command outputs "Segmentation fault", $?=139;

What's different between what you expected and what actually happened?

Anything else you want to add:

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.52.0.windows.1
cpu: x86_64
built from commit: 2912d8e9b8253723974b7baf1c890273b1a1c5bd
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
rust: disabled
feature: fsmonitor--daemon
libcurl: 8.17.0
OpenSSL: OpenSSL 3.5.4 30 Sep 2025
zlib: 1.3.1
SHA-1: SHA1_DC
SHA-256: SHA256_BLK
default-ref-format: files
default-hash: sha1
uname: Windows 10.0 26200
compiler info: gnuc: 15.2
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe


[Enabled Hooks]
not run from a git repository - no hooks to show

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-26 15:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-20  6:46 `git config get --type=path` results in segmentation fault on value starting with `:(optional)` Han Jiang
2025-11-20  7:50 ` Jeff King
2025-11-20 14:34   ` D. Ben Knoble
2025-11-20 16:46   ` Junio C Hamano
2025-11-25  0:28     ` Jeff King
2025-11-25  0:57       ` Junio C Hamano
2025-11-26 15:13         ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).