adb is freezing while trying to connect via loopback to the adb server. Here
is a stack trace from gdb while using the froyo branch:
#0 0xf7fdc430 in __kernel_vsyscall ()
#1 0xf7f5ced1 in connect () from /lib32/libpthread.so.0
#2 0x0805e399 in socket_loopback_client (port=<value optimized out>,
type=1) at system/core/libcutils/socket_loopback_client.c:51
#3 0x080521e3 in _adb_connect (service=0x80612ce "host:version") at
system/core/adb/adb_client.c:177
#4 0x080525d5 in adb_connect (service=0xffffc538 "host:devices") at
system/core/adb/adb_client.c:204
#5 0x0805285e in adb_query (service=0xffffc538 "host:devices") at
system/core/adb/adb_client.c:291
#6 0x08050ff3 in adb_commandline (argc=1, argv=0xffffd628) at
system/core/adb/commandline.c:849
#7 0x0804ab62 in main (argc=2, argv=0xffffd624) at
system/core/adb/adb.c:1176
Here is the connect syscall from socket_loopback_client.c which is blocking
adb:
int socket_loopback_client(int port, int type)
{
struct sockaddr_in addr;
socklen_t alen;
int s;
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
s = socket(AF_INET, type, 0);
if(s < 0) return -1;
=> if(connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
close(s);
return -1;
}
return s;
}
Anyone have any ideas as to whats going on? adb used to work properly. It is
probably a system setup / library upgrade thing. Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en