bug#34238: Assertion `num >= 0' failed at regexec.c:1363
Thanks for the test case. This appears to be the same as bug#22793 so I'll merge them. https://debbugs.gnu.org/22793
bug#34238: Assertion `num >= 0' failed at regexec.c:1363
Hi, GNU grep 3.3.7-8df7 (and other versions such as 3.1) may trigger an assertion failure by executing the following command. echo | grep -f regex.grep Reading symbols from ./grep...done. gdb$ run Starting program: /home/hongxu/FOT/grep-asan/install/bin/grep -q -f assert_regexec.c:1363.g