From 455622da659fd35d03cd97ccc817546363301f4e Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 17 Jul 2018 00:38:06 +0300 Subject: [PATCH] Add debug of strange crash. GitOrigin-RevId: 401595954e851fe315253aa9221eaaea50783245 --- tdactor/td/actor/impl/Actor.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tdactor/td/actor/impl/Actor.h b/tdactor/td/actor/impl/Actor.h index 0b52f0fbe..7bd82ab86 100644 --- a/tdactor/td/actor/impl/Actor.h +++ b/tdactor/td/actor/impl/Actor.h @@ -115,7 +115,8 @@ inline ActorId<> Actor::actor_id() { } template ActorId Actor::actor_id(SelfT *self) { - CHECK(static_cast(self) == this); + CHECK(static_cast(self) == this) + << self << " " << static_cast(self) << " " << this << " " << empty(); return ActorId(info_.get_weak()); } @@ -124,7 +125,8 @@ inline ActorShared<> Actor::actor_shared() { } template ActorShared Actor::actor_shared(SelfT *self, uint64 id) { - CHECK(static_cast(self) == this); + CHECK(static_cast(self) == this) + << self << " " << static_cast(self) << " " << this << " " << empty(); return ActorShared(actor_id(self), id); }