[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: Sun, 22 Jan 2023 22:34:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267606

--- Comment #29 from Sergiy <Black_N@ukr.net> ---
(In reply to Gary Jennejohn from comment #28)
Yes, I was thinking about going back.
My /var/cache/pkg on Tosha didn't save the older xorg-server...
I have /var as a separate partition (6GB) and it cleaned often... That's
something I'll have to consider in the future.
It is theoretically possible to find an older xorg-server in the ports tree on
git.FreeBSD.org, for example -b 2022Q3 — xorg-server-1.20.14.tar... And create
the appropriate pkgs and perform their locking...
Although mixing old and new is maybe not very good.

Tried running X with vesa driver on Tosha_db to get Xorg.log and compare it
with Tosha's Xorg.log. There are certain differences,
Entries that litter the log appear:
...
halt_sys: file ../hw/xfree86/x86emu/ops.c, line 10469
halted
...
Maybe something is missing when installing from the ports, it was my mistake,
it was necessary to check on vesa from the very beginning.
There are also entries that litter the log file:
...
input-thread: InputThreadDoWork waiting for devices
...
Although when startx starts TWM window manager and it works fine.


I tried to build the xf86-video-nv-2.1.22 driver and the make was successful,
although I may have created some kind of “frankenstein” without knowing what I
was doing...
I looked at the various version histories (git.FreeBSD.org, and X.org)
I took the Tosha_db files from the directory as a basis
/usr/ports/x11-drivers/xf86-video-nv

I copied them into xf86-video-nv-devel.
And there I edited the files:

distinfo
TIMESTAMP = 1484715801
I left it unchanged because he will quarrel later
SHA256 (xorg/driver/xf86-video-nv-2.1.22.tar.bz2) =
8a855f9a774ad28efc2e54177c05ecf7a2c8ea3380dbf9a80947fca56bb55fa7
With this entry, there is a peculiarity that X.org abandoned .bz2 compression
for version xf86-video-nv-2.1.22 in favor of .xz.
First I pointed out
SHA256 (xf86-video-nv-2.1.22.tar.xz) =
6218932db5c389878d853b11b8fbb667c321b65276f55aa6842a56fb1a30d288
but when creating it, for some reason it wanted .bz2, although it may have
seemed to me.
So I created the archive xf86-video-nv-2.1.22.tar.bz2. So that it is not
searched for when building on X.org, I put it in
/usr/ports/distfiles/xorg/driver/
SIZE (xorg/driver/xf86-video-nv-2.1.21.tar.bz2) = 354708
accordingly its size

in Makefile changed only
PORTVERSION= 2.1.22
...
removed the installed driver
# cd /usr/ports/x11-drivers/xf86-video-nv
# make uninstall

then moved the contents of xf86-video-nv-devel to
/usr/ports/x11-drivers/xf86-video-nv.

Tested beforehand
# /usr/ports/x11-drivers/xf86-video-nv # make
WRKDIRPREFIX=/home/Black_N/test_nv

And
# cd /usr/ports/x11-drivers/xf86-video-nv
# make install clean

But the miracle did not happen... The behavior is the same
Startx creation of Xorg.core.
Maybe I did something wrong...
Xorg.log scripts gdb lldb bt Xorg.core files are available but are they useful
here? After all, they are not very relevant to the topic.

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