datanoise / mongo.cr

Crystal binding for MongoDB C Driver
MIT License
97 stars 35 forks source link

update to support crystal 0.25.1 #42

Closed sam0x17 closed 5 years ago

sam0x17 commented 6 years ago

This is a WIP for crystal 0.25.1 support. I have successfully made the minor syntax changes that need to happen, however I am getting some double free memory errors during the bulk insertion spec when I run crystal spec. I have attempted to debug a bit with GDB however I have been unable to find what line is causing the double free as it is likely happening in the mongoc driver. Any assistance would be greatly appreciated.

Starting program: /usr/bin/crystal spec
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffef015700 (LWP 23016)]
[New Thread 0x7fffee814700 (LWP 23017)]
[New Thread 0x7fffee013700 (LWP 23018)]
....................................................EEEEEEEEEEEEEEEEEE.EE..

Failures:

  1) Mongo::BulkOperation should be able to bulk insert documents

free(): invalid pointer
Program received and didn't handle signal IOT (6)
[Thread 0x7fffee013700 (LWP 23018) exited]
[Thread 0x7fffef015700 (LWP 23016) exited]
[Thread 0x7ffff7fb9780 (LWP 23015) exited]
[Inferior 1 (process 23015) exited with code 01]
codenoid commented 6 years ago

hi @sam0x17 , can you upgrade the mongo-c api

codenoid commented 6 years ago

@datanoise last active is 31 june :(