Bug #68560 [NEW]: segfault after command
| From: | honey at internot dot info | Date: | Sun, 07 Dec 2014 06:05:00 +0000 |
| Subject: | Bug #68560 [NEW]: segfault after command | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188953@lists.php.net to get a copy of this message | ||
From: honey at internot dot info
Operating system: Linux Ubuntu 14.04
PHP version: 5.5.19
Package: *General Issues
Bug Type: Bug
Bug description:segfault after command
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 bug report at https://bugs.php.net/bug.php?id=68560&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68560&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68560&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68560&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68560&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68560&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68560&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68560&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68560&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68560&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68560&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68560&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68560&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68560&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68560&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68560&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68560&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68560&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68560&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68560&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68560&r=mysqlcfg