[Bug 209599] SIGSEGV in regression test suite on java/openjdk8

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 19 18:01:50 UTC 2016


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

openjdk at getsnappy.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |openjdk at getsnappy.com

--- Comment #10 from openjdk at getsnappy.com ---
That's really interesting.  It seems that if MappedByteBuffer is using Unsafe
operations to load a truncated file into memory that a SEGV would be expected. 
I wonder how this generates an internal error on other Operating Systems.  I
saw a comment in the test that windows throws an error when you try to truncate
a file that has an open MappedByteBuffer, maybe FreeBSD should as well.



        try {
            fc.truncate(TRUNCATED_FILE_SIZE);
            truncated = true;
        } catch (IOException ioe) {
            // probably on Windows where a file cannot be truncated when
            // there is a file mapping.
            truncated = false;
        }

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


More information about the freebsd-java mailing list