操作
Bug(バグ) #1831
完了Segmentation fault occurs by openpne:migrate task (openpne:migrateタスクでセグメンテーション違反)
開始日:
2010-12-04
期日:
進捗率:
100%
予定工数:
3.6 で発生するか:
Yes
3.8 で発生するか:
Unknown (未調査)
説明
Overview¶
Segmentation fault occurs by openpne:migrate task (openpne:migrateタスクでセグメンテーション違反)
>> plugin installing plugin "opRankingPlugin" >> opPluginManager Plugin is already installed zsh: segmentation fault
$ php -v PHP 5.3.3-0.dotdeb.1 with Suhosin-Patch (cli) (built: Oct 1 2010 08:49:29) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologie
GDB debug trace
(gdb) file /usr/bin/php (gdb) run symfony openpne:migrate ... ... (gdb) bt #0 0x000000000075f6e2 in zend_hash_get_current_key_type_ex () #1 0x0000000000638b44 in ?? () #2 0x0000000000747950 in zend_call_function () #3 0x00000000007481e8 in zend_lookup_class_ex () #4 0x0000000000766198 in ?? () #5 0x00000000007a73ee in ?? () #6 0x0000000000782871 in execute () #7 0x0000000000753061 in zend_execute_scripts () #8 0x00000000006fc4a8 in php_execute_script () #9 0x00000000007e6d8b in ?? () #10 0x00007fd06cf7d1a6 in __libc_start_main () from /lib/libc.so.6 #11 0x0000000000430f09 in _start () (gdb) print (char *)executor_globals.active_op_array->filename $1 = 0x5cc7658 "/home/kawahara/dev/OpenPNE3/lib/vendor/PEAR/Net/UserAgent/Mobile.php" (gdb) print (char *)executor_globals.active_op_array->function_name $2 = 0x5d20f30 "factory"
Causes¶
This segmentation fault occurs by lib/vendor/PEAR/Net/UserAgent/Mobile.php line 158.
if (!class_exists($class)) {
I think that cause is auto-loader.
Way to fix¶
"lib/vendor/PEAR/Net/UserAgent/Mobile.php" is changed as follows as a temporary measure.
diff --git a/lib/vendor/PEAR/Net/UserAgent/Mobile.php b/lib/vendor/PEAR/Net/UserAgent/Mobile.php
index 51404d8..317a283 100644
--- a/lib/vendor/PEAR/Net/UserAgent/Mobile.php
+++ b/lib/vendor/PEAR/Net/UserAgent/Mobile.php
@@ -155,7 +155,7 @@ class Net_UserAgent_Mobile
$class = "Net_UserAgent_Mobile_$driver";
- if (!class_exists($class)) {
+ if (!class_exists($class, false)) {
$file = str_replace('_', '/', $class) . '.php';
if (!include_once $file) {
return PEAR::raiseError(null,
And opMobileUserAgent is changed as follows.
diff --git a/lib/util/opMobileUserAgent.class.php b/lib/util/opMobileUserAgent.class.php
index 95ce784..7277665 100644
--- a/lib/util/opMobileUserAgent.class.php
+++ b/lib/util/opMobileUserAgent.class.php
@@ -24,7 +24,8 @@ class opMobileUserAgent
protected function __construct()
{
require_once 'Net/UserAgent/Mobile.php';
-
+ require_once 'Net/UserAgent/Mobile/NonMobile.php';
+
self::$mobile = Net_UserAgent_Mobile::factory();
if (self::$mobile instanceof Net_UserAgent_Mobile_Error)
{
Shogo Kawahara さんが約14年前に更新
- ステータス を New(新規) から Pending Review(レビュー待ち) に変更
- 進捗率 を 0 から 50 に変更
更新履歴 62991b1d2d4c5c5e829184d13491e1bfe8ee177b で適用されました。
Kousuke Ebihara さんが13年以上前に更新
- ステータス を Pending Review(レビュー待ち) から Pending Testing(テスト待ち) に変更
- 進捗率 を 50 から 70 に変更
Yuma Sakata さんが約13年前に更新
- ステータス を Pending Testing(テスト待ち) から Fixed(完了) に変更
- 進捗率 を 70 から 100 に変更
テストOKです。
操作