Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Segmentation fault on connection (php sdk )

10 replies [Last post]
  • Login or register to post comments
Tue, 12/11/2012 - 13:19
ttwthomas
Offline
Joined: 12/11/2012
Groups: None

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 !

Top
  • Login or register to post comments
Tue, 12/11/2012 - 13:24
ttwthomas
Offline
Joined: 12/11/2012
Groups: None

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]

Top
  • Login or register to post comments
Tue, 12/11/2012 - 23:06
ingenthr
Offline
Joined: 03/16/2010
Groups:

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.

Top
  • Login or register to post comments
Wed, 12/12/2012 - 02:21
daschl
Offline
Joined: 05/19/2012
Groups: None

Hi, can you please try with the 1.1.0 release? http://www.couchbase.com/develop/php/current

Thanks,
Michael

Top
  • Login or register to post comments
Wed, 12/12/2012 - 09:09
ttwthomas
Offline
Joined: 12/11/2012
Groups: None

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.

Top
  • Login or register to post comments
Wed, 12/26/2012 - 06:06
sonaj
Offline
Joined: 12/15/2012
Groups: None

I am still encountering this segmentation error, Even after the update, is there any method to solve this?

Top
  • Login or register to post comments
Wed, 12/26/2012 - 08:07
trond
trond's picture
Offline
Joined: 03/15/2010
Groups: None

Could you describe your system? OS, php version, libcouchbase version and php couchbase version?

Top
  • Login or register to post comments
Wed, 12/26/2012 - 19:45
sonaj
Offline
Joined: 12/15/2012
Groups: None

trond wrote:
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?

Top
  • Login or register to post comments
Thu, 12/27/2012 - 00:05
daschl
Offline
Joined: 05/19/2012
Groups: None

Can you please do a "cbc version" to show us wich lcb you are using?

Top
  • Login or register to post comments
Thu, 12/27/2012 - 00:06
sonaj
Offline
Joined: 12/15/2012
Groups: None

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

Top
  • Login or register to post comments
Thu, 12/27/2012 - 00:08
daschl
Offline
Joined: 05/19/2012
Groups: None

Okay good, definitely let us know if you need further help!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker