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

Segmentation fault when connect with watch_cb #39

Open
koogix opened this issue Nov 27, 2019 · 1 comment
Open

Segmentation fault when connect with watch_cb #39

koogix opened this issue Nov 27, 2019 · 1 comment

Comments

@koogix
Copy link

koogix commented Nov 27, 2019

$client = new Zookeeper(); $client->connect('192.168.40.65:32181', function($type, $stat, $path) { // });

`
2019-11-27 12:01:28,361:15938(0x7f4d341209c0):ZOO_INFO@log_env@1098: Client environment:zookeeper.version=zookeeper C client 3.5.6
2019-11-27 12:01:28,361:15938(0x7f4d341209c0):ZOO_INFO@log_env@1102: Client environment:host.name=liwenqiang-local-dev
2019-11-27 12:01:28,361:15938(0x7f4d341209c0):ZOO_INFO@log_env@1109: Client environment:os.name=Linux
2019-11-27 12:01:28,361:15938(0x7f4d341209c0):ZOO_INFO@log_env@1110: Client environment:os.arch=3.10.0-1062.4.3.el7.x86_64
2019-11-27 12:01:28,361:15938(0x7f4d341209c0):ZOO_INFO@log_env@1111: Client environment:os.version=#1 SMP Wed Nov 13 23:58:53 UTC 2019
2019-11-27 12:01:28,363:15938(0x7f4d341209c0):ZOO_INFO@log_env@1119: Client environment:user.name=root
2019-11-27 12:01:28,363:15938(0x7f4d341209c0):ZOO_INFO@log_env@1127: Client environment:user.home=/root
2019-11-27 12:01:28,363:15938(0x7f4d341209c0):ZOO_INFO@log_env@1139: Client environment:user.dir=/workspace/WangYuanServiceCoroutineSDK/src
2019-11-27 12:01:28,363:15938(0x7f4d341209c0):ZOO_INFO@zookeeper_init_internal@1182: Initiating client connection, host=192.168.40.65:32181 sessionTimeout=10000 watcher=0x7f4d25123d10 sessionId=0 sessionPasswd= context=(nil) flags=0
2019-11-27 12:01:28,363:15938(0x7f4d341209c0):ZOO_DEBUG@start_threads@221: starting threads...
2019-11-27 12:01:28,364:15938(0x7f4d22e44700):ZOO_DEBUG@do_completion@471: started completion thread
2019-11-27 12:01:28,364:15938(0x7f4d341209c0):ZOO_DEBUG@zoo_awexists@3821: Sending request xid=0x5dddf519 for path [/php-co/phpco.service] to :0
2019-11-27 12:01:28,364:15938(0x7f4d23645700):ZOO_DEBUG@do_io@368: started IO thread
2019-11-27 12:01:28,364:15938(0x7f4d23645700):ZOO_DEBUG@get_next_server_in_reconfig@1328: [OLD] count=0 capacity=0 next=0 hasnext=0
2019-11-27 12:01:28,364:15938(0x7f4d23645700):ZOO_DEBUG@get_next_server_in_reconfig@1331: [NEW] count=1 capacity=16 next=0 hasnext=1
2019-11-27 12:01:28,364:15938(0x7f4d23645700):ZOO_DEBUG@get_next_server_in_reconfig@1340: Using next from NEW=192.168.40.65:32181
2019-11-27 12:01:28,364:15938(0x7f4d23645700):ZOO_DEBUG@zookeeper_connect@2228: [zk] connect()

2019-11-27 12:01:28,365:15938(0x7f4d23645700):ZOO_INFO@check_events@2469: initiated connection to server [192.168.40.65:32181]
2019-11-27 12:01:28,366:15938(0x7f4d23645700):ZOO_INFO@check_events@2521: session establishment complete on server [192.168.40.65:32181], sessionId=0x100189821610260, negotiated timeout=10000
2019-11-27 12:01:28,366:15938(0x7f4d23645700):ZOO_DEBUG@check_events@2527: Calling a watcher for a ZOO_SESSION_EVENT and the state=ZOO_CONNECTED_STATE
2019-11-27 12:01:28,366:15938(0x7f4d22e44700):ZOO_DEBUG@process_completions@2807: Calling a watcher for node [], type = -1 event=ZOO_SESSION_EVENT
Segmentation fault
`

====================
PHP 7.3.11 (cli) (built: Oct 29 2019 19:31:51) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies

767:zookeeper
768-
769:zookeeper support => enabled
770-version => 0.6.4
771:libzookeeper version => 3.5.6
772-
773-Directive => Local Value => Master Value
774:zookeeper.recv_timeout => 10000 => 10000
775:zookeeper.sess_lock_wait => 150000 => 150000
776:zookeeper.session_lock => 1 => 1

@Timandes
Copy link
Member

Timandes commented Dec 2, 2019

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