php-src
php-src copied to clipboard
Segmentation fault local user
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)
Please post a backtrace.
Sorry, see backtrace.
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff70847e4 in _IO_new_fclose (fp=0x0) at iofclose.c:48
48 iofclose.c: No such file or directory.
(gdb) bt
£0 0x00007ffff70847e4 in _IO_new_fclose (fp=0x0) at iofclose.c:48
£1 0x000055555589ed58 in ?? ()
£2 0x00005555557d19e5 in ?? ()
£3 0x00005555557cac62 in php_module_startup ()
£4 0x00005555559120cd in ?? ()
£5 0x000055555567266f in ?? ()
£6 0x00007ffff703909b in __libc_start_main (main=0x555555672360, argc=1, argv=0x7fffffffebb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffeba8) at ../csu/libc-start.c:308
£7 0x000055555567290a in _start ()
The backtrace without debug symbols doesn't help. But please try with PHP 8.1.3 anyway; this might be a duplicate of #7883.
The backtrace without debug symbols doesn't help. But please try with PHP 8.1.3 anyway; this might be a duplicate of #7883.
It's exactly the same issue. Thanks for your help!