[SERVER-9079] mongo shell crashes - can't handle type: 14 a: "b" Created: 22/Mar/13  Updated: 10/Dec/14  Resolved: 22/Mar/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.4.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Bjoern Kortuemm Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: crash, shell
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux, ubuntu 12.10
server: mongodb-10gen 2.4.0,
shell: 2.4.0

erlang R15B01
driver: mongodb-erlang


Issue Links:
Duplicate
duplicates SERVER-8799 Sort or Find on Symbol data type thro... Closed
Operating System: Linux
Steps To Reproduce:

erlang:
> application:start(bson). application:start(mongodb).
>

{ok, C}

= mongo_connection:start_link(

{localhost, 27017}

).
> mongo:do(safe, master, C, mydb, fun() -> mongo:insert(mycol,

{a,b}

) end).

mongo shell:
> use mydb
> db.mycol.find()

Participants:

 Description   

I've inserted a document

{a,b}

(

{atom(), atom()}

via erlang.
When trying to display that document the shell crashes with the following message.

Fri Mar 22 11:19:57.677 Assertion: 16661:can't handle type: 14 a: "b"
0x747301 0x7106bb 0x710bfc 0x6ee1dc 0x6f3c3b 0x990843 0x990223 0x9ed1e0 0xee3eb406362
mongo(_ZN5mongo15printStackTraceERSo+0x21) [0x747301]
mongo(_ZN5mongo11msgassertedEiPKc+0x9b) [0x7106bb]
mongo() [0x710bfc]
mongo(_ZN5mongo7V8Scope16mongoToV8ElementERKNS_11BSONElementEb+0x48c) [0x6ee1dc]
mongo() [0x6f3c3b]
mongo(_ZN2v88internal8JSObject35GetPropertyAttributeWithInterceptorEPS1_PNS0_6StringEb+0x453) [0x990843]
mongo(_ZN2v88internal10JSReceiver32GetPropertyAttributeWithReceiverEPS1_PNS0_6StringE+0xb3) [0x990223]
mongo(_ZN2v88internal19Runtime_HasPropertyENS0_9ArgumentsEPNS0_7IsolateE+0x70) [0x9ed1e0]
[0xee3eb406362]
Fri Mar 22 11:19:57.684 mongo got signal 11 (Segmentation fault), stack trace:

Fri Mar 22 11:19:57.690 0x747301 0x5dc542 0x7f11cb80e4a0 0x9fe232 0x895046 0x7f371f 0x6f3c58 0x990843 0x990223 0x9ed1e0 0xee3eb406362
mongo(_ZN5mongo15printStackTraceERSo+0x21) [0x747301]
mongo(_Z12quitAbruptlyi+0x382) [0x5dc542]
/lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f11cb80e4a0]
mongo(_ZN2v88internal7Runtime22ForceSetObjectPropertyEPNS0_7IsolateENS0_6HandleINS0_8JSObjectEEENS4_INS0_6ObjectEEES8_18PropertyAttributes+0x302) [0x9fe232]
mongo(_ZN2v88internal16ForceSetPropertyENS0_6HandleINS0_8JSObjectEEENS1_INS0_6ObjectEEES5_18PropertyAttributes+0x66) [0x895046]
mongo(_ZN2v86Object8ForceSetENS_6HandleINS_5ValueEEES3_NS_17PropertyAttributeE+0xef) [0x7f371f]
mongo() [0x6f3c58]
mongo(_ZN2v88internal8JSObject35GetPropertyAttributeWithInterceptorEPS1_PNS0_6StringEb+0x453) [0x990843]
mongo(_ZN2v88internal10JSReceiver32GetPropertyAttributeWithReceiverEPS1_PNS0_6StringE+0xb3) [0x990223]
mongo(_ZN2v88internal19Runtime_HasPropertyENS0_9ArgumentsEPNS0_7IsolateE+0x70) [0x9ed1e0]
[0xee3eb406362]

Note: Both drivers mongodb-erlang and php5-mongo can read the document properly.



 Comments   
Comment by Tad Marshall [ 22/Mar/13 ]

Type 14 is Symbol type, which was not being handled by our V8 interface code. See SERVER-8799.

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