[SERVER-3737] v8 BinData corruption Created: 31/Aug/11 Updated: 11/Jul/16 Resolved: 26/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 1.8.0-rc0, 1.8.0-rc1, 1.8.0-rc2, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.9.0, 1.9.1, 1.9.2, 2.0.0-rc0 |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jason Volk | Assignee: | Antoine Girbal |
| Resolution: | Done | Votes: | 1 |
| Labels: | insert | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux cdc 3.0.0-cdc-07647-g250f8e3 #13 SMP Sun Jul 31 12:35:55 EDT 2011 x86_64 GNU/Linux |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Trying to insert the sha1 hash of 7800000000000000000000000000000000000000 mongos> foo = new BinData(0,"eAAAAAAAAAAAAAAAAAAAAAAAAAA=")
mongos> foo = new BinData(0,"gAAAAAAAAAAAAAAAAAAAAAAAAAA=")
|
| Comments |
| Comment by Antoine Girbal [ 26/Sep/11 ] |
|
this was resolved with |
| Comment by Antoine Girbal [ 14/Sep/11 ] |
|
I cannot reproduce with a 2.0 build, this was most likely fixed when I took care of BinData's new methods. ) |
| Comment by Jason Volk [ 10/Sep/11 ] |
|
Eliot: Recompiled without --usev8 (I'm guessing that's spidermonkey by default) (and also at BUMP 2.0.0-rc2 c395a51 for reference) and all behavior is normal. Bug doesn't show up. |
| Comment by Eliot Horowitz (Inactive) [ 10/Sep/11 ] |
|
v8 isn't fully supported or working yet - so that might be the issue. |
| Comment by Jason Volk [ 10/Sep/11 ] |
|
If this is related to javascript, I should add that I'm using v8 (2011-08-22: Version 3.5.7 | svn r8981) galam yum: Are you using v8 or spidermonkey? |
| Comment by galam yum [ 09/Sep/11 ] |
|
Hi I ran the insert test...it worked fine on my machine os: win7 x64 mongodb version 1.8.3 |
| Comment by Jason Volk [ 05/Sep/11 ] |
|
Some more info: Also this corruption:
|
| Comment by Jason Volk [ 05/Sep/11 ] |
|
Trying to insert the sha1 hash of 7800000000000000000000000000000000000000
All good so far. Now trying to insert the sha1 hash of 8000000000000000000000000000000000000000
Insertion has corrupted data. This is additionally present directly in the C++ driver
Where hash0 is <80... and hash1 is >=80... |
| Comment by Jason Volk [ 01/Sep/11 ] |
|
I apologize for the formatting. If there is a way to edit the original issue I can do so for the record. |