From nobody Wed Dec 28 23:31:11 2022 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nj77h1HJRz2cL4f for ; Wed, 28 Dec 2022 23:31:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nj77g6rtTz3RDH for ; Wed, 28 Dec 2022 23:31:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672270272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VIFFupirAUxjH8Og36mXfPPhCdTmqmnPRBkcQvRSThg=; b=B7x9kQ1UQJl4yQqeyqHMsIxfVr321X+3EHuijv/GgdcnecqRzTacliS87kQld9K3QDQ2NA USyF1bbqAkw7H3CJPCZkH8roPyAMpG/V3ix5fsKgraPSg8CdKAR1L3lDzSyFIGD4kTV/9S gWRMJG/JY06GrTmCor3789QDf6TnrApDGtb6s8TkE52bIgCRBQt5B/IDw/qqXePrBhQoYq hyegqIh+jah8Lt+4OCkG4SaXBh+Gfyh7SqZyS0FdoWqZ94a2XhFeJnhUCyXMqOa6GQfeIr r2FHWs0wvP2kHhh3FXTkuAWajFvljVwZuQLUFJzLBcxvk35PLNVsRebxVHyxnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672270272; a=rsa-sha256; cv=none; b=QVGOAMYMfpG69sg5QvuOwvF1JdTV4oQcNi9s2L8u385q7/6HEE5xfTa/KXuhcbgFOGP8uA 8PlL3xKR422w4GuekitRIulULQFwuZMmns/HsQ+LQk268tgIRqxmDK0TO4oyEGhaeGFvtl y1O2843dd5OuZuEjkmANhLul6q82ypMUjAP/woVYamBsRpqIN4coTBOhlVoiR/CNBfhTwF EETebnKf4TSzMfrHj46zWT9ehjtpLIu6PiyMwmIJolZ2B8+jz4LtCm23J5OndcI1hH6iMQ iHchGjJQjA0hPv4wr7IiQZDmVysuAo0ESaCLWEhtNWxg/itXjnmraF8cybTo2g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Nj77g5wLTz16gc for ; Wed, 28 Dec 2022 23:31:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BSNVBfW090975 for ; Wed, 28 Dec 2022 23:31:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BSNVBlX090939 for x11@FreeBSD.org; Wed, 28 Dec 2022 23:31:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 267606] x11-drivers/xf86-video-nv: Segmentation Fault post update from 1.20.14,1 to 21.1.4 Date: Wed, 28 Dec 2022 23:31:11 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Black_N@ukr.net X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267606 --- Comment #11 from Sergiy --- (In reply to Gary Jennejohn from comment #10) Thanks for the tips. I decided to try the first way. But first I created a special virtual machi= ne for training on another x64 PC. There were various try... I downloaded the ports tree from git and tried=20 with quarterly:=20 Black_N # git clone https://git.FreeBSD.org/ports.git -b 2022Q4 /usr/ports= =20 and with HEAD:=20 Black_N # git clone https://git.FreeBSD.org/ports.git /usr/ports=20 But I only got compilation errors At first I added CFLAGS+=3D-g to the Makefile each time. Then created /etc/make.conf with: WITH_DEBUG=3D yes DEBUG_FLAGS=3D -g -O0 After six unsuccessful attempts to compile xorg-server with debug symbols, a miracle finally happened for the seventh time. (After install: # pkg install ninja meson re2c ) And quarterly branch of the ports tree: root@debug_sys:/home/Black_N # git clone https://git.FreeBSD.org/ports.git = -b 2022Q4 /usr/ports root@debug_sys:/home/Black_N # cd /usr/ports/x11-servers/xorg-server root@debug_sys:/usr/ports/x11-servers/xorg-server # ls -lap total 96 drwxr-xr-x 3 root wheel 512 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 ./ drwxr-xr-x 9 root wheel 512 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 ../ -rw-r--r-- 1 root wheel 168 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 distinfo drwxr-xr-x 2 root wheel 1024 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 files/ -rw-r--r-- 1 root wheel 4034 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 Makefile -rw-r--r-- 1 root wheel 172 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 pkg-desc= r-xephyr -rw-r--r-- 1 root wheel 78 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 pkg-desc= r-xnest -rw-r--r-- 1 root wheel 101 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 pkg-desc= r-xorg -rw-r--r-- 1 root wheel 90 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 pkg-desc= r-xvfb -rw-r--r-- 1 root wheel 1054 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 pkg-mess= age -rw-r--r-- 1 root wheel 4719 28 =D0=B3=D1=80=D1=83=D0=B4. 15:07 pkg-plist root@debug_sys:/usr/ports/x11-servers/xorg-server # cat distinfo TIMESTAMP =3D 1659367891 SHA256 (xorg-server-21.1.4.tar.xz) =3D 5cc4be8ee47edb58d4a90e603a59d56b40291ad38371b0bd2471fc3cbee1c587 SIZE (xorg-server-21.1.4.tar.xz) =3D 4940176 root@debug_sys:/usr/ports/x11-servers/xorg-server # make WRKDIRPREFIX=3D/home/Black_N/test_xorg And as a result: $ file /home/Black_N/test_xorg/usr/ports/x11-servers/xorg-server/work-xorg/stage/u= sr/local/libexec/Xorg /home/Black_N/test_xorg/usr/ports/x11-servers/xorg-server/work-xorg/stage/u= sr/local/libexec/Xorg: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 13.1, FreeBSD-style, with debug_info, not stripped Then I transferred it to the Tosha using tar. Maybe I did something wrong... I disabled hardening again. I configured using the file in /usr/local/etc/X11/xorg.conf.d nv driver, instead of vesa, rebooted... I got a PC without X. I removed all Xorg.core. Tried running: root@T0SHA:/home/Black_N # exec /home/Black_N/test_xorg/usr/ports/x11-servers/xorg-server/work-xorg/stage/u= sr/local/libexec/Xorg A new Xorg.core file is created. I executed/got: Script started on Wed Dec 28 23:12:05 2022 root@T0SHA:/home/Black_N # gdb -c /home/Black_N/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 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". [New LWP 100141] [New LWP 100142] Core was generated by `/usr/home/Black_N/test_xorg/usr/ports/x11-servers/xorg-server/work-xorg/st= age/us'. Program terminated with signal SIGABRT, Aborted. Sent by thr_kill() from pid 1034 and user 0. #0 0x000000080087733a in ?? () [Current thread is 1 (LWP 100141)] (gdb) bt #0 0x000000080087733a in ?? () #1 0x00000008007efc74 in ?? () #2 0x000000000001872d in ?? () #3 0x149c2d2ac447088c in ?? () #4 0x00007fffffffdab4 in ?? () #5 0x00007fffffffe070 in ?? () #6 0x00007fffffffdad0 in ?? () #7 0x00000008008a1109 in ?? () #8 0x149c2d2ac447088c in ?? () #9 0x0000000000000000 in ?? () (gdb) exit Before this, I also tried to run the resulting Xorg from under lldb and gdb, but when running this way, everything freezes as expected and Xorg.core is = not created. When running like this, the message in gdb disappeared (No debugging symbols found in ...) --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=