{"action":"created","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-client-hhvm/issues/2","labels_url":"https://api.github.com/repos/aerospike/aerospike-client-hhvm/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-client-hhvm/issues/2/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-client-hhvm/issues/2/events","html_url":"https://github.com/aerospike/aerospike-client-hhvm/issues/2","id":92881636,"number":2,"title":"Segmentation fault on connect","user":{"login":"cergfix","id":8148708,"avatar_url":"https://avatars.githubusercontent.com/u/8148708?v=3","gravatar_id":"","url":"https://api.github.com/users/cergfix","html_url":"https://github.com/cergfix","followers_url":"https://api.github.com/users/cergfix/followers","following_url":"https://api.github.com/users/cergfix/following{/other_user}","gists_url":"https://api.github.com/users/cergfix/gists{/gist_id}","starred_url":"https://api.github.com/users/cergfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cergfix/subscriptions","organizations_url":"https://api.github.com/users/cergfix/orgs","repos_url":"https://api.github.com/users/cergfix/repos","events_url":"https://api.github.com/users/cergfix/events{/privacy}","received_events_url":"https://api.github.com/users/cergfix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aerospike/aerospike-client-hhvm/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-03T13:58:11Z","updated_at":"2015-08-06T18:09:31Z","closed_at":null,"body":"Hello,\r\n\r\nThe following crash occurs on connection attempt.\r\n\r\n```\r\n<?php\r\n$config = array(\"hosts\"=>array(array(\"addr\"=>\"127.0.0.1\", \"port\"=>3000)));\r\n$db = new Aerospike($config);\r\n```\r\n\r\n```\r\nProcessID: 21008\r\nThreadID: 7f69dc7ff700\r\nThreadPID: 21012\r\nName: /usr/bin/hhvm\r\nType: Segmentation fault\r\nRuntime: hhvm\r\nVersion: tags/HHVM-3.7.2-0-gfc9f29b2799933d8215faaadfa83de722df64e26\r\nDebuggerCount: 0\r\n```\r\n\r\n```\r\n# 0  strlen at /lib/x86_64-linux-gnu/libc.so.6:0\r\n# 1  __strdup at /lib/x86_64-linux-gnu/libc.so.6:0\r\n# 2  as_cluster_create at /root/aerospike-client-c/src/main/aerospike/as_cluster.c:778\r\n# 3  aerospike_connect at /root/aerospike-client-c/src/main/aerospike/aerospike.c:108\r\n# 4  HPHP::c_Aerospike_ni___construct(HPHP::ObjectData*, HPHP::Array const&, bool, HPHP::Variant const&) at /root/aerospike-client-hhvm/src/aerospike/main/ext_aerospike.cpp:254\r\n# 5  void HPHP::Native::callFunc<false, false>(HPHP::Func const*, void*, HPHP::TypedValue*, HPHP::TypedValue&) at /usr/bin/hhvm:0\r\n# 6  HPHP::TypedValue* HPHP::Native::methodWrapper<false, false>(HPHP::ActRec*) at /usr/bin/hhvm:0\r\n# 7  unsigned char* HPHP::dispatchImpl<false>() at /usr/bin/hhvm:0\r\n# 8  HPHP::enterVM(HPHP::ActRec*, HPHP::StackArgsState, HPHP::Resumable*, HPHP::ObjectData*) at bytecode.cpp:0\r\n# 9  HPHP::ExecutionContext::invokeFunc(HPHP::TypedValue*, HPHP::Func const*, HPHP::Variant const&, HPHP::ObjectData*, HPHP::Class*, HPHP::VarEnv*, HPHP::StringData*, HPHP::ExecutionContext::InvokeFlags) at /usr/bin/hhvm:0\r\n# 10 HPHP::ExecutionContext::invokeUnit(HPHP::TypedValue*, HPHP::Unit const*) at /usr/bin/hhvm:0\r\n# 11 HPHP::invoke_file(HPHP::String const&, bool, char const*) at builtin-functions.cpp:0\r\n# 12 HPHP::include_impl_invoke(HPHP::String const&, bool, char const*) at /usr/bin/hhvm:0\r\n# 13 HPHP::hphp_invoke(HPHP::ExecutionContext*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, HPHP::Array const&, HPHP::VRefParamValue const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool, bool, bool) at /usr/bin/hhvm:0\r\n# 14 HPHP::HttpRequestHandler::executePHPRequest(HPHP::Transport*, HPHP::RequestURI&, HPHP::SourceRootInfo&, bool) at /usr/bin/hhvm:0\r\n# 15 HPHP::HttpRequestHandler::handleRequest(HPHP::Transport*) at /usr/bin/hhvm:0\r\n# 16 HPHP::ServerWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::FastCGITransportTraits>::doJobImpl(std::shared_ptr<HPHP::FastCGIJob>, bool) at /usr/bin/hhvm:0\r\n# 17 HPHP::ServerWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::FastCGITransportTraits>::doJob(std::shared_ptr<HPHP::FastCGIJob>) at /usr/bin/hhvm:0\r\n# 18 HPHP::JobQueueWorker<std::shared_ptr<HPHP::FastCGIJob>, HPHP::Server*, true, false, HPHP::JobQueueDropVMStack>::start() at /usr/bin/hhvm:0\r\n# 19 HPHP::AsyncFuncImpl::ThreadFunc(void*) at /usr/bin/hhvm:0\r\n# 20 HPHP::start_routine_wrapper(void*) at /usr/bin/hhvm:0\r\n# 21 start_thread at /lib/x86_64-linux-gnu/libpthread.so.0:0\r\n# 22 clone at /lib/x86_64-linux-gnu/libc.so.6:0\r\n```\r\n\r\nEnvironment is:\r\nUbuntu 14.04\r\nAerospike cluster version 3.5.14\r\nAerospike client library version 3.1.16\r\nHHVM client version 0.3"},"comment":{"url":"https://api.github.com/repos/aerospike/aerospike-client-hhvm/issues/comments/128462057","html_url":"https://github.com/aerospike/aerospike-client-hhvm/issues/2#issuecomment-128462057","issue_url":"https://api.github.com/repos/aerospike/aerospike-client-hhvm/issues/2","id":128462057,"user":{"login":"rbotzer","id":133497,"avatar_url":"https://avatars.githubusercontent.com/u/133497?v=3","gravatar_id":"","url":"https://api.github.com/users/rbotzer","html_url":"https://github.com/rbotzer","followers_url":"https://api.github.com/users/rbotzer/followers","following_url":"https://api.github.com/users/rbotzer/following{/other_user}","gists_url":"https://api.github.com/users/rbotzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rbotzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbotzer/subscriptions","organizations_url":"https://api.github.com/users/rbotzer/orgs","repos_url":"https://api.github.com/users/rbotzer/repos","events_url":"https://api.github.com/users/rbotzer/events{/privacy}","received_events_url":"https://api.github.com/users/rbotzer/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T18:09:31Z","updated_at":"2015-08-06T18:09:31Z","body":"Yes, while testing 0.5 the fact that the latest is now 3.8.1 broke things. You can go to the [mirror](https://github.com/facebook/hhvm/wiki/Mirror) and download the debian package for 3.7.2, and the tandem dev package.\r\n\r\nFor example:\r\n```\r\nwget -O 'hhvm_3.7.2~trusty_amd64.deb'  http://dl.hhvm.com/ubuntu/pool/main/h/hhvm/hhvm_3.7.2~trusty_amd64.deb\r\nsudo dpkg -i hhvm_3.7.2~trusty_amd64.deb\r\nwget -O 'hhvm-dev_3.7.2~trusty_amd64.deb' http://dl.hhvm.com/ubuntu/pool/main/h/hhvm-dev/hhvm-dev_3.7.2~trusty_amd64.deb\r\nsudo dpkg -i hhvm-dev_3.7.2~trusty_amd64.deb\r\n```"}}