[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: Thu, 22 Dec 2022 14:53:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267606

--- Comment #9 from Sergiy <Black_N@ukr.net> ---
(In reply to Gary Jennejohn from comment #8)

Thank You!

I also tried another way that I found on the FreeBSD forum. This is a small
chance:

# lldb /usr/local/libexec/Xorg
r
[wait for segfault]
bt

But after entering the command:
r
everything freezes, the screen shows a white cursor, and a white mouse arrow in
the center of the screen, the keyboard and mouse do not respond…
I had to turn off the computer with the power button.

The pre-run ʼscriptʼ saved the following information:

Script started on Thu Dec 22 12:47:23 2022
root@T0SHA:/home/Black_N # lldb /usr/local/libexec/Xorg
(lldb) target create "/usr/local/libexec/Xorg"
Current executable set to '/usr/local/libexec/Xorg' (x86_64).
(lldb) r
Process 1026 launched: '/usr/local/libexec/Xorg' (x86_64)

X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
Current Operating System: FreeBSD T0SHA.local.info 13.1-RELEASE-p3 FreeBSD
13.1-RELEASE-p3 GENERIC amd64

Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 22 12:48:06 2022
(==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
Process 1026 stopped
* thread #1, name = 'Xorg', stop reason = signal SIGSEGV: invalid address
(fault address: 0x0)
    frame #0: 0x00000008007c1dec libc.so.7`strcmp + 60
libc.so.7`strcmp:
->  0x8007c1dec <+60>: movq   0x8(%rdi), %rax
    0x8007c1df0 <+64>: addq   $0x8, %rdi
    0x8007c1df4 <+68>: movq   0x8(%rsi), %rdx
    0x8007c1df8 <+72>: addq   $0x8, %rsi
(lldb) $ 

That's all I got...

Yes, gdb at such a start reports:
(No debugging symbols found in /usr/local/libexec/Xorg)

And:
Script started on Thu Dec 22 15:15:59 2022
root@T0SHA:/home/Black_N # gdb /usr/local/libexec/Xorg
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"...
Reading symbols from /usr/local/libexec/Xorg...
(No debugging symbols found in /usr/local/libexec/Xorg)
(gdb) cont
The program is not being run.
(gdb) run
Starting program: /usr/local/libexec/Xorg 
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
[New LWP 100146 of process 1048]

X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
Current Operating System: FreeBSD T0SHA.local.info 13.1-RELEASE-p3 FreeBSD
13.1-RELEASE-p3 GENERIC amd64

Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 22 15:16:48 2022
(==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/local/share/X11/xorg.conf.d"

Thread 1 received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0x00000008007c1dec in strcmp () from /lib/libc.so.7
(gdb) $ 

P.S. X.Org was released: 
xorg-server-21.1.5     2022-12-14

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