php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68560 segfault after command
Submitted: 2014-12-07 06:04 UTC Modified: 2020-04-19 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: honey at internot dot info Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 5.5.19 OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: honey at internot dot info
New email:
PHP Version: OS:

 

 [2014-12-07 06:04 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-08 10:46 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-04-08 10:46 UTC] cmb@php.net
Does this segfault still happen for you with any of the actively
supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-04-19 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 12:01:30 2024 UTC