Firefox 66.0.5-r1 tabs crashing when password field focused
[Parent 15731, Gecko_IOThread] WARNING: pipe error (41): Connection reset by peer: file /home/buildozer/aports/testing/firefox/src/firefox-66.0.5/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 357
###!!! [Parent][MessageChannel] Error: (msgtype=0x1E0087,name=PBrowser::Msg_Destroy) Channel error: cannot send/recv
Exiting due to channel error.
This happens on both firefox and firefox-esr on the edge branch.
Simplest way to reproduce is so go to the register page of any site, for
example
the Alpine Linux bug tracker, enter something in the username field and
press tab.
This crash is so easy to reproduce that I suspect something about my
setup.
No errors are reported at startup for Firefox, all other applications
behave as expected.
The tab will also crash on random sites when JavaScript is enabled with
a similar error.
Excerpt from the source code line mentioned by the error message:
<code class="c">
// Read from pipe.
// recvmsg() returns 0 if the connection has closed or EAGAIN if no data
// is waiting on the pipe.
ssize_t bytes_read = HANDLE_EINTR(recvmsg(pipe_, &msg, MSG_DONTWAIT));
if (bytes_read < 0) {
if (errno == EAGAIN) {
return true;
} else {
CHROMIUM_LOG(ERROR)
<< "pipe error (" << pipe_ << "): " << strerror(errno);
return false;
}
} else if (bytes_read == 0) {
// The pipe has closed...
Close();
return false;
}
</code>
As you can see the code is very benign.
(from redmine: issue id 10451, created on 2019-05-14)