From nobody Sun May 12 17:13:53 2024 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 4Vcq396Wnpz5KND5 for ; Sun, 12 May 2024 17:13:57 +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 4Vcq394fR0z4YdW for ; Sun, 12 May 2024 17:13:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715534037; a=rsa-sha256; cv=none; b=PDXtLeLXqdy6UFUN1bG5lZ4cWsJL8h+YhOSjEtlmNCu/JuRzGvFGcCNz6LAj4WxVKaTEMN jeGc41IZgRVVX63q0dDjUDMQaKhZKuXJGBtLJoc6Y/TdMZVd3jX9qt45lLUQ0X+NGm56xg P+JHcGnpQul+KXZQhCz/hsqIKFpz7QzZt17meFGYZYjQVu6c3fIXHNaK/vk2N4jDGFhhQg fZADagBIDDm5dqiA7ryvI8qtQJCS++ku7wAfhIk0EPvhf5E15CZ/OcHPMBATJuz+pVDg1X On93FsNAwglVv0EdTUfG4V6wdQhpWpiA/7h6UsQYRbnsG3vW4brv5kHhIoGE3Q== 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=1715534037; 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=N7ga+8qtyyzyt1TaKwl97GyeVaAymD6As+DPiCNn4Xk=; b=OZw1KHGpDZuAA6XwmR94IXiY81E/+QA074Ul6c0difpMiFgjmMZowe/aiqy+UmJP7ahJKp rqlJupDxyhCbGjSdLKwJWq/Eps/vXu/mHJ0U159psQWle+hi6UgS8C9ecapHOEbXyqnS3c LdN9DcFZjbdY163llzQVt49h4UOD7qYq5fc76eYYm7Q2isQrkORqeD7ez2adMwR2c6Nwhu mFkQNRm0owJ/mKdU0OqbcXKGUzKQN1c5K/vmLpQPXiW8CjXxCp5unmOjB1YS9MJgczSkw7 4dcSUS3frf2R13TFumsVdKSdMAtLcyQVgGLf4wFUGnh/hbsYHOVKJ70yzz18iQ== 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 4Vcq394G9kz1CJC for ; Sun, 12 May 2024 17:13:57 +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 44CHDvX0076969 for ; Sun, 12 May 2024 17:13:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44CHDv5q076967 for ports-bugs@FreeBSD.org; Sun, 12 May 2024 17:13:57 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 278939] comms/wsjtx: jt9 crash during decode because of non-executable stack Date: Sun, 12 May 2024 17:13:53 +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: jeffpc@josefsipek.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hamradio@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 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: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278939 Bug ID: 278939 Summary: comms/wsjtx: jt9 crash during decode because of non-executable stack Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: hamradio@FreeBSD.org Reporter: jeffpc@josefsipek.net Flags: maintainer-feedback?(hamradio@FreeBSD.org) Assignee: hamradio@FreeBSD.org I freshly installed FreeBSD 14.0 and updated it to 14.0-RELEASE-p6. After a `pkg install wsjtx`, wsjtx (2.5.4_10) starts up fine but the jt9 helper pro= cess (used to decode FT4 & FT8 among other modes) terminates because of a SIGBUS= .=20 (That is, wsjtx runs fine collecting the rx audio, but at the end of the interval (e.g., 15s for FT8) it spawns jt9 to process it.) I rebuilt the wsjtx port which didn't help. However, using the unstripped binary led me to the following stack trace: (lldb) bt * thread #1, name =3D 'jt9', stop reason =3D signal SIGBUS * frame #0: 0x0000000820c4a2e8 frame #1: 0x0000000000249e03 jt9`__ft8_decode_MOD_decode + 4931 frame #2: 0x00000000002412e2 jt9`multimode_decoder_ + 4546 frame #3: 0x0000000000238c4e jt9`jt9a_ + 814 frame #4: 0x00000000002381ce jt9`MAIN__ + 7038 frame #5: 0x000000000023890f jt9`main + 31 frame #6: 0x000000082a852afa libc.so.7`__libc_start1 + 298 frame #7: 0x00000000002365e0 jt9`_start at crt1_s.S:83 On a hunch, I started disabling security related sysctls which "fixed" the SIGBUS crash. Specifically, I mucked with kern.elf64.aslr.enable. & kern.elf64.nxstack. aslr=3D1 & nxstack=3D1 --> crash (this is the default on the system) aslr=3D0 & nxstack=3D1 --> crash aslr=3D0 & nxstack=3D0 --> wsjtx works as expected I didn't try aslr=3D1 & nxstack=3D0 because I was too busy trying to use ws= jtx to make contacts (to see if there were any other issues - I haven't found any). --=20 You are receiving this mail because: You are the assignee for the bug.=