diff --git a/libs/ardour/session_events.cc b/libs/ardour/session_events.cc index df47cd5baf..f3f0ead3ae 100644 --- a/libs/ardour/session_events.cc +++ b/libs/ardour/session_events.cc @@ -62,6 +62,11 @@ SessionEvent::operator new (size_t) CrossThreadPool* p = pool->per_thread_pool (); SessionEvent* ev = static_cast (p->alloc ()); DEBUG_TRACE (DEBUG::SessionEvents, string_compose ("%1 Allocating SessionEvent from %2 ev @ %3\n", pthread_self(), p->name(), ev)); +#ifdef NDEBUG + if (DEBUG::SessionEvents & PBD::debug_bits) { + stacktrace (cerr, 20); + } +#endif ev->own_pool = p; return ev; }