From nobody Thu Oct 05 06:51:01 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 4S1Mdy15q1z4wZ1K for ; Thu, 5 Oct 2023 06:51:02 +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 4S1Mdx5q2mz4Pp0 for ; Thu, 5 Oct 2023 06:51:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696488661; a=rsa-sha256; cv=none; b=G0TJymLMHO7ODcm5PnP/JdHaEZp4rIcZ6z9dCtHkE/I8Qi7PMB7+CtebsZmRKR9kT23gsS VBO87nHw/NnRXvNWvvnYBZFig5pPpLOkoxeWT6X9nwjg8B0tc10frMc54FvJWYb46NYJfb agFLsy07jx1I3EQAKS9JUDnnIUwA9CdvtxgUW3zzpcycl4w1W3xbvYeuWQcsKJJVMP2NQH sRcJaMoEUhzMxieIsGohCdIpwa/msCLbdtG6opYrVnASYDmxo2LbQZGpclkPrH9ldFm+Z1 mxM0vJFJDMQyQrJs7vaUXDxhCEmAO67GLs9KSa1gERZxfq0RworqaYZk4EjwSg== 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=1696488661; 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=eHidbBTSSjRcy1QnbGlQzejPf0gOOb4CggSqs3SRNFY=; b=GH0FnN7sBpif73yFjpcIMlqulyUjeaebKEk0FpXIEl2WTOLZNvcBHH51SowKJGxfx3fIPF vGjZw4+vPCeY7ZtI2XvAFlCd2TdXq9HqUIRnXnTehzsiz2c4lyPrzdKo75I7eMJm56ZfNK aS94zZBkqzzmKm0WT9WeUu4WRx6w1tm7QjBHPgjtzKq/cbneBKY6twH5SJ6GnXTd+d+87l huepRlG/SWxoNsDjESZtqwRP3MhSW1tBS41JigBjHE1QNEn4EdjjEph/Z4obaV9A/leCw3 CaD+oDZP/rl3kd6rq8iZjZizCY8YLf2wX/L9AplT+a4NTgnniL3sz4BZCgYN0g== 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 4S1Mdx4tWjz198W for ; Thu, 5 Oct 2023 06:51:01 +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 3956p14v079942 for ; Thu, 5 Oct 2023 06:51:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3956p1I6079941 for ports-bugs@FreeBSD.org; Thu, 5 Oct 2023 06:51:01 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 274211] lang/tcc: Crashes with SIGSEGV on 14.x / 15.0-CURRENT when compiling hello world Date: Thu, 05 Oct 2023 06:51:01 +0000 X-Bugzilla-Reason: AssignedTo 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: pjfloyd@wanadoo.fr X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: 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: 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=3D274211 --- Comment #4 from Paul Floyd --- As I see it there are 2 possible fixes. At the crash if (sh->sh_type =3D=3D SHT_RELX) { s->sh_info =3D sm_table[sh->sh_info].s->sh_num; sh is referring to section header 4 for which a new section was created. sh->sh_info refers to section header 3 which got skipped. So either the above code needs changing to something like if (sh->sh_type =3D=3D SHT_RELX) { if (sm_table[sh->sh_info].new_section) { s->sh_info =3D sm_table[sh->sh_info].s->sh_num; Or section header 3 needs to be handled so that sm_table[3] has been initialized. Trying the easy one as above, I get lots of errors in /usr/include/sys/_typ= es.h because it seems like tcc does not know the size of any builtin types. I also tried "hello world" on FreeBSD 13.2 amd64 and it compiled but the exe coredumps between _start() and main(). From what I see in the port git history there was a code fix back in 2015. Otherwise totally dead. In the github history a lot has changed. I don't think that it is worth trying to patch the ports version 0_9_26. It would probably be easier to switch to the upstream 9.28 --=20 You are receiving this mail because: You are the assignee for the bug.=