[SERVER-13624] mongorestore causes mongod crashing Created: 17/Apr/14 Updated: 10/Dec/14 Resolved: 02/May/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 2.4.8 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kang Jiang | Assignee: | Matt Kangas |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | crash | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Snow Leopard 10.6.8 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Operating System: | OS X | ||||||||
| Participants: | |||||||||
| Description |
|
Mongod crashed when mongorestoring fs.chunk collection, all the other collections restored successfully. mongod log:
There's a similar report at mongo_user group |
| Comments |
| Comment by Matt Kangas [ 02/May/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jiang, sorry for the confusion. When I asked for SHA1 I meant "git object name", not SHA1 of the tarball. I just realized that, since you're using v2.4.8, the problem is definitely The correct workaround on v2.4 is as we discussed above.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kang Jiang [ 30/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Matt I think this sha1 is the checksum of the source package archive. Because homebrew doesn't download the source from your git repo. It downloads from your official site. The mongodb formula:
There is no dependency on gperftools in the mongodb formula and I checked that I haven't installed gperftools using homebrew on my machine. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matt Kangas [ 29/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
59fa237e102c9760271df9433ee7357dd0ec831f is not a valid commit id in the mongodb/mongo repository. Please check if the Homebrew formula is using Homebrew's version of gperftools, rather than our patched version in src/third_party. If so, this would explain the issue you're seeing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kang Jiang [ 29/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Matt OK. This issue happens when I (a) build from source and (b) happens in both debug and release version. I first built it using homebrew. I check the sha1 in formula, it's '59fa237e102c9760271df9433ee7357dd0ec831f'. Now I try to build with the command "scons all --allocator=system", and it's OK. The problem is gone. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matt Kangas [ 28/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jiang, you mentioned this before but I'd like to confirm: you only see this issue (a) when you build v2.4.8 yourself and (b) it is a debug build? Which SHA1 are you building against? (Tag r2.4.8 is a350fc38922fbda2cec8d5dd842237b904eafc14) To help isolate this further, can you try the following and see if you can still reproduce the failure?
Currently the oldest OS X system I have available to test against is the following, which is Mac OS X 10.6.8 but a newer Xcode. Notably the compiler is Clang, not GCC.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kang Jiang [ 26/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi, Matt Yes. I'm using OS X Snow Leopard 10.6.8. "g++ --version" yields
"xcodebuild -version" yields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matt Kangas [ 26/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ah, I see you specified the OS X version: Snow Leopard 10.6.8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matt Kangas [ 26/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Jiang, Can you provide the full and exact "scons" invocation that you used to build mongod? Also:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kang Jiang [ 21/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I built a debug version of mongod 2.4.8. And when I tried to run mongorestore, the mongod crashed with the following calling stack:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Kang Jiang [ 19/Apr/14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I downloaded the pre-built binary version(2.6.0) from official site and mongorestore works pretty fine. Is there anything wrong in my building environment? This bug happens in both 2.4.8 and 2.6.0 if built from source. |