Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9060383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:12:56+00:00 2026-06-16T15:12:56+00:00

This is not a question but a request to help diagnose and fix a

  • 0

This is not a question but a request to help diagnose and fix a problem.

Using the latest (1.0.2) version of rmongodb the following code crashes the session of R 2.15.2 on Mac OS X. The code works in R 2.15.1 on a different Mac OS X machine.

library(rmongodb)
mongo <- mongo.create('127.0.0.1', db='test')
print(mongo.is.connected(mongo))
mongo.find.one(mongo, 'unknown')

The output is:

> library(rmongodb)
rmongodb package (mongo-r-driver) loaded
Use 'help("mongo")' to get started.

> mongo <- mongo.create('127.0.0.1', db='test')
> print(mongo.is.connected(mongo))
[1] TRUE
> mongo.find.one(mongo, 'unknown')
R(60519) malloc: *** error for object 0x7fff5fbfce10: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

The same type of crash happens if you pass a non-existent command to MongoDB. Again, this used to work under R 2.15.1.

> library(rmongodb)
> mongo <- mongo.create('127.0.0.1', db='test')
> mongo.command(mongo, 'test', list(isMaster=1))
    ismaster : 8     true
    maxBsonObjectSize : 16   16777216
    ok : 1   1.000000
> mongo.command(mongo, 'test', list(fake=1))
R(66743) malloc: *** error for object 0x7fff5fbfde20: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

I have created an issue in the rmongodb project and would appreciate any help scoping & validating the problem to enable the package developer to hone in on what needs fixing or, perhaps, prove that it is not an rmongodb issue but some strange interaction in my environment.

I will accept an answer from someone who runs the code either on 2.15.1 and 2.15.2 on Mac OS X or on 2.15.2 on Mac OS X and at least one other environment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:12:58+00:00Added an answer on June 16, 2026 at 3:12 pm

    According to the package author this issue is fixed on GitHub but CRAN hasn’t been updated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This not a programming question but Most of the programmers using Eclipse should have
This is not really a question about addressing a specific problem but more a
This is not a programming question but I hope Microsoft programmer can see this
This is not a specific question but a generic question which was in my
NOTE: sorry as this is not a programming question but i am not aware
This is not really a programming question but please bear with me as I
I thought I would post this here not so much as a question but
This is not a question about jQuery, but about how jQuery implements such a
I really hope this is not a question posed by millions of newbies, but
I read this question but the answer does not perform a refactoring of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.