Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something wrong with xdebug? #2856

Closed
xueron opened this issue Sep 28, 2014 · 4 comments
Closed

something wrong with xdebug? #2856

xueron opened this issue Sep 28, 2014 · 4 comments

Comments

@xueron
Copy link
Contributor

xueron commented Sep 28, 2014

I'm using phalcon 1.3.3 with xdebug, when I gen IDE helpers with phalcon-devtools, got:

[root@centos6 phpstorm]# sh phalcon.sh

Phalcon DevTools (1.3.3)

phalcon.sh: line 52: 2055 Segmentation fault php "$PTOOLSPATH/phalcon.php" $*

If I disabled xdebug, all became ok:
[root@centos6 phpstorm]# mv /etc/php.d/xdebug.ini /etc/php.d/xdebug.ini.disabled
[root@centos6 phpstorm]# sh phalcon.sh

Phalcon DevTools (1.3.3)

Available commands:
commands (alias of: list, enumerate)
controller (alias of: create-controller)
model (alias of: create-model)
all-models (alias of: create-all-models)
project (alias of: create-project)
scaffold
migration
webtools

MY ENV:
Centos 6 x64
phalcon 1.3.3
xdebug 2.2.5

[root@centos6 phpstorm]# php -v
PHP 5.5.16 (cli) (built: Sep 2 2014 08:49:01)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
[root@centos6 phpstorm]# rpm -qa| grep xdebug
php55u-pecl-xdebug-2.2.5-1.ius.centos6.x86_64


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

@sjinks
Copy link
Contributor

sjinks commented Sep 29, 2014

@xueron
Copy link
Contributor Author

xueron commented Sep 30, 2014

Hi @sjinks , I'v follow the tips and got these infomation. Not so familiar with gdb :) Hope be usfull.

cmd:
[root@centos6 phpstorm]# echo $PTOOLSPATH
/root/phalcon-devtools-master
[root@centos6 phpstorm]# sh phalcon.sh

Phalcon DevTools (1.3.3)

phalcon.sh: line 52: 14474 Segmentation fault (core dumped) php "$PTOOLSPATH/phalcon.php" $*
[root@centos6 phpstorm]#

[root@centos6 phpstorm]# ls
core.14474 phalcon.bat phalcon.sh

GDB info:

(gdb) bt full
#0 0x00007f655ee50d18 in xdebug_zval_ptr ()
from /usr/lib64/php/modules/xdebug.so
No symbol table info available.
#1 0x00007f655ee4c69e in xdebug_execute_internal ()
from /usr/lib64/php/modules/xdebug.so
No symbol table info available.
#2 0x00000000005adeb5 in zend_call_function ()
No symbol table info available.
#3 0x00000000005d2e37 in zend_call_method ()
No symbol table info available.
#4 0x00000000004c6e76 in ?? ()
No symbol table info available.
#5 0x00000000005aaac9 in dtrace_execute_internal ()
No symbol table info available.
#6 0x00007f655ee4c5b2 in xdebug_execute_internal ()
from /usr/lib64/php/modules/xdebug.so
No symbol table info available.
#7 0x00000000005adeb5 in zend_call_function ()
---Type to continue, or q to quit---
No symbol table info available.
#8 0x00000000005ae195 in zend_lookup_class_ex ()
No symbol table info available.
#9 0x00000000005ae5ff in zend_fetch_class_by_name ()
No symbol table info available.
#10 0x00000000005f91bb in ?? ()
No symbol table info available.
#11 0x000000000062e898 in execute_ex ()
No symbol table info available.
#12 0x00000000005aabfe in dtrace_execute_ex ()
No symbol table info available.
#13 0x00007f655ee4cb9b in xdebug_execute_ex ()
from /usr/lib64/php/modules/xdebug.so
No symbol table info available.
#14 0x00007f655a105b7c in phalcon_require_ret (return_value_ptr=0x0,
require_path=0x7f656508b628 "/root/phalcon-devtools-master/scripts/Phalcon/Commands/Builtin/Enumerate.php") at /root/cphalcon-1.3.3/ext/kernel/require.c:67
original_return_value = 0x7fff93bab318
---Type to continue, or q to quit---
original_active_op_array = 0x7f6565089be8
original_opline_ptr = 0x7f6565056b40
dummy = 1
new_op_array = 0x7f65650908c0
file_handle = {type = ZEND_HANDLE_MAPPED,
filename = 0x7f656508b628 "/root/phalcon-devtools-master/scripts/Phalcon/Commands/Builtin/Enumerate.php", opened_path = 0x0, handle = {
fd = 1695066128, fp = 0x7f656508a810, stream = {
handle = 0x7f656508a810, isatty = 0, mmap = {len = 2961,
pos = 0, map = 0x0,
buf = 0x7f65650ab000 <Address 0x7f65650ab000 out of bounds>,
old_handle = 0x0, old_closer = 0},
reader = 0x573190 <_php_stream_read>, fsizer = 0x55b3c0,
closer = 0x55b3b0}}, free_filename = 0 '\000'}
ret = 0
FUNCTION = "phalcon_require_ret"
#15 0x00007f655a2fe5cf in phalcon_require (
require_path=0x7f656508b628 "/root/phalcon-devtools-master/scripts/Phalcon/C
---Type to continue, or q to quit---
ommands/Builtin/Enumerate.php") at /root/cphalcon-1.3.3/ext/kernel/require.h:29
No locals.
#16 0x00007f655a303044 in zim_Phalcon_Loader_autoLoad (ht=1,
return_value=0x7f6554b0b500, return_value_ptr=0x7fff93baacd8,
this_ptr=0x7f656508b7b0, return_value_used=1)
at /root/cphalcon-1.3.3/ext/loader.c:776
class_name = 0x7f6554b06890
events_manager = 0x1b185c0
event_name = 0x0
classes = 0x1b19680
file_path = 0x7f6554b0b650
extensions = 0x7f65650892c8
ds = 0x7f6554b0b530
namespace_separator = 0x7f6554b0b560
empty_str = 0x7f6554b0b590
namespaces = 0x7f656508b0a0
directory = 0x7f656508b710
ns_prefix = 0x7f6554b0b5c0

---Type to continue, or q to quit---
ns_prefixed = 0x7f6554b0b5f0
file_name = 0x7f6554b0b620
fixed_directory = 0x7f656508b710
extension = 0x7f65650892f8
pseudo_separator = 0x7f6554b0b6d8
prefixes = 0x1b19570
prefix = 0x0
ds_class_name = 0x7f6554b0b708
ns_class_name = 0x7f6554b0b738
directories = 0x7f6565089328
ah0 = 0x7f656508f2f8
ah1 = 0x7f656508bd40
ah2 = 0x7fff93baa648
ah3 = 0x7fff93baa27c
ah4 = 0x7f656508c598
ah5 = 0x7f656508bd40
hp0 = 0x0
hp1 = 0x0
---Type to continue, or q to quit---
hp2 = 0x7fff93baaa90
hp3 = 0x0
hp4 = 0x7f656508c640
hp5 = 0x7f656508b198
hd = 0x7f656508b1b0
slash = "/"
FUNCTION = "zim_Phalcon_Loader_autoLoad"
#17 0x00000000005aaac9 in dtrace_execute_internal ()
No symbol table info available.
#18 0x00007f655ee4c5b2 in xdebug_execute_internal ()
from /usr/lib64/php/modules/xdebug.so
No symbol table info available.
#19 0x00000000005adeb5 in zend_call_function ()
No symbol table info available.
#20 0x00000000005d2e37 in zend_call_method ()
No symbol table info available.
#21 0x00000000004c6e76 in ?? ()
No symbol table info available.
---Type to continue, or q to quit---
#22 0x00000000005aaac9 in dtrace_execute_internal ()
No symbol table info available.
#23 0x00007f655ee4c5b2 in xdebug_execute_internal ()
from /usr/lib64/php/modules/xdebug.so
No symbol table info available.
#24 0x00000000005adeb5 in zend_call_function ()
No symbol table info available.
#25 0x00000000005ae195 in zend_lookup_class_ex ()
No symbol table info available.
#26 0x00000000005ae702 in zend_fetch_class ()
No symbol table info available.
#27 0x0000000000605879 in ?? ()
No symbol table info available.
#28 0x000000000062e898 in execute_ex ()
No symbol table info available.
#29 0x00000000005aabfe in dtrace_execute_ex ()
No symbol table info available.
#30 0x00007f655ee4cb9b in xdebug_execute_ex ()
---Type to continue, or q to quit---
from /usr/lib64/php/modules/xdebug.so
No symbol table info available.
#31 0x00000000005b9bfc in zend_execute_scripts ()
No symbol table info available.
#32 0x000000000055a130 in php_execute_script ()
No symbol table info available.
#33 0x000000000066b343 in ?? ()
No symbol table info available.
#34 0x000000000066bb48 in ?? ()
No symbol table info available.
#35 0x00000032ea21ed5d in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#36 0x0000000000421349 in _start ()
No symbol table info available.
(gdb)

@phalcon
Copy link
Collaborator

phalcon commented Sep 30, 2014

Related to: xdebug/xdebug#120

@phalcon phalcon changed the title somthing wrong with xdebug? something wrong with xdebug? Sep 30, 2014
@phalcon
Copy link
Collaborator

phalcon commented Nov 17, 2014

Fixed in Xdebug 2.2.6

@phalcon phalcon closed this as completed Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants