[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: Sat, 27 Jan 2024 18:22:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267606

--- Comment #43 from Sergiy <Black_N@ukr.net> ---
(In reply to Yusuf Khan from comment #42)
Thank you!

I tried but maybe I did something wrong...
I did it like this:
I downloaded the port tree to the virtual machine:
# git clone https://git.FreeBSD.org/ports.git -b 2024Q1 /usr/ports 

I also downloaded
https://xorg.freedesktop.org/archive/individual/drive
r/xf86-video-nv-2.1.22.tar.xz
And unpacked the archive and made the appropriate changes to the file
nv_driver.c (22 insertions) in the appropriate places.

I created xf86-video-nv-2.1.22.tar.xz archive and copied it to
/usr/ports/distfiles/xorg/driver

In the /usr/ports/x11-drivers/xf86-video-nv directory, made changes to the
distinfo file according to the received archive (changed): SHA256.., SIZE...

.. I tried to build the pkg by running:
/usr/ports/x11-drivers/xf86-video-nv # make package
and got xf86-video-nv-2.1.22.pkg

Then transferred it to the laptop.
On the laptop, I deleted the original package xf86-video-nv-2.1.22.pkg, cleared
the cache.
Copied the modified file xf86-video-nv-2.1.22.pkg to /var/cache/pkg and
installed it
root@T0SHA:/var/cache/pkg # pkg add xf86-video-nv-2.1.22.pkg
Accordingly received
/usr/local/lib/xorg/modules/drivers/nv_drv.so

Rebooted.... And...

..
[    52.689] (II) NV(0): Panel is LVDS
[    52.689] (--) NV(0): VideoRAM: 262144 kBytes
[    52.689] (==) NV(0): Using gamma correction (1.0, 1.0, 1.0)
[    52.689] (EE) Segmentation fault at address 0x4c
[    52.689] (EE) 
Fatal server error:
[    52.690] (EE) Caught signal 11 (Segmentation fault). Server aborting
[    52.690] (EE) 

Perhaps this is the result of my activity.
Maybe I'm doing something completely wrong. 
Sorry.

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