[SERVER-4350] Segmentation fault on replica recovery Created: 22/Nov/11 Updated: 11/Jul/16 Resolved: 23/Nov/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication, Stability |
| Affects Version/s: | 2.0.1, 2.0.2 |
| Fix Version/s: | 2.0.2, 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Catalin Constantin | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | core, dump, replication, sync | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Debian 6.0, 64bit, 8GB of RAM. Installed via the repository. |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Participants: | |||||||||
| Description |
|
After cleaning /var/lib/mongodb and starting the replica server, sync starts. Sync ends in core dump: ue Nov 22 20:37:55 [rsSync] replSet syncing to: monster:27017 Tue Nov 22 20:37:55 [rsSync] build index done 0 records 0.035 secs Tue Nov 22 20:37:55 Got signal: 11 (Segmentation fault). Tue Nov 22 20:37:55 Backtrace: Logstream::get called in uninitialized state |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 23/Nov/11 ] |
|
Thanks - found the segfault. |
| Comment by auto [ 23/Nov/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: fix oplog replay segfault |
| Comment by auto [ 23/Nov/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: fix oplog replay segfault |
| Comment by Catalin Constantin [ 22/Nov/11 ] |
|
Rolling back to 2.0.0 solves the problem. |
| Comment by Catalin Constantin [ 22/Nov/11 ] |
|
Also happens on 2.0.1: Tue Nov 22 18:01:28 [initandlisten] MongoDB starting : pid=2422 port=27017 dbpath=/var/lib/mongodb 64-bit host=zeus |
| Comment by Catalin Constantin [ 22/Nov/11 ] |
|
Tue Nov 22 20:33:23 [initandlisten] MongoDB starting : pid=20956 port=27017 dbpath=/var/lib/mongodb 64-bit host=zeus |
| Comment by Kristina Chodorow (Inactive) [ 22/Nov/11 ] |
|
Can you look at the beginning of the mongodb.log file and paste the version (the first couple of log lines)? |
| Comment by Catalin Constantin [ 22/Nov/11 ] |
|
Data directory was empty. |
| Comment by Eliot Horowitz (Inactive) [ 22/Nov/11 ] |
|
Also - what version was this stack trace with? |
| Comment by Eliot Horowitz (Inactive) [ 22/Nov/11 ] |
|
The data directory was completely empty when this started? |