selftest on PPA

Maritza Mendez martitzam at gmail.com
Tue Jun 16 04:45:00 BST 2009


On Mon, Jun 15, 2009 at 8:09 PM, Martin Pool <mbp at sourcefrog.net> wrote:

>
> This indicates a test failure of some kind.  It may be that your
> machine has a firewall blocking some loopback connections, or it may
> be a problem in the http library or transport, or it may be something
> else.  A good next step would be to run say "strace -p PID" on that
> process to see just where it's stuck.
>


Right.  I was hoping we still had some high-level options.

This is a fairly standard jaunty box behind a wireless router behind a cable
modem.

The output of 'strace -ostrace.txt bzr --no-plugins selftest
test_http.TestActivity.test_get -v' (where the test fails) is 1.4
megabytes.  The last few lines written are


socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 7
connect(7, {sa_family=AF_INET, sin_port=htons(50567),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
getpeername(7, {sa_family=AF_INET, sin_port=htons(50567),
sin_addr=inet_addr("127.0.0.1")}, [9783225774122205200]) = 0
fcntl(7, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR)               = 0
write(7,
"\200d\1\3\1\0K\0\0\0\20\0\0009\0\0008\0\0005\0\0\26\0\0\23\0\0\n\7\0\300\0"...,
102) = 102
read(7,

where you can see that the last call isn't being written completely.

When I hit ctrl-C (to shut down strace), strace finishes the previously
incomplete line as follows:

read(7, 0x5dbb300, 7)                   = ? ERESTARTSYS (To be restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
rt_sigaction(SIGINT, {0x4d58c0, [], SA_RESTORER, 0x7f30fa9dc080}, {0x4d58c0,
[], SA_RESTORER, 0x7f30fa9dc080}, 8) = 0
rt_sigreturn(0x2)                       = -1 EINTR (Interrupted system call)
fcntl(7, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR)               = 0
close(4)                                = 0
munmap(0x7f30fae02000, 4096)            = 0
unlink("/tmp/testbzreXAwaL.log")        = 0

plus several hundred additional lines ending in bzr shutting down.

I stress that
test_http.TestActivity.test_get(urllib,HTTP/1.0,http) passes
but
test_http.TestActivity.test_get(urllib,HTTP/1.0,https) hangs.

Ideas?  Maybe I'm missing a dependency related to SSL?

-M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090615/313a0bac/attachment.htm 


More information about the bazaar mailing list