Empathy crashes if unable to write conversation log

Bug #594329 reported by Josh Bowman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Empathy
Invalid
Undecided
Unassigned
Telepathy Logger
Fix Released
Medium
libtelepathy
Invalid
Undecided
Unassigned
telepathy-logger (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: empathy

Upon sending or receiving a chat message, If Empathy cannot write to the directory '$HOME/.local/share/Empathy/logs', it crashes. I am running Ubuntu 10.04, freshly updated. Empathy is version 2.30.1-0ubuntu1 .

HOW TO REPRODUCE:
1) Change the permissions of the directory in question to '000' (i.e. no read, write, or execute access for anyone).
2) Start Empathy.
3) Send or receive a message.

Revision history for this message
Omer Akram (om26er) wrote :

The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME.

Changed in empathy (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Omer Akram (om26er) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at: https://bugzilla.gnome.org/show_bug.cgi?id=622818

Changed in empathy (Ubuntu):
status: Incomplete → Triaged
Changed in empathy:
status: Unknown → New
Revision history for this message
In , Guillaume-desmottes (guillaume-desmottes) wrote :

Original bug report: https://bugzilla.gnome.org/show_bug.cgi?id=622818

If we chmod 000 the logs directory, the logger crash when trying to write.

#0 ___vfprintf_chk (fp=0x0, flag=1, format=0x7ffff7bd23f4 "%s", ap=0x7fffffffe010) at vfprintf_chk.c:31
#1 0x00007ffff6c7a208 in IA__g_fprintf (file=0x0, format=0x1 <Address 0x1 out of bounds>) at /build/buildd/glib2.0-2.25.9/glib/gprintf.c:86
#2 0x00007ffff7bcb38c in _log_store_xml_write_to_store (store=<value optimized out>, message=<value optimized out>, error=<value optimized out>) at log-store-xml.c:412
#3 add_message_text_chat (store=<value optimized out>, message=<value optimized out>, error=<value optimized out>) at log-store-xml.c:484
#4 add_message_text (store=<value optimized out>, message=<value optimized out>, error=<value optimized out>) at log-store-xml.c:521
#5 log_store_xml_add_message (store=<value optimized out>, message=<value optimized out>, error=<value optimized out>) at log-store-xml.c:557
#6 0x00007ffff7bc7e23 in _tpl_log_manager_add_message (manager=<value optimized out>, message=0x619200, error=0x7fffffffe258) at log-manager.c:276
#7 0x00007ffff7bbf39c in on_sent_signal_cb (proxy=<value optimized out>, arg_Timestamp=<value optimized out>, arg_Type=<value optimized out>,
    arg_Text=<value optimized out>, user_data=<value optimized out>, weak_object=<value optimized out>) at channel-text.c:1166
#8 0x00007ffff65cc8a4 in _tp_cli_channel_type_text_invoke_callback_for_sent (tpproxy=0x664000, error=<value optimized out>, args=0x659cc0,
    generic_callback=0x7ffff7bbf130 <on_sent_signal_cb>, user_data=<value optimized out>, weak_object=<value optimized out>) at _gen/tp-cli-channel-body.h:11459
#9 0x00007ffff66433ec in tp_proxy_signal_invocation_run (p=0x6453a0) at proxy-signals.c:266
#10 0x00007ffff6c37272 in g_main_dispatch (context=0x614190) at /build/buildd/glib2.0-2.25.9/glib/gmain.c:2044
#11 IA__g_main_context_dispatch (context=0x614190) at /build/buildd/glib2.0-2.25.9/glib/gmain.c:2597
#12 0x00007ffff6c3b1b8 in g_main_context_iterate (context=0x614190, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.25.9/glib/gmain.c:2675
#13 0x00007ffff6c3b6c5 in IA__g_main_loop_run (loop=0x63cf20) at /build/buildd/glib2.0-2.25.9/glib/gmain.c:2883
#14 0x00000000004018cb in main (argc=<value optimized out>, argv=<value optimized out>) at telepathy-logger.c:187

Changed in empathy:
status: New → Invalid
Revision history for this message
Josh Bowman (bowmanjj) wrote :

It appears, as people on the GNOME Bugzilla have pointed out, that this bug is actually with Telepathy, not Empathy.

affects: empathy (Ubuntu) → libtelepathy (Ubuntu)
Revision history for this message
Josh Bowman (bowmanjj) wrote :

Change this to Telepathy too.

Revision history for this message
Josh Bowman (bowmanjj) wrote :

Sorry about comment #4, there. I am not a Launchpad expert; I was trying to change the Empathy upstream entry to Telepathy, but it didn't work, so I just added the Telepathy one instead.

Omer Akram (om26er)
Changed in empathy:
importance: Unknown → Undecided
status: Invalid → New
affects: libtelepathy (Ubuntu) → telepathy-logger (Ubuntu)
Changed in libtelepathy:
importance: Unknown → Undecided
status: Unknown → New
Omer Akram (om26er)
Changed in empathy:
status: New → Invalid
Changed in libtelepathy:
status: New → Invalid
Changed in telepathy-logger:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in telepathy-logger:
importance: Medium → Unknown
status: Confirmed → Fix Released
Changed in telepathy-logger:
importance: Unknown → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is fixed in the current version

Changed in telepathy-logger (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.