[Bug 211924] lib/libc/sys/mmap_test:mmap_truncate_signal fails with SIGSEGV instead of SIGBUS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 31 13:23:17 UTC 2019


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

Ed Maste <emaste at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emaste at freebsd.org,
                   |                            |kib at FreeBSD.org

--- Comment #2 from Ed Maste <emaste at freebsd.org> ---
kib, the test here does a

map = mmap(NULL, page, PROT_READ, MAP_FILE|MAP_PRIVATE, fd, 0);

then fork() and tries to access the mapping in the child. The test expects
SIGBUS but gets SIGSEGV. Perhaps the right change is to just expect SIGSEGV on
FreeBSD but I wanted to check if you have an opinion on the choice of signal.

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


More information about the freebsd-testing mailing list