Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2025 09:34:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 290471] NIRI causing a Fatal trap: page fault on FreeBSD 14.3 with NVIDIA drivers
Message-ID:  <bug-290471-7141-H9cBSGaojZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-290471-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-290471-7141@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #15 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
Tried stupid test for x11-wm/niri on:
  stable/15, amd64 at commit c412af68cb60f54fdbc29eb09e35869ed07c93f7
  x11/nvidia-kmod-devel + x11/nvidia-driver-devel
  + graphics/drm-66-kmod + graphics/nvidia-drm-66-kmod-devel,
  with main branch of ports tree at commit
c9c996ad6b8fb4a3cde65a0b1c517941dc4f77c7

niri failed to start, but kernel didn't panic.
And backtrace looks alike the one in Comment 11.
No workaround shown upstream are NOT applied (thus, stupid test).

Existence of DRI devices (after restart of test, but the same except
date/time):

% ls -l /dev/dri
total 0
lrwxr-xr-x  1 root wheel  8 10=E6=9C=88 29 18:41 card0 -> ../drm/0
lrwxr-xr-x  1 root wheel 10 10=E6=9C=88 29 18:41 renderD128 -> ../drm/128
% ls -l /dev/drm/0
crw-rw----  1 root video 0xeb 10=E6=9C=88 29 18:41 /dev/drm/0
% ls -l /dev/drm/128
crw-rw----  1 root video 0x16b 10=E6=9C=88 29 18:41 /dev/drm/128
%=20


Error messages on screen:

% niri --session
2025-10-29T00:36:52.665048Z  INFO niri: starting version 25.08 (unknown com=
mit)
2025-10-29T00:36:52.686433Z DEBUG niri_config: loaded config from
"/home/********/.config/niri/config.kdl"
Oct 29 09:36:52 ******** seatd[4799]: 00:04:43.724 [INFO] [seatd/server.c:1=
46]
New client connected (pid: 8068, uid: 1001, gid:0) 00:04:43.724 [INFO]
[seatd/seat.c:239] Added client 1 to seat0
Oct 29 09:36:52 ******** seatd[4799]: 00:04:43.724 [INFO] [seatd/seat.c:563]
Opened client 1 on seat0libinput error: event11 - Wacom Pen and multitouch
sensor Finger: libinput bug: kernel fuzz of 4 but LIBINPUT_FUZZ_35 is missi=
ng
 libinput error: event11 - Wacom Pen and multitouch sensor Finger: libinput
bug: kernel fuzz of 4 but LIBINPUT_FUZZ_36 is missing

 thread 'main' panicked at src/main.rs:176:6:
 called `Result::unwrap()` on an `Err` value: error initializing the TTY
backend

  Caused by:
  0: error opening the primary GPU DRM node
  1: the provided file descriptor does not refer to a DRM node
  stack backtrace:
   0: __rustc::rust_begin_unwind
  1: core::panicking::panic_fmt
  2: core::result::unwrap_failed
  3: niri


Related outputs in /var/log/messages:

Oct 29 09:36:52 ******** seatd[4799]: 00:04:43.724 [INFO] [seatd/server.c:1=
46]
New client connected (pid: 8068, uid: 1001, gid: 0) 00:04:43.724 [INFO]
[seatd/seat.c:239] Added client 1 to seat0
Oct 29 09:36:52 ******** seatd[4799]: 00:04:43.724 [INFO] [seatd/seat.c:563]
Opened client 1 on seat0
Oct 29 09:36:53 ******** devd[4397]: check_clients:  dropping disconnected
client
Oct 29 09:36:53 ******** seatd[4799]: 00:04:44.342 [INFO] [seatd/client.c:4=
96]
Client disconnected
Oct 29 09:36:53 ******** seatd[4799]: 00:04:44.363 [INFO] [seatd/seat.c:158=
] No
clients on seat0 to activate 00:04:44.363 [INFO] [seatd/seat.c:290] Removed
client 1 from seat0
Oct 29 09:36:53 ******** kernel: pid 8068 (niri), jid 0, uid 1001: exited on
signal 6 (core dumped)
Oct 29 09:37:53 ******** devd[4397]: check_clients:  dropping disconnected
client
Oct 29 09:37:53 ******** syslogd: last message repeated 2 times
Oct 29 09:38:45 ******** seatd[4799]: 00:06:36.927 [INFO] [seatd/server.c:1=
46]
New client connected (pid: 8077, uid: 10002, gid: 5)
Oct 29 09:38:45 ******** seatd[4799]: 00:06:36.927 [INFO] [seatd/seat.c:239]
Added client 1 to seat0
Oct 29 09:38:45 ******** seatd[4799]: 00:06:36.927 [INFO] [seatd/seat.c:563]
Opened client 1 on seat0
Oct 29 09:38:46 ******** seatd[4799]: 00:06:37.361 [INFO] [seatd/client.c:4=
96]
Client disconnected
Oct 29 09:38:46 ******** seatd[4799]: 00:06:37.363 [INFO] [seatd/seat.c:158=
] No
clients on seat0 to activate 00:06:37.363 [INFO] [seatd/seat.c:290] Removed
client 1 from seat0
Oct 29 09:38:46 ******** kernel: pid 8077 (niri), jid 0, uid 10002: exited =
on
signal 6 (core dumped)
Oct 29 09:39:38 ******** devd[4397]: notify_clients: send() failed; dropping
unresponsive client


Backtrace:

% lldb --core /var/tmp/niri.core --file /usr/local/bin/niri=20=20=20
(lldb) target create "/usr/local/bin/niri" --core "/var/tmp/niri.core"
Core file '/var/tmp/niri.core' (x86_64) was loaded.
(lldb) bt all
* thread #1, name =3D 'niri', stop reason =3D signal SIGABRT
  * frame #0: 0x00000b0bd0073c3a libsys.so.7`__sys_thr_kill + 10
    frame #1: 0x00000b0bb9be4f84 libc.so.7`__raise + 52
    frame #2: 0x00000b0bb9c9bf7c libc.so.7`abort + 76
    frame #3: 0x00000b039055f72a
niri`std::sys::pal::unix::abort_internal::h0a88409ea4262509 + 10
    frame #4: 0x00000b039057bfa9 niri`std::process::abort::h831a56a00fc8b4c=
2 +
9
    frame #5: 0x00000b0390567349 niri`__rustc::__rust_abort + 9
    frame #6: 0x00000b0390394bb9 niri`__rustc::__rust_start_panic + 9
    frame #7: 0x00000b039055cd89 niri`__rustc::rust_panic + 9
    frame #8: 0x00000b039055ca75
niri`std::panicking::rust_panic_with_hook::h258e28e59b8ae6d9 + 640
    frame #9: 0x00000b0390562b08
niri`std::panicking::begin_panic_handler::_$u7b$$u7b$closure$u7d$$u7d$::hbe=
2a0ba43379c13f
+ 152
    frame #10: 0x00000b0390562a69
niri`std::sys::backtrace::__rust_end_short_backtrace::h47097eb228dea165 + 9
    frame #11: 0x00000b039055c31c niri`__rustc::rust_begin_unwind + 28
    frame #12: 0x00000b038fb6e8ef
niri`core::panicking::panic_fmt::hcd37a19feafcd42c + 31
    frame #13: 0x00000b038fb65855
niri`core::result::unwrap_failed::h0eb3f6f8825af4e9 + 117
    frame #14: 0x00000b038f9ccfe4 niri`niri::main::h196dbca95170a38d + 76068
    frame #15: 0x00000b038f9a5063
niri`std::sys::backtrace::__rust_begin_short_backtrace::hb76c6cc2b4868104 +=
 3
    frame #16: 0x00000b038f9a379f
niri`std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h6d293d2a4ff99543 +=
 15
    frame #17: 0x00000b0390567a58
niri`std::rt::lang_start_internal::ha495b0d4e58d15e3 + 1128
    frame #18: 0x00000b038f9d5e5a niri`main + 26
    frame #19: 0x00000b0bb9bb7a4b libc.so.7`__libc_start1 + 315
    frame #20: 0x00000b038f999541 niri`_start + 33
  thread #2, name =3D 'niri', stop reason =3D signal SIGABRT
    frame #0: 0x00000b0bd007511a libsys.so.7`__sys_poll + 10
    frame #1: 0x00000b0bbccdc4f1 libthr.so.3`___lldb_unnamed_symbol730 + 49
    frame #2: 0x00000b0bb91050f0 libudev.so.0`___lldb_unnamed_symbol281 + 2=
08
    frame #3: 0x00000b0bbccd0c67 libthr.so.3`___lldb_unnamed_symbol575 + 343
  thread #3, name =3D 'niri', stop reason =3D signal SIGABRT
    frame #0: 0x00000b0bd007511a libsys.so.7`__sys_poll + 10
    frame #1: 0x00000b0bbccdc4f1 libthr.so.3`___lldb_unnamed_symbol730 + 49
    frame #2: 0x00000b0bb91050f0 libudev.so.0`___lldb_unnamed_symbol281 + 2=
08
    frame #3: 0x00000b0bbccd0c67 libthr.so.3`___lldb_unnamed_symbol575 + 343
(lldb) q
%

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



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