Orange-OpenSource / YACassandraPDO

Cassandra PDO Driver fork
Apache License 2.0
85 stars 32 forks source link

error when creating a new pdo object #74

Open CAbdel opened 9 years ago

CAbdel commented 9 years ago

Hello everyone,

I am new in cassandra world. I compiled the pdo and installed it. phpinfo() show it in pdos.

But when I tried to create a pdo connexion to me cassandra, I got this error :
* Error in `/usr/sbin/apache2': malloc(): memory corruption: 0x00007f5a85ab2c10 *

Thanks for your help, Abdel

kiwimartin commented 9 years ago

Hi! I believe that I have the same problem. When i try to create a PDO i get the following error:

*** Error in `/usr/sbin/apache2': malloc(): memory corruption: 0x00007fdf5214a720 ***
*** Error in `/usr/sbin/apache2': malloc(): memory corruption: 0x00007fdf5214a380 ***
*** Error in `/usr/sbin/apache2': malloc(): memory corruption: 0x00007fdf5214a380 ***
[Thu Nov 27 15:12:13.518106 2014] [core:notice] [pid 1522] AH00051: child pid 1529 exit signal Aborted (6), possible coredump in /etc/apache2
[Thu Nov 27 15:12:13.520760 2014] [core:notice] [pid 1522] AH00051: child pid 1530 exit signal Aborted (6), possible coredump in /etc/apache2
[Thu Nov 27 15:12:13.520789 2014] [core:notice] [pid 1522] AH00051: child pid 1532 exit signal Aborted (6), possible coredump in /etc/apache2
$ php -v
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

Thanks in advance Martin

shahabalem commented 9 years ago

hello I have same problem * Error in `php': malloc(): memory corruption: 0x0000000001ce1f50 * Aborted (core dumped)

sigilo commented 9 years ago

Any news on this? i'm getting the same: * Error in `/usr/sbin/apache2': malloc(): memory corruption: 0x00007f8d4b842080 * [Thu Mar 19 13:14:08.109620 2015] [core:notice] [pid 27368] AH00051: child pid 27834 exit signal Aborted (6), possible coredump in /etc/apache2

shahabalem commented 9 years ago

I search a lot about but this , just find YACassandraPDO compatible with cassandra version 2.0, if you install cassandra 2.0 you don't have any problem

sigilo commented 9 years ago

I'm running YACassandraPDO 0.6.0 and Cassandra 2.1.3, those are the latest as far as i'm concerned but i still get the same error. On php i get a "connection was reset" as soon as i try to connect like this: $db=new PDO('cassandra:host=127.0.0.1;port=9160'); As suggested here. I just can't get it to work, can you please post the versions of both YACassandraPDO and Cassandra you are running? Also, are you suggesting i downgrade Cassandra from 2.X.X to 2.0?

sandro-lex commented 9 years ago

The driver was tested and validated with Cassandra 2.0.x and Cassandra 1.2.x only. Also, we used php 5.3.x only.

So yes, it is possible that it dont work with different versions. Sorry, we dont have much time to work on all combinations of versions. If someone have time to look at it, and propose a patch, it is very welcome.

For the Cassandra 2.1.x issue, DataStax said that they will soon release a php native protocol driver. The cpp version was released a couple of weeks ago, so I am hoping that the PHP is on the way. I dont think it is worth working on another thrift version of the driver if DataStax is going to have a fully supported native driver.

sigilo commented 9 years ago

Thanks for the replies, i'll try different combinations of versions and see what happens

PrafullaKumarSahu commented 8 years ago

@sigilo Any update ?