[Bug 230410] devel/libx86 mmap("/dev/mem") gives EINVAL in sysutils/vbetool

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 6 08:27:32 UTC 2018


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

            Bug ID: 230410
           Summary: devel/libx86 mmap("/dev/mem") gives EINVAL in
                    sysutils/vbetool
           Product: Ports & Packages
           Version: Latest
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jkim at FreeBSD.org
          Reporter: nkoch at demig.de
             Flags: maintainer-feedback?(jkim at FreeBSD.org)
          Assignee: jkim at FreeBSD.org

When trying to run sysutils/vbetools (installed via pkg) with any arguments I
see

 "mmap /dev/mem: Invalid argument"

and then

 "Failed to initialize LRMI (Linux Real-Mode Interface)".

Output of truss:

  mmap(0x0,1282,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_SHARED|MAP_FIXED,3,0x0)

So my guess is that the combination of hint address 0 and MAP_FIXED does not
work.

Tested FreeBSD versions are 9.1, 10.2 and 10.3.

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


More information about the freebsd-ports-bugs mailing list