From nobody Tue Sep 5 02:03:41 2023 X-Original-To: ports-bugs@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 4RfphG12K3z4sDyf for ; Tue, 5 Sep 2023 02:03:42 +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 4RfphF6q09z3RY7 for ; Tue, 5 Sep 2023 02:03:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693879422; a=rsa-sha256; cv=none; b=wdFuuGsmulUpcvMJVdf4BE8NHvoTD/FSlkCH6QYNiI4YKplYsOWMWzDx6aDdvBfbEVxf5b MYf3F4nOwMH/QGEC62GlaF6hBEoT3d3TxUd02OTlMqppLOO7lRm5zGAsQxrjFkwfQGDkhx M+GvjUtkDcOhC2ut0FgcNw94xodS9pFljN2IVMxqq1tccbxViBU1T/YDdfjxXn/K37HxtY +V1aWKss2PCMaFGyJNGzrvsdAQeu6VBLZovZUrMy2wNSNzeQAhdOXLORK59RjXpzfVDhWD JSvCcgMtirIsDuycUfEHh7sZWoCajb/TbVlsosuybd1hurcRT3UnZg9CRJ7zTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693879422; 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; bh=NXasBFe4NHf1rouxx0tvc7f9wf1lP+9PZN6UlEfcdrQ=; b=tFcv7tQK5v25ss0cxHJJ1ZKvfsM3juhl1/UlfVptZ7PHgXqewKq+r2k4A6//CSKyVCgFvs rG2yf9+1FRwP237zz66xs3lGHEq9hSkpZEfHsasIDOjuufxni7Ca0CgLdUdM6Xpy+H4UsW 8nSwUl/UUJ3jFDk9F2ezBzAI10vNgb70FE1z3SWkSdEaqkYDuSFFjToKs+gO3V05wY7rId LXTj09yZdYVNJbFiAbMmVtJ3/rax956yzQHbDcKbadIXYV6i0jbFLBHqtUxg0W6OGvhzKQ 1JuZViCr5zXjDVLn+GpJbOP2q4hriprss5grE3cawQNZTrMdj11aT2moh70jxg== 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 4RfphF5p1Xz100 for ; Tue, 5 Sep 2023 02:03:41 +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 38523fJs099831 for ; Tue, 5 Sep 2023 02:03:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38523fKr099829 for ports-bugs@FreeBSD.org; Tue, 5 Sep 2023 02:03:41 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: ports-bugs@FreeBSD.org Subject: [Bug 273573] emulators/pcsx2: unbreak with kern.elf64.allow_wx=0 Date: Tue, 05 Sep 2023 02:03:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: martymac@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273573 Bug ID: 273573 Summary: emulators/pcsx2: unbreak with kern.elf64.allow_wx=3D0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: martymac@FreeBSD.org Reporter: jbeich@FreeBSD.org Assignee: martymac@FreeBSD.org Flags: maintainer-feedback?(martymac@FreeBSD.org) Created attachment 244646 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244646&action= =3Dedit v1 (apply via "git am") $ sysctl kern.elf64.allow_wx=3D0 $ pcsx2-qt [...] Video Dumping Directory: /home/foo/.config/PCSX2/videos Segmentation fault Process 52821 stopped * thread #7, name =3D 'CPU Thread', stop reason =3D signal SIGSEGV: invalid= address (fault address: 0xe4edae0) frame #0: 0x000000082c29c41d libthr.so.3`check_and_init_mutex(mutex=3D0x000000000e4edae0, m=3D0x000000086944ba40) at thr_mutex.c:597:7 594 { 595 int ret; 596 -> 597 *m =3D *mutex; 598 ret =3D 0; 599 if (*m =3D=3D THR_PSHARED_PTR) { 600 *m =3D __thr_pshared_offpage(mutex, 0); (lldb) bt * thread #7, name =3D 'CPU Thread', stop reason =3D signal SIGSEGV: invalid= address (fault address: 0xe4edae0) * frame #0: 0x000000082c29c41d libthr.so.3`check_and_init_mutex(mutex=3D0x000000000e4edae0, m=3D0x000000086944ba40) at thr_mutex.c:597:7 frame #1: 0x000000082c29bb86 libthr.so.3`__Tthr_mutex_lock(mutex=3D0x000000000e4edae0) at thr_mutex.c:75= 3:8 frame #2: 0x000000082ea37289 libc++.so.1`std::__1::mutex::lock() [inlin= ed] std::__1::__libcpp_mutex_lock(__m=3D) at __threading_support:3= 03:10 frame #3: 0x000000082ea37284 libc++.so.1`std::__1::mutex::lock(this=3D) at mutex.cpp:33:14 frame #4: 0x0000000000a2edc7 pcsx2-qt`std::__1::unique_lock::unique_lock(this=3D0x00000= 0086944bcc0, __m=3D0x000000000e4edae0) at __mutex_base:119:61 frame #5: 0x00000000011824fa pcsx2-qt`pxOnAssertFail(file=3D"/wrkdirs/usr/ports/emulators/pcsx2/work/pcs= x2-1.7.4970/pcsx2/System.cpp", line=3D181, func=3D"VirtualMemoryManagerPtr makeMemoryManager(const char *,= const char *, size_t, size_t)", msg=3D"Failed to find a good place for the memory allocation, recompilers may fail") at Assertions.cpp:95:19 frame #6: 0x0000000000b2dcce pcsx2-qt`makeMemoryManager(name=3D"Code Me= mory Manager", file_mapping_name=3D0x0000000000000000, size=3D319815680, offset_from_base=3D335544320) at System.cpp:181:3 frame #7: 0x0000000000b2d9e2 pcsx2-qt`SysMainMemory::SysMainMemory(this=3D0x000018692aa24000) at System.cpp:191:17 frame #8: 0x0000000000b53ead pcsx2-qt`std::__1::__unique_if::__unique_single std::__1::make_unique() at unique_ptr.h:725:32 frame #9: 0x0000000000b4545a pcsx2-qt`VMManager::Internal::CPUThreadInitialize() at VMManager.cpp:347:16 frame #10: 0x00000000007afa74 pcsx2-qt`EmuThread::run(this=3D0x0000186924a11520) at QtHost.cpp:377:7 frame #11: 0x000000082fbce5f5 libQt6Core.so.6`QThreadPrivate::start(this=3D0x000000086944bf68)::$_0::oper= ator()() const at qthread_unix.cpp:321:14 frame #12: 0x000000082fbcd05d libQt6Core.so.6`void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::$_0&&) at qthread_unix.cpp:257:9 frame #13: 0x000000082fbccfbd libQt6Core.so.6`QThreadPrivate::start(arg=3D0x0000186924a11520) at qthread_unix.cpp:280:5 frame #14: 0x000000082c297a7a libthr.so.3`thread_start(curthread=3D0x0000186924a13500) at thr_create.c:29= 2:16 (lldb) f 6 frame #6: 0x0000000000b2dcce pcsx2-qt`makeMemoryManager(name=3D"Code Memory Manager", file_mapping_name=3D0x0000000000000000, size=3D319815680, offset_from_base=3D335544320) at System.cpp:181:3 178 // If it's i386 anything can reach anything so it doesn't matter 179 if (sizeof(void*) =3D=3D 8) 180 { -> 181 pxAssertRel(0, "Failed to find a good place for the memory allocation, recompilers may fail"); 182 } 183 return std::make_shared(name, file_mapping_name, 0, size); 184 } --=20 You are receiving this mail because: You are the assignee for the bug.=