Comment #3 on issue 25762 by codedr:
FATAL:base/message_pump_libevent.cc(151)] Check failed: fd > 0
http://code.google.com/p/chromium/issues/detail?id=25762
There seems to be some error condition where socket() erronously returns
zero.
I don't know why.
I made the following changes and I haven't have an issue since.
--- net/socket/tcp_client_socket_libevent.cc (revision 33571)
+++ net/socket/tcp_client_socket_libevent.cc (working copy)
@@ -335,6 +335,10 @@
int TCPClientSocketLibevent::CreateSocket(const addrinfo* ai) {
socket_ = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
+ if (0 == socket_) {
+ socket_ = -1;
+ return MapPosixError(EINVAL);
+ }
if (socket_ == kInvalidSocket)
return MapPosixError(errno);
--- ipc/ipc_channel_posix.cc (revision 33571)
+++ ipc/ipc_channel_posix.cc (working copy)
@@ -149,7 +149,7 @@
// Create socket.
int fd = socket(AF_UNIX, SOCK_STREAM, 0);
- if (fd < 0) {
+ if (fd < 1) {
return false;
}
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs