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

php7 qconf_manager扩展QConfZK循环操作多个zookeeper报段错误 #114

Open
0daypwn opened this issue May 5, 2019 · 0 comments
Open

Comments

@0daypwn
Copy link

0daypwn commented May 5, 2019

php7 环境编译 manager/src/php-7/ 扩展 QConfZK
循环操作多个ZK地址时,第一个ZK可以操作成功,第二个ZK就会抛出段错误,zookeeper_close处报错

coredump信息如下:

GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...Reading symbols from /usr/bin/php...(no debugging symbols found)...done.
(no debugging symbols found)...done.
[New LWP 16969]
[New LWP 16970]
[New LWP 16971]
[New LWP 16973]
[New LWP 16974]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `php test.php'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f770adf3bd0 in QConfZK::zk_close (this=0x9167210fb2dae4cf) at /data/build/QConf/manager/src/c/qconf_zk.cc:68
68	    zookeeper_close(zh);
Missing separate debuginfos, use: debuginfo-install php-cli-7.1.28-1.el7.remi.x86_64
(gdb) bt
#0  0x00007f770adf3bd0 in QConfZK::zk_close (this=0x9167210fb2dae4cf) at /data/build/QConf/manager/src/c/qconf_zk.cc:68
#1  0x000055d93f049835 in zend_call_function ()
#2  0x000055d93f0784c4 in zend_call_method ()
#3  0x000055d93f093c14 in zend_objects_destroy_object ()
#4  0x000055d93f0991cc in zend_objects_store_del ()
#5  0x000055d93f0a4f99 in ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER ()
#6  0x000055d93f0a3f1b in execute_ex ()
#7  0x000055d93f0ff7e8 in zend_execute ()
#8  0x000055d93f059ca3 in zend_execute_scripts ()
#9  0x000055d93eff5500 in php_execute_script ()
#10 0x000055d93f101a4c in do_cli ()
#11 0x000055d93ee8609a in main ()
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

1 participant