telepathy-butterfly crashed with gaierror in query()

Bug #467217 reported by Peterwaters
224
This bug affects 38 people
Affects Status Importance Assigned to Milestone
telepathy-butterfly
Fix Released
Medium
papyon (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: telepathy-butterfly

Source package - telepathy butterfly

Has only started happening since upgrading dist to Ubuntu 9.10

ProblemType: Crash
Architecture: i386
Date: Sat Oct 31 20:45:05 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/lib/telepathy/telepathy-butterfly
InterpreterPath: /usr/bin/python2.6
Package: telepathy-butterfly 0.5.2-0ubuntu1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/telepathy/telepathy-butterfly
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
PythonArgs: ['/usr/lib/telepathy/telepathy-butterfly']
SourcePackage: telepathy-butterfly
Tags: ubuntu-unr
Title: telepathy-butterfly crashed with gaierror in query()
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
Peterwaters (peno100) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

 * Is this reproducible?
 * If so, what specific steps should we take to recreate this bug?

 This will help us to find and resolve the problem.

Changed in telepathy-butterfly (Ubuntu):
importance: Undecided → Low
summary: - Keeps crashing, what is this program?
+ telepathy-butterfly crashed with gaierror in query()
Revision history for this message
Will Varfar (varfar) wrote :

Happened to me on Lucid.

Brian Curtis (bcurtiswx)
Changed in telepathy-butterfly (Ubuntu):
status: New → Incomplete
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/467217 and has quite some duplicates:

The descriptions don't seem to be really useful, it seems to just show at random time when doing other things

Stracktrace on 0.5.7

"Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/papyon/service/SOAPService.py", line 215, in _response_handler
    handler(callback, errback, response, user_data)
  File "/usr/lib/pymodules/python2.6/papyon/service/SingleSignOn.py", line 198, in _HandleRequestMultipleSecurityTokensResponse
    callback[0](result, *callback[1:])
  File "/usr/lib/pymodules/python2.6/papyon/service/SingleSignOn.py", line 104, in sso_callback
    func(object, user_callback, user_errback, *user_args, **user_kwargs)
  File "/usr/lib/pymodules/python2.6/papyon/service/AddressBook/ab.py", line 353, in __soap_request
    self._soap_request(method, (scenario, token), args, callback, errback)
  File "/usr/lib/pymodules/python2.6/papyon/service/SOAPService.py", line 196, in _soap_request
    user_data)
  File "/usr/lib/pymodules/python2.6/papyon/service/SOAPService.py", line 183, in _send_request
    transport.request(resource, http_headers, request, 'POST')
  File "/usr/lib/pymodules/python2.6/papyon/gnet/protocol/HTTP.py", line 154, in request
    self._process_queue()
  File "/usr/lib/pymodules/python2.6/papyon/gnet/protocol/HTTP.py", line 131, in _process_queue
    self._setup_transport()
  File "/usr/lib/pymodules/python2.6/papyon/gnet/protocol/HTTP.py", line 84, in _setup_transport
    self._transport.open()
  File "/usr/lib/pymodules/python2.6/papyon/gnet/io/iochannel.py", line 141, in open
    self._open(self._host, self._port)
  File "/usr/lib/pymodules/python2.6/papyon/gnet/io/iochannel.py", line 90, in _open
    resolver.query(host, (self.__open, host, port))
  File "/usr/lib/pymodules/python2.6/papyon/gnet/resolver.py", line 58, in query
    result = socket.getaddrinfo(host, None, socket.AF_INET, socket.SOCK_STREAM)
gaierror: [Errno -5] No address associated with hostname"

Other stacktrace example:
http://launchpadlibrarian.net/43373915/Traceback.txt
http://launchpadlibrarian.net/38568384/Traceback.txt

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

This error just looks like internet connectivity was lost. Perhaps we should be nicer about it though. I don't really understand why this code path yet though.

Changed in telepathy-butterfly (Ubuntu):
status: Incomplete → New
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=27554

Changed in telepathy-butterfly (Ubuntu):
status: New → Triaged
Revision history for this message
In , Jonny-lamb (jonny-lamb) wrote :

I came across a similar traceback recently:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.6/dist-packages/butterfly/connection.py", line 161, in Connect
    self._msn_client.login(*self._account)
  File "/usr/lib/pymodules/python2.6/papyon/client.py", line 256, in login
    self._transport.establish_connection()
  File "/usr/lib/pymodules/python2.6/papyon/transport.py", line 253, in establish_connection
    self._transport.open()
  File "/usr/lib/pymodules/python2.6/papyon/gnet/io/iochannel.py", line 141, in open
    self._open(self._host, self._port)
  File "/usr/lib/pymodules/python2.6/papyon/gnet/io/iochannel.py", line 90, in _open
    resolver.query(host, (self.__open, host, port))
  File "/usr/lib/pymodules/python2.6/papyon/gnet/resolver.py", line 58, in query
    result = socket.getaddrinfo(host, None, socket.AF_INET, socket.SOCK_STREAM)
gaierror: [Errno -5] No address associated with hostname

I wrote a patch for butterfly to catch this exception and signal a network error[0], but actually I think this is a papyon bug and if it's fixed in papyon in both of these cases then it'll magically fix both bugs.

0. http://git.collabora.co.uk/?p=user/jonny/telepathy-butterfly.git;a=commitdiff;h=9e870de38

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

Right, I've fixed this in my conn branch -- a pretty simple patch.

An easy test for this is to run butterfly with this papyon branch and change the server parameter to something that clearly won't work.

Note that butterfly now defaults to trying a HTTP connection when direct doesn't work, so it will actually connect, but observe that butterfly outputs in its log that the direct connection failed and it's trying HTTP now.

Get reviewin'!

affects: telepathy-butterfly (Ubuntu) → papyon (Ubuntu)
Changed in papyon (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * New upstream version:
    Fixes:
    - Don't try to reconnect in an infinite loop in HTTP mode
    - Fix parse error in HTTPMessage
    - Display presence of contacts using web messenger
  * debian/patches/02_git_nln_handler.patch,
    debian/patches/90_git_clean_trailing_x00.patch:
    - the changes are in the new version
  * debian/patches/03_extra_infos_logger.patch:
    - the change is not required since the issue is solved now
  * debian/patches/90_git_no_b64_crasher.patch:
    - upstream change to fix telepathy-butterfly crash report in b64decode()
      (lp: #401028)
  * debian/patches/91_upstream_on_error_exception.patch:
    - upstream change to not raise an on_error exception (lp: #194494)
  * debian/patches/92_upstream_catch_exception.patch:
    - upstream change to catch gaierror exceptions (lp: #467217)
 -- Sebastien Bacher <email address hidden> Mon, 12 Apr 2010 18:24:37 +0200

Changed in papyon (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Pablo Jejcic (pablo-jejcic) wrote : Re: [Bug 467217] Re: telepathy-butterfly crashed with gaierror in query()

excellent, updated./
-- Pablo

On 12 April 2010 18:05, Launchpad Bug Tracker <email address hidden>wrote:

> This bug was fixed in the package papyon - 0.4.6-0ubuntu1
>
> ---------------
> papyon (0.4.6-0ubuntu1) lucid; urgency=low
>
> * New upstream version:
> Fixes:
> - Don't try to reconnect in an infinite loop in HTTP mode
> - Fix parse error in HTTPMessage
> - Display presence of contacts using web messenger
> * debian/patches/02_git_nln_handler.patch,
> debian/patches/90_git_clean_trailing_x00.patch:
> - the changes are in the new version
> * debian/patches/03_extra_infos_logger.patch:
> - the change is not required since the issue is solved now
> * debian/patches/90_git_no_b64_crasher.patch:
> - upstream change to fix telepathy-butterfly crash report in b64decode()
> (lp: #401028)
> * debian/patches/91_upstream_on_error_exception.patch:
> - upstream change to not raise an on_error exception (lp: #194494)
> * debian/patches/92_upstream_catch_exception.patch:
> - upstream change to catch gaierror exceptions (lp: #467217)
> -- Sebastien Bacher <email address hidden> Mon, 12 Apr 2010 18:24:37 +0200
>
> ** Changed in: papyon (Ubuntu)
> Status: Fix Committed => Fix Released
>
> --
> telepathy-butterfly crashed with gaierror in query()
> https://bugs.launchpad.net/bugs/467217
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in telepathy-butterfly: Unknown
> Status in “papyon” package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: telepathy-butterfly
>
> Source package - telepathy butterfly
>
> Has only started happening since upgrading dist to Ubuntu 9.10
>
> ProblemType: Crash
> Architecture: i386
> Date: Sat Oct 31 20:45:05 2009
> DistroRelease: Ubuntu 9.10
> ExecutablePath: /usr/lib/telepathy/telepathy-butterfly
> InterpreterPath: /usr/bin/python2.6
> Package: telepathy-butterfly 0.5.2-0ubuntu1
> PackageArchitecture: all
> ProcCmdline: /usr/bin/python /usr/lib/telepathy/telepathy-butterfly
> ProcEnviron:
> SHELL=/bin/bash
> LANG=en_GB.UTF-8
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> PythonArgs: ['/usr/lib/telepathy/telepathy-butterfly']
> SourcePackage: telepathy-butterfly
> Tags: ubuntu-unr
> Title: telepathy-butterfly crashed with gaierror in query()
> Uname: Linux 2.6.31-14-generic i686
> UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/telepathy-butterfly/+bug/467217/+subscribe
>

Changed in telepathy-butterfly:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in telepathy-butterfly:
importance: Medium → Unknown
Changed in telepathy-butterfly:
importance: Unknown → Medium
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.