mongo-php-driver: Segfault on 1.1.2 whenever running PHP

On Ubuntu 15.10 x64:

% sudo php5-fpm -t || echo "Exit status: $?"
[27-Jan-2016 01:35:47] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful

Exit status: 139

Here’s an excerpt from catchsegv:

Backtrace:
php5-fpm[0x6dee88]
/usr/lib/x86_64-linux-gnu/sasl2/libdigestmd5.so(+0x391b)[0x7f29ffd7491b]
/usr/lib/x86_64-linux-gnu/libsasl2.so.2(+0x6cc9)[0x7f2a07ba5cc9]
/usr/lib/x86_64-linux-gnu/libsasl2.so.2(sasl_client_done+0x2a)[0x7f2a07ba5e0a]
/usr/lib/php5/20131226/mongodb.so(+0x6122e)[0x7f2a003eb22e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xe36b)[0x7f2a0d3c036b]
/lib64/ld-linux-x86-64.so.2(+0x10bb7)[0x7f2a0fb96bb7]
/lib/x86_64-linux-gnu/libc.so.6(+0x39d32)[0x7f2a0d609d32]
/lib/x86_64-linux-gnu/libc.so.6(+0x39d85)[0x7f2a0d609d85]
php5-fpm(fpm_init+0x182)[0x7b9912]
php5-fpm(main+0x776)[0x465366]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f2a0d5f0a40]
php5-fpm(_start+0x29)[0x466539]

If I remove package libsasl2-dev before compiling, it works fine.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 53 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@EugenMayer i went the same path. got rid of mongodb after having it for 1year in production after my QA mongodb lost the database (didnt wanted to waste time researching how that even happened).

The main issue, is that there is no managed MongoDB-as-A-Service patform… mms.mongodb.com configured with replica is what i used just for having backup… but it really seemed complicated and too much overhead for just simple storage.

Now sleeping safe with AWS RDS 5.7 mysql json columns… the migration was easy and painless… just take all data from mongodb and insert into json column in mysql, extracting mongoId as primary varbinary(12) key 🎯

but ofc. depends on your workloads

mysql 5.7 + innodb_flush_log_at_trx_commit=2 + sync_binlog=0 works for me

https://dev.mysql.com/doc/refman/5.7/en/document-store.html MySQL 5.7.12+ aims to be DocumentStore too. The expanded capabilities of the X Protocol enable us to provide the new X DevAPI in our MySQL Connectors and Client applications, like the new MySQL Shell. The goal of the X DevAPI is to support a new schema object type called document collections as well as relational and combined document store/relational capabilities

sorry for bit of offtopic.