python-2.6 regression: tests hang on test_transport_implementations.TransportTests.test_get(HTTPSServer_PyCurl)

Bug #383920 reported by pva
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Vincent Ladeuil

Bug Description

After I've upgraded python, tests started to fail on:

 $=> python bzr --no-plugins selftest test_transport_implementations.TransportTests.test_get
testing: /home/pva/work/bzr.dev/bzr
   /home/pva/work/bzr.dev/bzrlib (1.16dev python2.6.2)

[6/114 in 0s, 1 missing] test_transport_implementations.TransportTests.test_get(HTTPSServer_PyCurl)

strace on the process shows:
camobap bzr-1.14.1 # strace -p 26112
Process 26112 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
poll([{fd=6, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {182992, 505733180}) = 0
clock_gettime(CLOCK_MONOTONIC, {182992, 505753853}) = 0
clock_gettime(CLOCK_MONOTONIC, {182992, 505774805}) = 0
poll([{fd=6, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)
poll([{fd=6, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
[and so on...]

I've tried recent trunk (as of yesterday) and also there are some fixes for python-2.6 bzr test still hangs. Thank you for your time.

Related branches

Revision history for this message
Vincent Ladeuil (vila) wrote :

Thanks for the report. The problem is known to be related to pycurl but not yet fully diagnosed.

Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Russel Winder (russel) wrote :

Just a confirmation: removing the python-pycurl package "solves" the problem.

Revision history for this message
Vincent Ladeuil (vila) wrote :

mumblemumbleubuntupleaseupgradepycurlto7.19.0.

I'm almost sure it's fixed in curl 7.19.0, can someone with a more recent curl confirm ?

Revision history for this message
Russel Winder (russel) wrote :

Karmic has 7.19.0, so is this just a "let's wait"?

Revision history for this message
Vincent Ladeuil (vila) wrote :

Hmm, the question is more: should we continue debugging pycurl issues or enhance urllib so that pycurl can be deprecated...

@Russel: can I take your comment as a confirmation that the bug doesn't manifest itself under karmic ?

Revision history for this message
Russel Winder (russel) wrote :

'Fraid not. I tend to stick with released OS distributions (so I am using Jaunty) even though I am using development head of selected products: Bazaar, Groovy, Gant, etc. My comment was based entirely on that reported by packages.ubuntu.com.

Revision history for this message
pva (pva) wrote :

> I'm almost sure it's fixed in curl 7.19.0

We have curl-7.19.4 stable since march in Gentoo. So ... the bug is not fixed there.

Revision history for this message
Vincent Ladeuil (vila) wrote :

@pva: Thanks a lot for that confirmation.

That narrows down the problem to a bad interaction between python2.6 and pycurl...

Vincent Ladeuil (vila)
Changed in bzr:
status: Confirmed → Fix Committed
Revision history for this message
pva (pva) wrote :

Yup, it's fixed. Thanks!

Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 1.17
status: Fix Committed → 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.