telepathy-butterfly crashed with ValueError in __parse()

Bug #558493 reported by J.Gabriels
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
papyon
Fix Released
Medium
papyon (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: telepathy-butterfly

While running in the background, empathy messenger crashed.

ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: telepathy-butterfly 0.5.7-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu Apr 8 17:52:25 2010
ExecutablePath: /usr/lib/telepathy/telepathy-butterfly
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/telepathy/telepathy-butterfly
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.utf8
PythonArgs: ['/usr/lib/telepathy/telepathy-butterfly']
SourcePackage: telepathy-butterfly
Title: telepathy-butterfly crashed with ValueError in __parse()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
J.Gabriels (joga) wrote :
tags: removed: need-duplicate-check
Revision history for this message
In , Sebastien Bacher (seb128) wrote :

The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/telepathy-butterfly/+bug/558493

"While running in the background, empathy messenger crashed.

telepathy-butterfly 0.5.7-0ubuntu1

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/papyon/switchboard_manager.py", line 370, in _sb_message_received
    handler._on_message_received(message)
  File "/usr/lib/pymodules/python2.6/papyon/conversation.py", line 353, in _on_message_received
    TextFormat.parse(message_formatting),
  File "/usr/lib/pymodules/python2.6/papyon/conversation.py", line 186, in parse
    text_format.__parse(format)
  File "/usr/lib/pymodules/python2.6/papyon/conversation.py", line 231, in __parse
    for p in property.split('=', 1)]
ValueError: need more than 1 value to unpack"

Revision history for this message
In , Jonny-lamb (jonny-lamb) wrote :

I need the butterfly log for just before this traceback.

visibility: private → public
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: https://bugs.freedesktop.org/show_bug.cgi?id=27556

Changed in telepathy-butterfly (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

If you get the issue again could you open the empathy help menu, debug dialog, select butterfly in the combo and get the debug log coressponding to the crash. Check for informations you don't want to share and add the log or the 15 lines before the crash to the bug, those informations would be useful to work on the issue

Changed in telepathy-butterfly (Ubuntu):
status: Triaged → Incomplete
affects: telepathy-butterfly (Ubuntu) → papyon (Ubuntu)
Revision history for this message
In , William Grant (wgrant) wrote :

This happens every time I receive a message from a particular contact at the moment. Said contact is using eBuddy right now.

This is an example message:

<<< MSG <redacted email> <redacted name> 160

 X-MMS-IM-Format: 'FN=Arial; EF=; CO=000000; CS=0; PF=00; RL=0;'\r\n
 Content-Type: 'text/plain; charset=UTF-8'\r\n
 MIME-Version: '1.0'\r\n
 \r\n
 <redacted plaintext message body>

I suspect that the trailing semicolon on X-MMS-IM-Format is to blame -- adding an emptiness check like this fixes it:

    def __parse(self, format):
        for property in format.split(';'):
            if not property:
                continue
            key, value = [p.strip(' \t|').upper() \
                    for p in property.split('=', 1)]

Revision history for this message
In , Jonny-lamb (jonny-lamb) wrote :

Good catch, thanks! I merged your patch to master:

http://git.collabora.co.uk/?p=papyon.git;a=commitdiff;h=ffb93617a

Revision history for this message
William Grant (wgrant) wrote :

As I posted on the upstream bug:

This happens every time I receive a message from a particular contact at the
moment. Said contact is using eBuddy right now.

This is an example message:

<<< MSG <redacted email> <redacted name> 160

 X-MMS-IM-Format: 'FN=Arial; EF=; CO=000000; CS=0; PF=00; RL=0;'\r\n
 Content-Type: 'text/plain; charset=UTF-8'\r\n
 MIME-Version: '1.0'\r\n
 \r\n
 <redacted plaintext message body>

I suspect that the trailing semicolon on X-MMS-IM-Format is to blame -- adding
an emptiness check like this fixes it:

    def __parse(self, format):
        for property in format.split(';'):
            if not property:
                continue
            key, value = [p.strip(' \t|').upper() \
                    for p in property.split('=', 1)]

Revision history for this message
William Grant (wgrant) wrote :
Changed in papyon (Ubuntu):
status: Incomplete → Triaged
affects: telepathy-butterfly → papyon
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package papyon - 0.4.6-0ubuntu2

---------------
papyon (0.4.6-0ubuntu2) lucid; urgency=low

  * debian/patches/93_git_trailing_semicolons_crash.patch:
    - upstream change to not on messages with trailing semicolons
      (lp: #558493)
 -- Sebastien Bacher <email address hidden> Wed, 14 Apr 2010 23:56:49 +0200

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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