Bug #68560 [Opn->Fbk]: segfault after command
| From: | cmb@php.net | Date: | Wed, 08 Apr 2020 10:46:52 +0000 |
| Subject: | Bug #68560 [Opn->Fbk]: segfault after command | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226477@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68560&edit=1
ID: 68560
Updated by: cmb@php.net
Reported by: honey at internot dot info
Summary: segfault after command
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Linux Ubuntu 14.04
PHP Version: 5.5.19
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Does this segfault still happen for you with any of the actively
supported PHP versions[1]?
[1] <https://www.php.net/supported-versions.php>
Previous Comments:
------------------------------------------------------------------------
[2014-12-07 06:04:59] honey at internot dot info
Description:
------------
Hi,
Compiling php5-5.5.9+dfsg from the Ubuntu repo's works fine, but when running the php
executable, it segfaults due to an invalid pointer.
# ./sapi/cli/php -r 'echo test . "\n";'
test
*** Error in `./sapi/cli/php': munmap_chunk(): invalid pointer: 0x000060060004a200 ***
Aborted (core dumped)
Here is a gdb output:
[New Thread 0x7fffe762b700 (LWP 54760)]
[Thread 0x7fffe762b700 (LWP 54760) exited]
test
*** Error in `/root/srcs/php5/php5-5.5.9+dfsg/cgi-build/sapi/cli/php': munmap_chunk(): invalid
pointer: 0x000060060004a230 ***
Program received signal SIGABRT, Aborted.
0x00007ffff2fefbb9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff2fefbb9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff2ff2fc8 in __GI_abort () at abort.c:89
#2 0x00007ffff302ce14 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff313b5a8
"*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff3037b77 in malloc_printerr (action=<optimised out>, str=0x7ffff313b928
"munmap_chunk(): invalid pointer", ptr=<optimised out>) at malloc.c:4996
#4 0x00007fffe94b7823 in ?? () from /usr/lib/x86_64-linux-gnu/libsybdb.so.5
#5 0x00007fffe94b78a1 in ?? () from /usr/lib/x86_64-linux-gnu/libsybdb.so.5
#6 0x00007fffe94a3b4c in ?? () from /usr/lib/x86_64-linux-gnu/libsybdb.so.5
#7 0x00007fffe9706b00 in zm_shutdown_mssql (type=<optimised out>, module_number=<optimised
out>) at /build/buildd/php5-5.5.9+dfsg/ext/mssql/php_mssql.c:512
#8 0x0000000001912240 in module_destructor (module=0x601e0000bbc0) at
/root/srcs/php5/php5-5.5.9+dfsg/Zend/zend_API.c:2360
#9 0x000000000194daa6 in zend_hash_apply_deleter (p=0x600e000216c0, ht=<optimised out>) at
/root/srcs/php5/php5-5.5.9+dfsg/Zend/zend_hash.c:650
#10 zend_hash_graceful_reverse_destroy (ht=0x2ad6860 <module_registry>) at
/root/srcs/php5/php5-5.5.9+dfsg/Zend/zend_hash.c:687
#11 0x00000000018db76e in zend_shutdown () at /root/srcs/php5/php5-5.5.9+dfsg/Zend/zend.c:817
#12 0x00000000015b352a in php_module_shutdown () at /root/srcs/php5/php5-5.5.9+dfsg/main/main.c:2384
#13 0x000000000045f9d5 in main (argc=<optimised out>, argv=0x60060000ef20) at
/root/srcs/php5/php5-5.5.9+dfsg/sapi/cli/php_cli.c:1393
#14 0x00007ffff2fdaec5 in __libc_start_main (main=0x45eb30 <main>, argc=3,
argv=0x7fffffffe0c8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised
out>, stack_end=0x7fffffffe0b8) at libc-start.c:287
#15 0x00000000004615ee in _start ()
(gdb)
Thanks
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68560&edit=1