[php-src] Issue #8129: Segmentation fault local user
| From: | KvanSteijn | Date: | Mon, 21 Feb 2022 10:47:12 +0000 |
| Subject: | [php-src] Issue #8129: Segmentation fault local user | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239914@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8129
Author: KvanSteijn
### Description
When I run php as a local user, I got a segmentation fault. When is run this command as root,
it's works fine.
```
kevin@kitt(DEV-CORE):~$ php
Segmentation fault
```
```
kevin@kitt(DEV-CORE):~$ gdb /usr/bin/php
GNU gdb (Debian 8.2.1-2+b3) 8.2.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-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/php...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff70847e4 in _IO_new_fclose (fp=0x0) at iofclose.c:48
48 iofclose
```
### PHP Version
PHP 8.1.2 (cli) (built: Jan 27 2022 12:20:56) (NTS)
### Operating System
Debian GNU/Linux 10 (buster)