Bug 1152738
Summary: | [abrt] php-fpm: zend_std_object_get_class_name(): php-fpm killed by SIGSEGV | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> | ||||||||||||||||||||||||||||
Component: | php-xcache | Assignee: | Remi Collet <fedora> | ||||||||||||||||||||||||||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||||||||
Version: | 21 | CC: | fedora, jorton | ||||||||||||||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/9dd8c7f9ae9389add79fbce90045f03241de642d | ||||||||||||||||||||||||||||||
Whiteboard: | abrt_hash:b4f06cdffb67ab94e280b615a6b278d975a2c781 | ||||||||||||||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||||||||
Last Closed: | 2014-11-04 14:27:28 UTC | Type: | --- | ||||||||||||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||||
Embargoed: | |||||||||||||||||||||||||||||||
Attachments: |
|
Description
Mikhail
2014-10-14 20:13:56 UTC
Created attachment 947022 [details]
File: backtrace
Created attachment 947023 [details]
File: cgroup
Created attachment 947024 [details]
File: core_backtrace
Created attachment 947025 [details]
File: dso_list
Created attachment 947026 [details]
File: environ
Created attachment 947027 [details]
File: exploitable
Created attachment 947028 [details]
File: limits
Created attachment 947029 [details]
File: maps
Created attachment 947030 [details]
File: open_fds
Created attachment 947031 [details]
File: proc_pid_status
Created attachment 947032 [details]
File: var_log_messages
First, this is not a PHP bug, so re-affecting to XCache. Sorry but your code doesn't have any sense. You should not cache the query (PDOStatement) but the result of the Query. Despite, XCache should not crash, and properly detect the error. If you try $a = $db->query("SELECT 1"); It will raise a fatal error Fatal error: xcache_set(): Objects cannot be stored in the variable cache. Use serialize before xcache_set in But with $a[] = $db->query("SELECT 1"); Xcache is unable to detect that the value cannot be cached. Created attachment 947099 [details]
xcache.patch
This patch seems to solve this issue anc correctly raise a fatal error with an array of objects.
Need to get upstream feedback.
Upstream report: https://groups.google.com/forum/#!topic/xcache/vwlzkQBkeHI Created attachment 947116 [details]
xcache.patch
Improve previous, protect against recursion
Closing as workaround (good code) exists, and this but have be reported upstream with a patch proposal. Even if it seems, upstream don't care of segfault on bad code. *** Bug 1238879 has been marked as a duplicate of this bug. *** |