[Bug 243252] www/firefox core dumps after r522486 (failed to freeze shm)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 18 04:59:36 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243252

Mikhail Teterin <mi at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mi at FreeBSD.org

--- Comment #13 from Mikhail Teterin <mi at FreeBSD.org> ---
The following change makes the failure to freeze the shared memory non-fatal --
just as it always was:

Index: files/patch-bug1550891
===================================================================
--- files/patch-bug1550891      (revision 523387)
+++ files/patch-bug1550891      (working copy)
@@ -72,7 +72,7 @@
  #else
    // Generic Unix: shm_open + shm_unlink
    do {
-@@ -275,6 +282,13 @@ bool SharedMemory::Freeze() {
+@@ -275,6 +282,12 @@ bool SharedMemory::Freeze() {
      CHROMIUM_LOG(WARNING) << "failed to freeze shm: " << strerror(errno);
      return false;
    }
@@ -81,7 +81,6 @@
 +  cap_rights_init(&rights, CAP_MMAP_R);
 +  if (cap_rights_limit(mapped_file_, &rights) != 0) {
 +    CHROMIUM_LOG(WARNING) << "failed to freeze shm: " << strerror(errno);
-+    return false;
 +  }
  #else
    DCHECK(frozen_file_ >= 0);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gecko mailing list