[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crash with 5.2 beta in compgen
From: |
Andreas Schwab |
Subject: |
Re: Crash with 5.2 beta in compgen |
Date: |
Sat, 16 Apr 2022 18:44:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
On Apr 16 2022, Chet Ramey wrote:
> On 4/16/22 1:45 AM, Sam James wrote:
>
>> Bash Version: 5.2
>> Patch Level: 0
>> Release Status: beta
>> Description:
>> Bash crashes when running compgen -c -X a.
>> Repeat-By:
>> # bash -c "compgen -c -X a"
>> Segmentation fault (core dumped)
>
> I can't reproduce this. I wonder if it has to do with resource limits.
It crashes in strchr due to NULL pointer (which comes from
rl_completer_word_break_characters).
#0 __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
#1 0x000055555561b7f5 in mbschr (s=0x0, c=47) at mbschr.c:56
#2 0x00005555555b1d7e in quote_word_break_chars (
text=0x555555897b70 "/usr/bin/atoc_conv") at bashline.c:4150
#3 bash_quote_filename (s=s@entry=0x555555897b30 "/usr/bin/atoc_conv",
rtype=rtype@entry=1, qcp=qcp@entry=0x7fffffffd60f "") at bashline.c:4353
#4 0x00005555555b2dd4 in executable_completion (searching_path=1,
filename=0x555555897b30 "/usr/bin/atoc_conv") at bashline.c:1951
#5 command_word_completion_function (hint_text=<optimized out>,
state=<optimized out>) at bashline.c:2385
#6 0x00007ffff7ba0186 in rl_completion_matches (
text=text@entry=0x5555556410e7 "",
entry_function=0x5555555b2276 <command_word_completion_function>)
at ../complete.c:2219
#7 0x00005555555b8164 in gen_action_completions (
text=text@entry=0x5555556410e7 "", cs=<optimized out>) at pcomplete.c:856
#8 0x00005555555b74bd in gen_compspec_completions (
cs=cs@entry=0x55555588e0d0, cmd=cmd@entry=0x555555640771 "compgen",
word=word@entry=0x5555556410e7 "", start=start@entry=0, end=end@entry=0,
foundp=foundp@entry=0x0) at pcomplete.c:1333
#9 0x00005555555cbdb2 in compgen_builtin (list=<optimized out>)
at ./complete.def:721
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."