[Telepathy] tp_cli_channel_type_text_call_send() not actually sending
Murray Cumming
murrayc at murrayc.com
Mon Jan 19 05:12:31 PST 2009
On Mon, 2009-01-19 at 11:53 +0000, Jonny Lamb wrote:
> On Mon, Jan 19, 11:49:41 +0100, Murray Cumming wrote:
> > > with GABBLE_DEBUG=all LM_DEBUG=net.
> > Thanks for the tip. I also need to set GABBLE_LOGFILE, right, so I
> > actually see some log output somewhere? That's what I guess from
> > reading
> > http://telepathy.freedesktop.org/wiki/Debugging
>
> You only need to set GABBLE_LOGFILE if you want to save the log to a
> file, otherwise it's output to stderr. This is documented in
> telepathy-gabble(8).
>
> > But even setting all three of these environment variables, no logfile is
> > created. Am I missing a step?
>
> Try:
>
> GABBLE_DEBUG=all LM_DEBUG=net GABBLE_PERSIST=1 /usr/lib/telepathy/telepathy-gabble
>
> If you want to use a logfile, try:
>
> GABBLE_LOGFILE=gabble.log GABBLE_DEBUG=all LM_DEBUG=new GABBLE_PERSIST=1 \
> /usr/lib/telepathy/telepathy-gabble
Sorry. I was starting my example, not telepathy-gabble. That should have
been obvious to me.
It seems to fail in loudmouth. It stops with a message about a
trace/breakpoint and this is what I see when I run it in gdb:
[Switching to Thread 0xb78b96d0 (LWP 15334)]
0xb7de2df4 in IA__g_logv (log_domain=0x0,
log_level=G_LOG_LEVEL_CRITICAL, format=0xb7e451d9 "%s: assertion `%s'
failed",
args1=0xbfbba92c "\204\035��\235\035���O��x���mA��") at
gmessages.c:493
493 G_BREAKPOINT ();
(gdb) bt
#0 0xb7de2df4 in IA__g_logv (log_domain=0x0,
log_level=G_LOG_LEVEL_CRITICAL, format=0xb7e451d9 "%s: assertion `%s'
failed",
args1=0xbfbba92c "\204\035��\235\035���O��x���mA��") at
gmessages.c:493
#1 0xb7de2ef0 in IA__g_log (log_domain=0x0,
log_level=G_LOG_LEVEL_CRITICAL, format=0xb7e451d9 "%s: assertion `%s'
failed") at gmessages.c:517
#2 0xb7de2f4c in IA__g_return_if_fail_warning (log_domain=0x0,
pretty_function=0xb7ef1d84 "lm_resolver_new_for_host",
expression=0xb7ef1d9d "host != NULL") at gmessages.c:532
#3 0xb7ee416d in lm_resolver_new_for_host (host=0x0,
callback=0xb7eeacef <old_socket_resolver_host_cb>, user_data=0x98cced0)
at lm-resolver.c:309
#4 0xb7eeaef5 in old_socket_resolver_srv_cb (resolver=0x98c9458,
result=LM_RESOLVER_RESULT_OK, user_data=0x98cced0) at
lm-old-socket.c:815
#5 0xb7ee47a9 in _lm_resolver_set_result (resolver=0x98c9458,
result=LM_RESOLVER_RESULT_OK, results=0x0) at lm-resolver.c:436
#6 0xb7ee5b09 in blocking_resolver_lookup_service (resolver=0x98c9458)
at lm-blocking-resolver.c:186
#7 0xb7ee5bf0 in blocking_resolver_idle_lookup (resolver=0x98c9458) at
lm-blocking-resolver.c:215
#8 0xb7ddc667 in g_idle_dispatch (source=0x98cbc70, callback=0xb7ee5b77
<blocking_resolver_idle_lookup>, user_data=0x98c9458) at gmain.c:3924
#9 0xb7dd873e in g_main_dispatch (context=0x98c2828) at gmain.c:1814
#10 0xb7dd9c16 in IA__g_main_context_dispatch (context=0x98c2828) at
gmain.c:2367
#11 0xb7dda16a in g_main_context_iterate (context=0x98c2828, block=1,
dispatch=1, self=0x98c7d00) at gmain.c:2448
#12 0xb7dda941 in IA__g_main_loop_run (loop=0x98c1880) at gmain.c:2656
#13 0xb7d6dd87 in tp_run_connection_manager (prog_name=0x80b31f4
"telepathy-gabble", version=0x80b39dc "0.7.16",
construct_cm=0x8054280
<tp_svc_channel_type_tubes_implement_offer_stream_tube at plt+460>, argc=1,
argv=0xbfbbcd64) at run.c:264
#14 0x08054273 in ?? ()
#15 0x080541b2 in ?? ()
#16 0xb7b8f685 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#17 0x080540f1 in ?? ()
(gdb)
Here is my example again:
http://git.collabora.co.uk/?p=telepathy-doc.git;a=blob;f=docs/examples/send_message/main.c
(I'm using the Ubuntu PPA packages in Ubuntu Intrepid).
--
murrayc at murrayc.com
www.murrayc.com
www.openismus.com
More information about the Telepathy
mailing list