core: Print C stack trace on warnings.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>