[
https://issues.apache.org/jira/browse/MESOS-817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825621#comment-13825621
]
Jie Yu commented on MESOS-817:
------------------------------
{noformat}
(gdb) bt
#0 0x00007fb9d7d90265 in raise () from /lib64/libc.so.6
#1 0x00007fb9d7d91d10 in abort () from /lib64/libc.so.6
#2 0x00007fb9bb90a579 in google::logging_fail () at src/logging.cc:1444
#3 0x00007fb9bb90a49d in google::LogMessage::Fail () at src/logging.cc:1458
#4 0x00007fb9bb90e487 in google::LogMessage::SendToLog (this=0x7fb9b6d8de30)
at src/logging.cc:1412
#5 0x00007fb9bb90cd84 in google::LogMessage::Flush (this=0x7fb9b6d8de30) at
src/logging.cc:1281
#6 0x00007fb9bb90cfb6 in google::LogMessageFatal::~LogMessageFatal
(this=0x481e, __in_chrg=<value optimized out>) at src/logging.cc:1984
#7 0x00007fb9bb5de7ee in process::Future<WatcherProcess*>::get
(this=0x7fb9b6d8deb0) at
../../3rdparty/libprocess/include/process/future.hpp:661
#8 0x00007fb9bb5ce8c4 in Watcher::Watcher (this=0x2a18d90) at
../../src/zookeeper/zookeeper.cpp:149
#9 0x00007fb9bb6140c2 in
ProcessWatcher<zookeeper::GroupProcess>::ProcessWatcher (this=0x2a18d90,
_pid=...) at ../../src/zookeeper/watcher.hpp:20
#10 0x00007fb9bb5ea1d5 in zookeeper::GroupProcess::initialize
(this=0x7fb9bcafb200) at ../../src/zookeeper/group.cpp:216
#11 0x00007fb9bb7d3134 in process::ProcessManager::resume (this=0x7fb9bcaf8a60,
process=0x7fb9bcafb420) at ../../../3rdparty/libprocess/src/process.cpp:2508
#12 0x00007fb9bb7d3c64 in process::schedule (arg=0x0) at
../../../3rdparty/libprocess/src/process.cpp:1283
#13 0x00007fb9d84d083d in start_thread () from /lib64/libpthread.so.0
#14 0x00007fb9d7e34f8d in clone () from /lib64/libc.so.6
{noformat}
> CHECK is Future.get() can fail.
> -------------------------------
>
> Key: MESOS-817
> URL: https://issues.apache.org/jira/browse/MESOS-817
> Project: Mesos
> Issue Type: Bug
> Environment: Linux gcc 4.2.1
> Reporter: Jie Yu
>
> template <typename T>
> T Future<T>::get() const
> {
> if (!isReady()) {
> await();
> }
> CHECK(!isPending()) << "Future was in PENDING after await()";
> if (!isReady()) {
> if (isFailed()) {
> std::cerr << "Future::get() but state == FAILED: "
> << failure() << std::endl;
> } else if (isDiscarded()) {
> std::cerr << "Future::get() but state == DISCARDED" << std::endl;
> }
> abort();
> }
> assert(data->t != NULL);
> return *data->t;
> }
> This CHECK can fail:
> CHECK(!isPending()) << "Future was in PENDING after await()";
--
This message was sent by Atlassian JIRA
(v6.1#6144)