[SERVER-20555] branch on uninitialized value Created: 22/Sep/15  Updated: 14/Apr/16  Resolved: 22/Sep/15

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

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Run mongod, happens at startup if replication is on.

Participants:

 Description   

==21116== Thread 12:
==21116== Conditional jump or move depends on uninitialised value(s)
==21116== at 0xE838CE: mongo::repl::ReplicationCoordinatorImpl::_finishLoadLocalConfig(mongo::executor::TaskExecutor::CallbackArgs const&, mongo::repl::ReplicaSetConfig const&, mongo::StatusWith<mongo::repl::OpTime> const&, mongo::StatusWith<mongo::repl::LastVote> const&) (replication_coordinator_impl.cpp:351)
==21116== by 0xEBACD0: operator() (functional:2271)
==21116== by 0xEBACD0: mongo::repl::(anonymous namespace)::callNoExcept(std::function<void ()> const&) (replication_executor.cpp:568)
==21116== by 0xEB4780: operator() (functional:2271)
==21116== by 0xEB4780: mongo::repl::ReplicationExecutor::run() (replication_executor.cpp:112)
==21116== by 0x560235F: execute_native_thread_routine (thread.cc:84)
==21116== by 0x5AE9554: start_thread (pthread_create.c:333)
==21116== by 0x5E00B9C: clone (clone.S:109)
==21116==
==21116==



 Comments   
Comment by Matt Dannenberg [ 22/Sep/15 ]

The true cause of this problem remains obfuscated, as splitting the line into multiple statements or compiling without optimizations seems to eliminate the problem. But we concluded it would not cause true harm: since to trigger it one would need have migrated the full data directory to a new node and at that point the node would crash at start up, which could be fixed by modifying/deleting its locally stored replica set config.

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