[SERVER-1613] shell abends on bad UTF8 Created: 11/Aug/10  Updated: 10/Dec/14  Resolved: 02/Jun/14

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

Type: Bug Priority: Minor - P4
Reporter: Dwight Merriman Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-5842 Exceptions thrown in scripting/engine... Closed
Operating System: ALL
Participants:

 Description   

terminate called after throwing an instance of 'mongo::UserException'
what(): invalid utf8
Tue Aug 10 16:29:14 mongo got signal 6 (Abort trap), stack trace:
Tue Aug 10 16:29:14 0x42b6 0x9070a1fb 0xffffffff 0x9079762d 0x907ad6e4 0x94532fda 0x9453117a 0x945311ba 0x945312b8 0xd485f 0xd4f04 0xc9312 0x17e0b7 0x17dd44 0x170f07 0x171278 0x155ece 0x1521a9 0x11353d 0x113494
0 mongo 0x000042b6 _Z12quitAbruptlyi + 374
1 libSystem.B.dylib 0x9070a1fb _sigtramp + 43
2 ??? 0xffffffff 0x0 + 4294967295
3 libSystem.B.dylib 0x9079762d raise + 26
4 libSystem.B.dylib 0x907ad6e4 abort + 93
5 libstdc++.6.dylib 0x94532fda ZN9gnu_cxx27_verbose_terminate_handlerEv + 433
6 libstdc++.6.dylib 0x9453117a ZN10cxxabiv111_terminateEPFvvE + 10
7 libstdc++.6.dylib 0x945311ba ZN10cxxabiv112_unexpectedEPFvvE + 0
8 libstdc++.6.dylib 0x945312b8 ZL23_gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception + 0
9 mongo 0x000d485f _ZN5mongo9Convertor5tovalEPKc + 687
10 mongo 0x000d4f04 _ZN5mongo9Convertor5tovalERKNS_11BSONElementE + 1060
11 mongo 0x000c9312 ZN5mongo16resolveBSONFieldEP9JSContextP8JSObjectljPS3 + 690
12 mongo 0x0017e0b7 js_LookupPropertyWithFlags + 881
13 mongo 0x0017dd44 js_LookupProperty + 53
14 mongo 0x00170f07 CallEnumeratorNext + 880
15 mongo 0x00171278 js_CallIteratorNext + 249
16 mongo 0x00155ece js_Interpret + 11620
17 mongo 0x001521a9 js_Execute + 774
18 mongo 0x0011353d JS_EvaluateUCScriptForPrincipals + 167
19 mongo 0x00113494 JS_EvaluateUCScript + 67



 Comments   
Comment by Benety Goh [ 02/Jun/14 ]

tried unsuccessfully to reproduce under 1.2.5 and 1.4.5 with script that saves and retrieves document containing invalid 4-character utf-8 sequence in field value.

Comment by Eliot Horowitz (Inactive) [ 11/Aug/10 ]

No - happens all the time in mongod, just gets caught and reported.

Comment by Dwight Merriman [ 11/Aug/10 ]

would this cause mongod to abend? if so raise to major severity. please check.

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