我不知道为什么,但出于某种原因,没有人(包括 root)可以访问 /usr/local/lib/libnvidia-glcore.so。
我使用的是 HardenedBSD 14.1-STABLE-HBSD。我使用的是 Nvidia 驱动程序 390.154_1。我的 GPU 是 GeForce GTX 460。目前我的所有软件都来自软件包存储库,OBS 除外,它是出现段错误的程序之一。
如果您需要更多信息,请告诉我。
错误(通过 gdb)总是发生如下事情:
Invalid permissions for mapped object.
0x000000080608b220 in ?? () from /usr/local/lib/libnvidia-glcore.so.1
标准用户或 root。总是出现段错误。当我查看时,总是这个特定的库有问题。
我搜索了 sysctl 设置列表,以查看是否有启用或禁用了可能导致此问题的内容。我没有发现任何问题:
hw.nvidia.gpus.0.type: PCIe
hw.nvidia.gpus.0.irq: 102
hw.nvidia.gpus.0.model: GeForce GTX 460
hw.nvidia.registry.dwords:
hw.nvidia.registry.RmProfilingAdminOnly: 1
hw.nvidia.registry.EnableIBMNPURelaxedOrderingMode: 0
hw.nvidia.registry.EnableUserNUMAManagement: 1
hw.nvidia.registry.EnableBacklightHandler: 0
hw.nvidia.registry.EnableStreamMemOPs: 0
hw.nvidia.registry.UseThreadedInterrupts: 1
hw.nvidia.registry.TCEBypassMode: 0
hw.nvidia.registry.IgnoreMMIOCheck: 0
hw.nvidia.registry.VMallocHeapMaxSize: 0
hw.nvidia.registry.KMallocHeapMaxSize: 0
hw.nvidia.registry.MemoryPoolSize: 0
hw.nvidia.registry.EnablePCIeGen3: 0
hw.nvidia.registry.CheckPCIConfigSpace: 4294967295
hw.nvidia.registry.RegisterForACPIEvents: 1
hw.nvidia.registry.MapRegistersEarly: 0
hw.nvidia.registry.EnableMSI: 1
hw.nvidia.registry.UsePageAttributeTable: 4294967295
hw.nvidia.registry.InitializeSystemMemoryAllocations: 1
hw.nvidia.registry.UpdateMemoryTypes: 4294967295
hw.nvidia.registry.DeviceFileMode: 438
hw.nvidia.registry.DeviceFileGID: 0
hw.nvidia.registry.DeviceFileUID: 0
hw.nvidia.registry.ModifyDeviceFiles: 1
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.ResmanDebugLevel: 4294967295
hw.nvidia.registry.Mobile: 4294967295
hw.nvidia.version: NVIDIA UNIX x86_64 Kernel Module 390.154 Wed Jun 22 04:50:54 UTC 2022
hardening.kmalloc_zero: 0
hardening.prohibit_ptrace_capsicum: 2
hardening.prohibit_ptrace_syscall: 1
hardening.harden_shm: 2
hardening.harden_tty: 1
hardening.harden_rtld: 1
hardening.insecure_kmod: 0
hardening.procfs_harden: 1
hardening.log.ulog: 0
hardening.log.log: 1
hardening.version: 1400007
hardening.control.extattr.status: 1
hardening.control.acl.status: 1
hardening.pax.segvguard.max_crashes: 5
hardening.pax.segvguard.suspend_timeout: 600
hardening.pax.segvguard.expiry_timeout: 120
hardening.pax.segvguard.status: 2
hardening.pax.mprotect.status: 2
hardening.pax.pageexec.status: 1
hardening.pax.kmod_load_disable: 0
hardening.pax.tpe.user_owned: 0
hardening.pax.tpe.root_owned: 1
hardening.pax.tpe.all: 0
hardening.pax.tpe.negate: 0
hardening.pax.tpe.gid: 0
hardening.pax.tpe.status: 1
hardening.pax.disallow_map32bit.status: 2
hardening.pax.aslr.status: 1
hardening.pax.prohibit_new_usb: 0
security.mac.mmap_revocation_via_cow: 0
security.mac.mmap_revocation: 1
security.mac.labeled: 0
security.mac.max_slots: 4
security.mac.version: 5
security.bsd.stack_guard_page: 1
security.bsd.unprivileged_get_quota: 0
security.bsd.allow_read_dir: 0
security.bsd.hardlink_check_gid: 1
security.bsd.hardlink_check_uid: 1
security.bsd.unprivileged_chroot: 0
security.bsd.unprivileged_idprio: 0
security.bsd.allow_ptrace: 0
security.bsd.unprivileged_proc_debug: 0
security.bsd.conservative_signals: 1
security.bsd.see_jail_proc: 0
security.bsd.see_other_gids: 0
security.bsd.see_other_uids: 0
security.bsd.unprivileged_read_msgbuf: 0
security.bsd.unprivileged_mlock: 1
security.bsd.suser_enabled: 1
security.jail.mount_fdescfs_allowed: 0
security.jail.mount_zfs_allowed: 0
security.jail.mount_fusefs_allowed: 0
security.jail.mount_tmpfs_allowed: 0
security.jail.mount_procfs_allowed: 0
security.jail.mount_devfs_allowed: 0
security.jail.vmm_allowed: 0
security.jail.param.zfs.mount_snapshot: 0
security.jail.param.zfs.: 0
security.jail.param.sysvshm.: 0
security.jail.param.sysvsem.: 0
security.jail.param.sysvmsg.: 0
security.jail.param.allow.vmm: 0
security.jail.param.allow.mount.fdescfs: 0
security.jail.param.allow.mount.zfs: 0
security.jail.param.allow.mount.fusefs: 0
security.jail.param.allow.mount.tmpfs: 0
security.jail.param.allow.mount.procfs: 0
security.jail.param.allow.mount.devfs: 0
security.jail.param.allow.mount.: 0
security.jail.param.allow.nfsd: 0
security.jail.param.allow.suser: 0
security.jail.param.allow.extattr: 0
security.jail.param.allow.unprivileged_proc_debug: 0
security.jail.param.allow.read_msgbuf: 0
security.jail.param.allow.reserved_ports: 0
security.jail.param.allow.mlock: 0
security.jail.param.allow.socket_af: 0
security.jail.param.allow.quotas: 0
security.jail.param.allow.chflags: 0
security.jail.param.allow.raw_sockets: 0
security.jail.param.allow.sysvipc: 0
security.jail.param.allow.set_hostname: 0
security.jail.param.ip6.saddrsel: 0
security.jail.param.ip6.: 0
security.jail.param.ip4.saddrsel: 0
security.jail.param.ip4.: 0
security.jail.param.cpuset.id: 0
security.jail.param.host.hostid: 0
security.jail.param.host.hostuuid: 64
security.jail.param.host.domainname: 256
security.jail.param.host.hostname: 256
security.jail.param.host.: 0
security.jail.param.children.max: 0
security.jail.param.children.cur: 0
security.jail.param.dying: 0
security.jail.param.vnet: 0
security.jail.param.persist: 0
security.jail.param.devfs_ruleset: 0
security.jail.param.enforce_statfs: 0
security.jail.param.osrelease: 32
security.jail.param.osreldate: 0
security.jail.param.securelevel: 0
security.jail.param.path: 1024
security.jail.param.name: 256
security.jail.param.parent: 0
security.jail.param.jid: 0
security.jail.param.hardening.prohibit_ptrace_capsicum: 0
security.jail.param.hardening.harden_shm: 0
security.jail.param.hardening.harden_tty: 0
security.jail.param.hardening.harden_rtld: 0
security.jail.param.hardening.log.ulog: 0
security.jail.param.hardening.log.log: 0
security.jail.param.hardening.pax.segvguard.status: 0
security.jail.param.hardening.pax.mprotect.status: 0
security.jail.param.hardening.pax.pageexec.status: 0
security.jail.param.hardening.pax.disallow_map32bit.status: 0
security.jail.param.hardening.pax.aslr.status: 0
security.jail.devfs_ruleset: 0
security.jail.enforce_statfs: 2
security.jail.mlock_allowed: 0
security.jail.mount_allowed: 0
security.jail.chflags_allowed: 0
security.jail.allow_raw_sockets: 0
security.jail.sysvipc_allowed: 0
security.jail.socket_unixiproute_only: 1
security.jail.set_hostname_allowed: 1
security.jail.jail_max_af_ips: 255
security.jail.vnet: 0
security.jail.jailed: 0
尽管我可能错过了一些东西。
出于时间和安全考虑,列表已被删减。如果您希望我查看的选项未在此处列出,请告诉我。
我修改了很多 sysctl 变量,并在网上搜索了几个小时。似乎没有人遇到我的问题。
通过阅读一些旧文档,似乎应该存在“/usr/lib/xorg”。但是在我的系统上它不存在。我不确定它是否相关,而且 XOrg 似乎运行良好,但我想我应该提到它以防万一。