FS#58267 - pgrep with -F flag segfaults
Attached to Project:
Arch Linux
Opened by Mattias Giese (lowercase) - Thursday, 19 April 2018, 09:09 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 21 April 2018, 14:17 GMT
Opened by Mattias Giese (lowercase) - Thursday, 19 April 2018, 09:09 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 21 April 2018, 14:17 GMT
|
Details
Description:
Running pgrep with -F and a pidfile fails: $ cat ~/.pia_pid 2398 $ pgrep -F ~/.pia_pid Segmentation fault (core dumped) $ ps -ef | grep 239[8] root 2398 2391 0 20:52 pts/1 00:00:00 myproc $ gdb pgrep GNU gdb (GDB) 8.1 Copyright (C) 2018 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-pc-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 pgrep...(no debugging symbols found)...done. (gdb) r -F ~/.pia_pid Starting program: /usr/bin/pgrep -F ~/.pia_pid [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00005555555574d6 in ?? () (gdb) bt full #0 0x00005555555574d6 in ?? () No symbol table info available. #1 0x0000555555555d9e in ?? () No symbol table info available. #2 0x00007ffff781cf4a in __libc_start_main () from /usr/lib/libc.so.6 No symbol table info available. #3 0x000055555555624a in ?? () No symbol table info available. (gdb) quit Additional info: * procps-ng 3.3.13-1 Steps to reproduce: Write a PID into a file Run pgrep -F $PIDFILE |
This task depends upon
Closed by Doug Newgard (Scimmia)
Saturday, 21 April 2018, 14:17 GMT
Reason for closing: None
Additional comments about closing: Possibly fixed
Saturday, 21 April 2018, 14:17 GMT
Reason for closing: None
Additional comments about closing: Possibly fixed
pgrep -u root
as a normal user also creates a segmentation fault on my machine. Shall I open a new bug for this?