apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43000] - ./testall always freeze on testsockets
Date Fri, 17 Aug 2007 13:39:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43000>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43000





------- Additional Comments From steven.nairn@kewill.com  2007-08-17 06:39 -------
(In reply to comment #4)
I came across what appears to be the same problem on Solaris 10 x86 (and also
Tru64 5.1B) and resolved it by configuring IPv6. Hopefully this is useful.

With APR 1.2.9 the hang is in sendto_receivefrom (testsockets.c). It first
creates two IPv6 datagram sockets, which succeeds as the kernel supports IPv6.
It then tries to bind them to addresses, which fails as IPv6 is not configured
on the machine. It then sends a message on one socket and waits to read it from
the other. As the addressing was not correctly set up it waits forever trying to
receive it.

The output of "./testall -v testsockets" was useful:
testsockets         : -Line 148: expected <0>, but saw <126>
Line 148 of testsockets.c is where it compares the return value of
apr_socket_bind() to APR_SUCCESS. The call failed and returned EADDRNOTAVAIL (A
bind() operation was attempted for an address that is not configured on this
machine.)

With a more recent APR (I used the apr_20070817101928.tar.gz snapshot) the test
fails rather than hangs because the sendto_receivefrom_helper() function in
testsockets.c returns if the call to apr_socket_bind() fails.

To resolve this issue IPv6 must be configured. This might be as simple as
creating an empty file named /etc/hostname6.<interface> and rebooting
(<interface> is the name of your interface - "/usr/sbin/ifconfig -a" should give
you a hint). It worked for me.

Cheers,
Steve

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message