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
Depends on:
Reported: 2018-08-06 08:27 UTC by nkoch
Modified: 2019-08-27 14:40 UTC (History)
1 user (show)

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


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:


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
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-27 14:40:22 UTC
Maintainer feedback, please!