Android crash in libwebrtc.jar, built with --debug

Hi,
While attempting to investigate android latency issues, I built libwebrtc.jar with the --debug flag, using build-webrtc.py. As soon as I connect an audio call, I get the following crash:
D/com.oney.WebRTCModule.WebRTCModule: onAddTrack E/rtc: #
# Fatal error in: …/…/rtc_base/thread.cc, line 924
# last system error: 0
# Check failed: this->IsInvokeToThreadAllowed(this)
#
Has anybody seen this before?
Thanks,
Maciej