Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Aug 2018 08:27:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 230410] devel/libx86 mmap("/dev/mem") gives EINVAL in sysutils/vbetool
Message-ID:  <bug-230410-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230410

            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@FreeBSD.org
          Reporter: nkoch@demig.de
             Flags: maintainer-feedback?(jkim@FreeBSD.org)
          Assignee: jkim@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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230410-7788>