[Bug 267606] x11-drivers/xf86-video-nv: Segmentation Fault post update from 1.20.14,1 to 21.1.4

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 17 Jan 2023 22:37:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267606

--- Comment #18 from Sergiy <Black_N@ukr.net> ---
(In reply to Gary Jennejohn from comment #17)
I tried a clean install (FreeBSD-13.1-RELEASE-amd64-dvd1.iso) on Tosha on
another HDD. When installing the system, I turned on including: 
 base-dbg
 kernel-dbg
 lib32-dbg
 lib32
 src
Turned off hardening.

# freebsd-update fetch
# freebsd-update install

Rebooting

# freebsd-version -urk
13.1-RELEASE-p3
13.1-RELEASE-p3
13.1-RELEASE-p5

I downloaded the ports tree from git:
Black_N # git clone https://git.FreeBSD.org/ports.git -b 2023Q1 /usr/ports

I created /etc/make.conf with:
WITH_DEBUG=     yes
DEBUG_FLAGS=    -g -O0

I built and installed from ports:
# cd /usr/ports/x11-servers/xorg-server 
# make install clean
...
# cd /usr/ports/x11-drivers/xf86-video-nv
# make install clean
...
# cd /usr/ports/x11/xorg
# make install clean
...

Checked the file /usr/local/libexec/Xorg
...with debug_info, not stripped

Rebooting and
# startx

Error and create Xorg.core

root@T0sha_db:/home/Black_N # gdb -c Xorg.core
GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd13.1".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
[New LWP 100141]
[New LWP 100143]
Core was generated by `/usr/local/libexec/Xorg :0 -auth /root/.serverauth.984'.
Program terminated with signal SIGABRT, Aborted.
Sent by thr_kill() from pid 997 and user 0.
#0  0x0000000800be433a in ?? ()
[Current thread is 1 (LWP 100141)]
(gdb) bt
#0  0x0000000800be433a in ?? ()
#1  0x0000000800b5cc74 in ?? ()
#2  0x000000000001872d in ?? ()
#3  0x3e8ea16c7145a22c in ?? ()
#4  0x00007fffffffda44 in ?? ()
#5  0x00007fffffffe000 in ?? ()
#6  0x00007fffffffda60 in ?? ()
#7  0x0000000800c0e109 in ?? ()
#8  0x3e8ea16c7145a22c in ?? ()
#9  0x0000000000000000 in ?? ()
(gdb) exit
root@T0sha_db:/home/Black_N # exit

Script done on Tue Jan 17 23:23:01 2023

root@T0sha_db:/home/Black_N # lldb -c Xorg.core
(lldb) target create --core "Xorg.core"
Core file '/home/Black_N/Xorg.core' (x86_64) was loaded.
(lldb) bt
* thread #1, name = 'Xorg', stop reason = signal SIGABRT
  * frame #0: 0x0000000800be433a
    frame #1: 0x0000000800b5cc74
(lldb) q

I don't understand what I did wrong?

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