Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux debian 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17)
x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.1
Patch Level: 0
Release Status: rc1
Description:
Dear Maintainer,
I tried to collect some more information for the bug described in [1]
and could reproduce the crash just by repeating the given commands
in a minimal debian testing qemu VM. Backtrace in [2].
The last bash version where the crash did not manifest was bash_5.0-7.
In #972672 the last message mentions also wdequote_pathname and
wcsrtombs, therefore I guess this might be related.
As wcsrtombs[3] is specified to set under certain circumstances *src to
NULL,
I assume in this line [4] wpathname should not get dereferenced, or
at least just after being checked for a non-NULL value.
Kind regards,
Bernhard
Repeat-By:
mkdir ~/ಇಳಿಕೆಗಳು
touch ~/ಇಳಿಕೆಗಳು/{a,b}.txt
ls ~/ಇಳಿಕೆಗಳು/*.txt
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972286
[2]
(rr) bt
#0 0x00005575f65a24fb in wdequote_pathname
(pathname=pathname@entry=0x5575f798b870 "/home/benutzer/ಇಳಿಕೆಗಳು/") at
../../.././lib/glob/glob.c:487
#1 0x00005575f65a30eb in dequote_pathname (pathname=0x5575f798b870
"/home/benutzer/ಇಳಿಕೆಗಳು/") at ../../.././lib/glob/glob.c:504
#2 glob_filename (pathname=pathname@entry=0x5575f7a733e0
"/\\h\\o\\m\\e/\\b\\e\\n\\u\\t\\z\\e\\r/ಇಳಿಕೆಗಳು/*.txt", flags=0) at
../../.././lib/glob/glob.c:1466
#3 0x00005575f656dc2d in shell_glob_filename (pathname=<optimized out>,
qflags=qflags@entry=8) at .././pathexp.c:470
#4 0x00005575f655b3e6 in glob_expand_word_list (tlist=0x5575f7a62c20,
eflags=31) at .././subst.c:11383
#5 0x00005575f6568685 in expand_word_list_internal (eflags=31,
list=<optimized out>) at .././subst.c:11983
#6 expand_words (list=<optimized out>) at .././subst.c:11331
#7 0x00005575f653a5f3 in execute_simple_command
(fds_to_close=0x5575f7a73280, async=0, pipe_out=-1, pipe_in=-1,
simple_command=<optimized out>) at .././execute_cmd.c:4377
#8 execute_command_internal (command=0x5575f79af5c0,
asynchronous=<optimized out>, pipe_in=-1, pipe_out=<optimized out>,
fds_to_close=0x5575f7a73280) at .././execute_cmd.c:846
#9 0x00005575f653b865 in execute_command (command=0x5575f79af5c0) at
.././execute_cmd.c:395
#10 0x00005575f65219db in reader_loop () at .././eval.c:170
#11 0x00005575f6520668 in main (argc=1, argv=0x7ffc8d1bfda8,
env=0x7ffc8d1bfdb8) at .././shell.c:811
[3] https://man7.org/linux/man-pages/man3/wcsrtombs.3.html
[4] https://sources.debian.org/src/bash/5.1%7Erc1-2/lib/glob/glob.c/#L487
# Bullseye/testing amd64 qemu VM 2020-10-30
apt update
apt dist-upgrade
apt install systemd-coredump mc htop psmisc net-tools gdb bash-dbgsym
apt build-dep bash
# for current rr
apt install systemd-coredump mc htop sshfs libcapnp-dev gdb
echo 1 > /proc/sys/kernel/perf_event_paranoid
mkdir -p /home/bernhard/data/entwicklung/2020/rr
sshfs -o allow_other,uid=1000,gid=1000
[email protected]:/home/bernhard/data/entwicklung/2020/rr
/home/bernhard/data/entwicklung/2020/rr
mkdir /home/benutzer/source/bash/orig -p
cd /home/benutzer/source/bash/orig
apt source bash
cd
mkdir /home/benutzer/source/libc6/orig -p
cd /home/benutzer/source/libc6/orig
apt source libc6
cd
dpkg-reconfigure locales
# add kn_IN.UTF-8
export LANG=kn_IN.UTF-8
mkdir ~/ಇಳಿಕೆಗಳು
touch ~/ಇಳಿಕೆಗಳು/{a,b}.txt
ls ~/ಇಳಿಕೆಗಳು/*.txt
benutzer@debian:~$ mkdir ~/ಇಳಿಕೆಗಳು
benutzer@debian:~$ touch ~/ಇಳಿಕೆಗಳು/{a,b}.txt
benutzer@debian:~$ ls ~/ಇಳಿಕೆಗಳು/*.txt
Connection to 127.0.254.89 closed.
journalctl -e
Okt 30 16:57:24 debian systemd[1]: Started Process Core Dump (PID 3129/UID 0).
Okt 30 16:57:24 debian sshd[2240]: Received disconnect from 10.0.2.2 port
41368:11: disconnected by user
Okt 30 16:57:24 debian sshd[2240]: Disconnected from user benutzer 10.0.2.2
port 41368
Okt 30 16:57:24 debian systemd[1]: session-3.scope: Succeeded.
Okt 30 16:57:24 debian sshd[2234]: pam_unix(sshd:session): session closed for
user benutzer
Okt 30 16:57:24 debian systemd-logind[417]: Session 3 logged out. Waiting for
processes to exit.
Okt 30 16:57:24 debian systemd-logind[417]: Removed session 3.
Okt 30 16:57:24 debian systemd-coredump[3130]: Process 2241 (bash) of user 1000
dumped core.
Stack trace of thread 2241:
#0 0x00007fdfef00afe7 kill
(libc.so.6 + 0x3bfe7)
#1 0x0000560e12312776 n/a (bash
+ 0x7f776)
#2 0x0000560e12312961
termsig_sighandler (bash + 0x7f961)
#3 0x00007fdfef00acc0 n/a
(libc.so.6 + 0x3bcc0)
#4 0x0000560e123464fb n/a (bash
+ 0xb34fb)
#5 0x0000560e123470eb
glob_filename (bash + 0xb40eb)
#6 0x0000560e12311c2d
shell_glob_filename (bash + 0x7ec2d)
#7 0x0000560e122ff3e6 n/a (bash
+ 0x6c3e6)
#8 0x0000560e1230c685
expand_words (bash + 0x79685)
#9 0x0000560e122de5f3
execute_command_internal (bash + 0x4b5f3)
#10 0x0000560e122df865
execute_command (bash + 0x4c865)
#11 0x0000560e122c59db
reader_loop (bash + 0x329db)
#12 0x0000560e122c4668 main
(bash + 0x31668)
#13 0x00007fdfeeff5cca
__libc_start_main (libc.so.6 + 0x26cca)
#14 0x0000560e122c46aa _start
(bash + 0x316aa)
Okt 30 16:57:24 debian systemd[1]: [email protected]: Succeeded.
root@debian:~# coredumpctl list
TIME PID UID GID SIG COREFILE EXE
Fri 2020-10-30 16:57:24 CET 2241 1000 1000 11 present /usr/bin/bash
root@debian:~# coredumpctl gdb 2241
PID: 2241 (bash)
UID: 1000 (benutzer)
GID: 1000 (benutzer)
Signal: 11 (SEGV)
Timestamp: Fri 2020-10-30 16:57:23 CET (1min 43s ago)
Command Line: -bash
Executable: /usr/bin/bash
Control Group: /user.slice/user-1000.slice/session-3.scope
Unit: session-3.scope
Slice: user-1000.slice
Session: 3
Owner UID: 1000 (benutzer)
Boot ID: bc204dc3a7c54128ae5bd8c9d605244e
Machine ID: 33f18f39d2a9438eb75b0ed52848afcd
Hostname: debian
Storage:
/var/lib/systemd/coredump/core.bash.1000.bc204dc3a7c54128ae5bd8c9d605244e.2241.1604073443000000.zst
Message: Process 2241 (bash) of user 1000 dumped core.
Stack trace of thread 2241:
#0 0x00007fdfef00afe7 kill (libc.so.6 + 0x3bfe7)
#1 0x0000560e12312776 n/a (bash + 0x7f776)
#2 0x0000560e12312961 termsig_sighandler (bash + 0x7f961)
#3 0x00007fdfef00acc0 n/a (libc.so.6 + 0x3bcc0)
#4 0x0000560e123464fb n/a (bash + 0xb34fb)
#5 0x0000560e123470eb glob_filename (bash + 0xb40eb)
#6 0x0000560e12311c2d shell_glob_filename (bash + 0x7ec2d)
#7 0x0000560e122ff3e6 n/a (bash + 0x6c3e6)
#8 0x0000560e1230c685 expand_words (bash + 0x79685)
#9 0x0000560e122de5f3 execute_command_internal (bash + 0x4b5f3)
#10 0x0000560e122df865 execute_command (bash + 0x4c865)
#11 0x0000560e122c59db reader_loop (bash + 0x329db)
#12 0x0000560e122c4668 main (bash + 0x31668)
#13 0x00007fdfeeff5cca __libc_start_main (libc.so.6 + 0x26cca)
#14 0x0000560e122c46aa _start (bash + 0x316aa)
GNU gdb (Debian 9.2-1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/bash...
(No debugging symbols found in /usr/bin/bash)
[New LWP 2241]
Core was generated by `-bash'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fdfef00afe7 in kill () at ../sysdeps/unix/syscall-template.S:120
120 ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht
gefunden.
(gdb) set width 0
(gdb) set pagination off
(gdb) bt
#0 0x00007fdfef00afe7 in kill () at ../sysdeps/unix/syscall-template.S:120
#1 0x0000560e12312776 in ?? ()
#2 0x0000560e12312961 in termsig_sighandler ()
#3 <signal handler called>
#4 0x0000560e123464fb in ?? ()
#5 0x0000560e123470eb in glob_filename ()
#6 0x0000560e12311c2d in shell_glob_filename ()
#7 0x0000560e122ff3e6 in ?? ()
#8 0x0000560e1230c685 in expand_words ()
#9 0x0000560e122de5f3 in execute_command_internal ()
#10 0x0000560e122df865 in execute_command ()
#11 0x0000560e122c59db in reader_loop ()
#12 0x0000560e122c4668 in main ()
(gdb)
# With dbgsym package
Core was generated by `-bash'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fdfef00afe7 in kill () at ../sysdeps/unix/syscall-template.S:120
120 ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht
gefunden.
(gdb) set width 0
(gdb) set pagination off
(gdb) directory /home/benutzer/source/bash/orig/bash-5.1~rc1
Source directories searched:
/home/benutzer/source/bash/orig/bash-5.1~rc1:$cdir:$cwd
(gdb) directory
/home/benutzer/source/bash/orig/bash-5.1~rc1/lib/readline/examples
Source directories searched:
/home/benutzer/source/bash/orig/bash-5.1~rc1/lib/readline/examples:/home/benutzer/source/bash/orig/bash-5.1~rc1:$cdir:$cwd
(gdb) bt
#0 0x00007fdfef00afe7 in kill () at ../sysdeps/unix/syscall-template.S:120
#1 0x0000560e12312776 in termsig_handler (sig=11) at .././sig.c:617
#2 0x0000560e12312961 in termsig_handler (sig=<optimized out>) at
.././sig.c:566
#3 termsig_sighandler (sig=<optimized out>) at .././sig.c:539
#4 <signal handler called>
#5 0x0000560e123464fb in wdequote_pathname
(pathname=pathname@entry=0x560e12c18160 "/home/benutzer/ಇಳಿಕೆಗಳು/") at
../../.././lib/glob/glob.c:487
#6 0x0000560e123470eb in dequote_pathname (pathname=0x560e12c18160
"/home/benutzer/ಇಳಿಕೆಗಳು/") at ../../.././lib/glob/glob.c:504
#7 glob_filename (pathname=pathname@entry=0x560e12bde1b0
"/\\h\\o\\m\\e/\\b\\e\\n\\u\\t\\z\\e\\r/ಇಳಿಕೆಗಳು/*.txt", flags=0) at
../../.././lib/glob/glob.c:1466
#8 0x0000560e12311c2d in shell_glob_filename (pathname=<optimized out>,
qflags=qflags@entry=8) at .././pathexp.c:470
#9 0x0000560e122ff3e6 in glob_expand_word_list (tlist=0x560e12bcb6b0,
eflags=31) at .././subst.c:11383
#10 0x0000560e1230c685 in expand_word_list_internal (eflags=31, list=<optimized
out>) at .././subst.c:11983
#11 expand_words (list=<optimized out>) at .././subst.c:11331
#12 0x0000560e122de5f3 in execute_simple_command (fds_to_close=0x560e12c33190,
async=0, pipe_out=-1, pipe_in=-1, simple_command=<optimized out>) at
.././execute_cmd.c:4377
#13 execute_command_internal (command=0x560e12bd2c70, asynchronous=<optimized
out>, pipe_in=-1, pipe_out=<optimized out>, fds_to_close=0x560e12c33190) at
.././execute_cmd.c:846
#14 0x0000560e122df865 in execute_command (command=0x560e12bd2c70) at
.././execute_cmd.c:395
#15 0x0000560e122c59db in reader_loop () at .././eval.c:170
#16 0x0000560e122c4668 in main (argc=1, argv=0x7ffc4c2223f8,
env=0x7ffc4c222408) at .././shell.c:811
(gdb) up
#1 0x0000560e12312776 in termsig_handler (sig=11) at .././sig.c:617
617 kill (getpid (), sig);
(gdb)
#2 0x0000560e12312961 in termsig_handler (sig=<optimized out>) at
.././sig.c:566
566 if (handling_termsig)
(gdb)
#3 termsig_sighandler (sig=<optimized out>) at .././sig.c:539
539 termsig_handler (sig);
(gdb)
#4 <signal handler called>
(gdb)
#5 0x0000560e123464fb in wdequote_pathname
(pathname=pathname@entry=0x560e12c18160 "/home/benutzer/ಇಳಿಕೆಗಳು/") at
../../.././lib/glob/glob.c:487
487 if (n == (size_t)-1 || *wpathname != 0) /* what? now you tell
me? */
(gdb) print pathname
$1 = 0x560e12c18160 "/home/benutzer/ಇಳಿಕೆಗಳು/"
(gdb) ptype pathname
type = char *
(gdb) print wpathname
$2 = 0x0
(gdb) print n
$3 = <optimized out>
export LANG=kn_IN.UTF-8
/home/bernhard/data/entwicklung/2020/rr/2020-10-30/obj_x86_64/bin/rr record bash
/home/bernhard/data/entwicklung/2020/rr/2020-10-30/obj_x86_64/bin/rr replay
/home/benutzer/.local/share/rr/bash-0
set width 0
set pagination off
directory /home/benutzer/source/bash/orig/bash-5.1~rc1
directory /home/benutzer/source/bash/orig/bash-5.1~rc1/lib/readline/examples
directory /home/benutzer/source/libc6/orig/glibc-2.31/wcsmbs
cont
bt
print wpathname
reverse-next
reverse-next
reverse-next
print pathname
print wpathname
print len
print ps
b wcsrtombs
cont
benutzer@debian:~$ export LANG=kn_IN.UTF-8
benutzer@debian:~$
/home/bernhard/data/entwicklung/2020/rr/2020-10-30/obj_x86_64/bin/rr record bash
rr: Saving execution to trace directory `/home/benutzer/.local/share/rr/bash-0'.
benutzer@debian:~$ ls ~/ಇಳಿಕೆಗಳು/*.txt
Segmentation fault
benutzer@debian:~$
/home/bernhard/data/entwicklung/2020/rr/2020-10-30/obj_x86_64/bin/rr replay
/home/benutzer/.local/share/rr/bash-0
GNU gdb (Debian 9.2-1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/bash...
Reading symbols from
/usr/lib/debug/.build-id/de/97c4b34a74de081323d753d6934ecad2532fd6.debug...
Really redefine built-in command "restart"? (y or n) [answered Y; input not
from terminal]
Remote debugging using 127.0.0.1:13578
Reading symbols from /lib64/ld-linux-x86-64.so.2...
Reading symbols from
/usr/lib/debug/.build-id/73/b5f3f35d011747d94a91cce4412ca4545451e2.debug...
0x00007f89a498d090 in _start () from /lib64/ld-linux-x86-64.so.2
(rr) set width 0
(rr) set pagination off
(rr) directory /home/benutzer/source/bash/orig/bash-5.1~rc1
Source directories searched:
/home/benutzer/source/bash/orig/bash-5.1~rc1:$cdir:$cwd
(rr) directory
/home/benutzer/source/bash/orig/bash-5.1~rc1/lib/readline/examples
Source directories searched:
/home/benutzer/source/bash/orig/bash-5.1~rc1/lib/readline/examples:/home/benutzer/source/bash/orig/bash-5.1~rc1:$cdir:$cwd
(rr) directory /home/benutzer/source/libc6/orig/glibc-2.31/wcsmbs
Source directories searched:
/home/benutzer/source/libc6/orig/glibc-2.31/wcsmbs:/home/benutzer/source/bash/orig/bash-5.1~rc1/lib/readline/examples:/home/benutzer/source/bash/orig/bash-5.1~rc1:$cdir:$cwd
(rr) cont
Continuing.
benutzer@debian:~$ ls ~/ಇಳಿಕೆಗಳು/*.txt
Program received signal SIGSEGV, Segmentation fault.
0x00005575f65a24fb in wdequote_pathname (pathname=pathname@entry=0x5575f798b870
"/home/benutzer/ಇಳಿಕೆಗಳು/") at ../../.././lib/glob/glob.c:487
487 if (n == (size_t)-1 || *wpathname != 0) /* what? now you tell
me? */
(rr) bt
#0 0x00005575f65a24fb in wdequote_pathname
(pathname=pathname@entry=0x5575f798b870 "/home/benutzer/ಇಳಿಕೆಗಳು/") at
../../.././lib/glob/glob.c:487
#1 0x00005575f65a30eb in dequote_pathname (pathname=0x5575f798b870
"/home/benutzer/ಇಳಿಕೆಗಳು/") at ../../.././lib/glob/glob.c:504
#2 glob_filename (pathname=pathname@entry=0x5575f7a733e0
"/\\h\\o\\m\\e/\\b\\e\\n\\u\\t\\z\\e\\r/ಇಳಿಕೆಗಳು/*.txt", flags=0) at
../../.././lib/glob/glob.c:1466
#3 0x00005575f656dc2d in shell_glob_filename (pathname=<optimized out>,
qflags=qflags@entry=8) at .././pathexp.c:470
#4 0x00005575f655b3e6 in glob_expand_word_list (tlist=0x5575f7a62c20,
eflags=31) at .././subst.c:11383
#5 0x00005575f6568685 in expand_word_list_internal (eflags=31, list=<optimized
out>) at .././subst.c:11983
#6 expand_words (list=<optimized out>) at .././subst.c:11331
#7 0x00005575f653a5f3 in execute_simple_command (fds_to_close=0x5575f7a73280,
async=0, pipe_out=-1, pipe_in=-1, simple_command=<optimized out>) at
.././execute_cmd.c:4377
#8 execute_command_internal (command=0x5575f79af5c0, asynchronous=<optimized
out>, pipe_in=-1, pipe_out=<optimized out>, fds_to_close=0x5575f7a73280) at
.././execute_cmd.c:846
#9 0x00005575f653b865 in execute_command (command=0x5575f79af5c0) at
.././execute_cmd.c:395
#10 0x00005575f65219db in reader_loop () at .././eval.c:170
#11 0x00005575f6520668 in main (argc=1, argv=0x7ffc8d1bfda8,
env=0x7ffc8d1bfdb8) at .././shell.c:811
(rr) print wpathname
$1 = 0x0
(rr) reverse-next
Program received signal SIGSEGV, Segmentation fault.
0x00005575f65a24fb in wdequote_pathname (pathname=pathname@entry=0x5575f798b870
"/home/benutzer/ಇಳಿಕೆಗಳು/") at ../../.././lib/glob/glob.c:487
487 if (n == (size_t)-1 || *wpathname != 0) /* what? now you tell
me? */
(rr) reverse-next
487 if (n == (size_t)-1 || *wpathname != 0) /* what? now you tell
me? */
(rr) reverse-next
486 n = wcsrtombs(pathname, (const wchar_t **)&wpathname, len, &ps);
(rr) print pathname
$2 = 0x5575f798b870 "/\\h\\o\\m\\e/\\b\\e\\n\\u\\t\\z\\e\\r/ಇಳಿಕೆಗಳು/"
(rr) print wpathname
$3 = 0x5575f79a9fe0 L"/home/benutzer/ಇಳಿಕೆಗಳು/"
(rr) print len
$4 = 52
(rr) print ps
$5 = {__count = 0, __value = {__wch = 0, __wchb = "\000\000\000"}}
(rr) b wcsrtombs
Breakpoint 1 at 0x5575f655408e: wcsrtombs. (3 locations)
(rr) cont
Continuing.
Breakpoint 1, __wcsrtombs (dst=dst@entry=0x5575f798b870
"/\\h\\o\\m\\e/\\b\\e\\n\\u\\t\\z\\e\\r/ಇಳಿಕೆಗಳು/",
src=src@entry=0x7ffc8d1bf7d8, len=len@entry=52, ps=ps@entry=0x7ffc8d1bf7e0) at
wcsrtombs.c:39
39 {
(rr) next
49 data.__flags = __GCONV_IS_LAST;
(rr)
50 data.__statep = ps ?: &state;
(rr)
53 fcts = get_gconv_fcts (_NL_CURRENT_DATA (LC_CTYPE));
(rr)
56 tomb = fcts->tomb;
(rr) print fcts
$6 = (const struct gconv_fcts *) 0x5575f79854a0
(rr) next
57 __gconv_fct fct = tomb->__fct;
(rr)
59 if (tomb->__shlib_handle != NULL)
(rr)
64 if (dst == NULL)
(rr)
104 const wchar_t *srcend = *src + __wcsnlen (*src, len) + 1;
(rr) print src
$7 = (const wchar_t **) 0x7ffc8d1bf7d8
(rr) print *src
$8 = 0x5575f79a9fe0 L"/home/benutzer/ಇಳಿಕೆಗಳು/"
(rr) print len
$9 = 52
(rr) next
110 status = DL_CALL_FCT (fct, (tomb, &data, (const unsigned char **)
src,
(rr) print status
$10 = <optimized out>
(rr) next
115 result = data.__outbuf - (unsigned char *) dst;
(rr) print status
$11 = 4
(rr) print data.__outbuf
$12 = (unsigned char *) 0x5575f798b899 "\206ಗಳು/"
(rr) print *data.__outbuf
$13 = 134 '\206'
(rr) print dst
$14 = 0x5575f798b870 "/home/benutzer/ಇಳಿಕೆಗಳು/"
(rr) print result
$15 = <optimized out>
(rr) next
119 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT)
(rr) print status
$16 = 4
(rr) next
122 assert (data.__outbuf != (unsigned char *) dst);
(rr) list
117 /* We have to determine whether the last character converted
118 is the NUL character. */
119 if ((status == __GCONV_OK || status == __GCONV_EMPTY_INPUT)
120 && data.__outbuf[-1] == '\0')
121 {
122 assert (data.__outbuf != (unsigned char *) dst);
123 assert (__mbsinit (data.__statep));
124 *src = NULL;
125 --result;
126 }
(rr) next
123 assert (__mbsinit (data.__statep));
(rr)
124 *src = NULL;
(rr)
125 --result;
(rr) print result
$17 = 41
(rr) next
131 assert (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT
(rr)
136 if (status != __GCONV_OK && status != __GCONV_FULL_OUTPUT
(rr)
wdequote_pathname (pathname=pathname@entry=0x5575f798b870
"/home/benutzer/ಇಳಿಕೆಗಳು/") at ../../.././lib/glob/glob.c:487
487 if (n == (size_t)-1 || *wpathname != 0) /* what? now you tell
me? */
(rr) print &wpathname
$18 = (wchar_t **) 0x7ffc8d1bf7d8
(rr) list
482 wcdequote_pathname (wpathname);
483
484 /* Convert the wide character string into unibyte character set. */
485 memset (&ps, '\0', sizeof(mbstate_t));
486 n = wcsrtombs(pathname, (const wchar_t **)&wpathname, len, &ps);
487 if (n == (size_t)-1 || *wpathname != 0) /* what? now you tell
me? */
488 {
489 wpathname = orig_wpathname;
490 memset (&ps, '\0', sizeof(mbstate_t));
491 n = xwcsrtombs (pathname, (const wchar_t **)&wpathname, len, &ps);
(rr)
https://sources.debian.org/src/bash/5.1%7Erc1-2/lib/glob/glob.c/#L487
https://sources.debian.org/src/glibc/2.31-4/wcsmbs/wcsrtombs.c/#L124
https://man7.org/linux/man-pages/man3/wcsrtombs.3.html
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972672
https://git.savannah.gnu.org/cgit/bash.git/tree/lib/glob/glob.c?h=bash-5.1-testing
https://git.savannah.gnu.org/cgit/bash.git/commit/lib/glob/glob.c?h=bash-5.1-testing&id=712f80b0a49c3a0227d0b52bff5e0b763747697e
From: benutzer
To: [email protected],[email protected]
Subject: [50 character or so descriptive subject here (for reference)]
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux debian 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17)
x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.1
Patch Level: 0
Release Status: rc1
Description:
[Detailed description of the problem, suggestion, or complaint.]
Repeat-By:
[Describe the sequence of events that causes the problem
to occur.]
Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't include this section.]