[SERVER-136] Segfault on specific query/operation Created: 08/Jul/09  Updated: 12/Jul/16  Resolved: 08/Jul/09

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 0.9.5
Fix Version/s: 0.9.6

Type: Bug Priority: Major - P3
Reporter: sandstrom Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.5


Participants:

 Description   

Mon Jul 6 16:05:58 db version v0.9.5, pdfile version 4.4
Mon Jul 6 16:05:58 git version: d4570964455bbd57c52f753fbe6a0a0828022991
Mon Jul 6 16:05:58 sys info: Darwin ERH-OFC-MP.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

url: test
connecting to: test
type "help" for help
> use dev1
switched to db dev1
> db.summaries.find({comments:{$ne: 1}});{"_id" : "0808a342-1317-4340-8e95-aee1ac2d7a21" , "oldId" : "771" , "createdAt" : "Ti34342tem34p" , "updatedAt" : , "user" :

{"$id" : "6a5f902f-865e-4f61-934a-8785577e619b" , "$ref" : "users"}

, "file" :

{"$id" : "20edb114-579d-4a64-c175-4c8c788b788a" , "$ref" : "fs.files"}

, "language" : "sv" , "title" : "Lönsamhet, finansiering och tillväxt" , "description" : "" , "manuallyAdded" : "1" , "downloads" : "16" , "comments" : [

{"_id" : "5b2ccc11-1815-4da6-ebb3-b39f98474b0f" , "oldId" : , "createdAt" : "Ti04353tem04p" , "updatedAt" : , "user" : , "text" : "testar"}

]}
> var a = db.summaries.find({comments:{$ne: 1}});
> a.comments = [];
[]
> db.summaries.save(a);
Segmentation fault



 Comments   
Comment by Eliot Horowitz (Inactive) [ 10/Jul/09 ]

closed since 0.9.6 went out

Comment by Eliot Horowitz (Inactive) [ 08/Jul/09 ]

The root problem here is that you're trying to save a cursor object, rather than a regular object.

The segfault was fixed in 0.9.6 though, so you may want to upgrade to that.

Generated at Thu Feb 08 02:53:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.