Segmentation fault on connection (php sdk )
Hi everyone,
Im having hard time with the php sdk (php-ext-couchbase-1.1.0-dp5-ubuntu1110-x86_64) wich generate a segfault error each time I try to connect to a couchbase server.
I tried to connect to 1.8 and 2.0, same result.
Here is the libraries I have on the server:
ii libcouchbase-dev 2.0.1-387 library for the Couchbase protocol, development files ii libcouchbase2 2.0.1-387 library for the Couchbase protocol ii libcouchbase2-backend 2.0.1-387 library for the Couchbase protocol ii libcouchbase2-core 2.0.1-387 library for the Couchbase protocol, core files ii libcouchbase2-libevent 2.0.1-387 library for the Couchbase protocol (libevent backend)
I tried on debian6 and fresh ubuntu 12.04 (I tried 1004 and 1110 versions of the php extentions) and result when I execute from CLI is always:
Segmentation fault (core dumped)
Of course any other php code works fine.
My php code is the same as in the readme file:
<?php
$cb = new Couchbase("couch.myserver.com:8091", "user", "pass", "default");
$cb->set("a", 1);
var_dump($cb->get("a"));
?> Anybody have an idea of what I am missing ?
Thank you very much !
Check back in a few minutes, or about now... the updated release is out there now.
If you can, please install libcouchbase through a repository.
Hi, can you please try with the 1.1.0 release? http://www.couchbase.com/develop/php/current
Thanks,
Michael
Hi guys,
Thanks for you reply, I tried the latest version and now the sample code works :)
Now lets see if my code is running fine.
I am still encountering this segmentation error, Even after the update, is there any method to solve this?
Could you describe your system? OS, php version, libcouchbase version and php couchbase version?
My setup is:
Ubuntu server 11.10 64-bit version
Php version 5.3.6
Couchbase Server version 2.0
libcouchbase version 2
php-ext-couchbase-1.1.2-ubuntu1110-x86_64.tar
I tried updating my libcouchbase and found it was up to date. Still having problems with segmentation and I think it has something to do with my libcouchbase. Is there a way to remove/purge the libcouchbase and reinstall it?
Can you please do a "cbc version" to show us wich lcb you are using?
Hi,
I have already resolved the problem, I was using a developer preview for my couchbase extension which was 1.1.1-dp5. I replaced it with a 1.1.2 version and now I am running a test just to make sure.
Thanks
Okay good, definitely let us know if you need further help!
If that can help here is what shows on my syslog
Dec 11 20:07:55 kernel: [17361055.974575] php5[4777]: segfault at 1c06000 ip 00007f46a9ff84ca sp 00007fff48631078 error 4 in libcouchbase.so.2.0.1[7f46a9fe2000+1d000]