Bug 230410 - devel/libx86 mmap("/dev/mem") gives EINVAL in sysutils/vbetool
Summary: devel/libx86 mmap("/dev/mem") gives EINVAL in sysutils/vbetool
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Some People
Assignee: Jung-uk Kim
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-06 08:27 UTC by nkoch
Modified: 2018-08-07 14:03 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (jkim)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nkoch 2018-08-06 08:27:29 UTC
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.
Comment 1 nkoch 2018-08-07 14:03:18 UTC
Same with Freebsd 11.2/amd64