Received: from fforwardh-b1-smtp.messagingengine.com (fforwardh-b1-smtp.messagingengine.com [202.12.124.196]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id E04672237D3 for <~alpine/devel@lists.alpinelinux.org>; Tue, 18 Mar 2025 22:31:18 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfforwardh.stl.internal (Postfix) with ESMTP id 70A33174017A; Tue, 18 Mar 2025 18:31:17 -0400 (EDT) Received: from phl-imap-12 ([10.202.2.86]) by phl-compute-05.internal (MEProxy); Tue, 18 Mar 2025 18:31:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1742337077; x=1742423477; bh=K megNJaaAyhq8XlgeI8dSv0kb2R7eNtIZb4weKzf63o=; b=Hkn6XSrNxTkd00uFr 0LJhLygYvlYetYzbYnnlkSvpan/SutVfsG4rYQ6R/BZxu00zX/IGJ169S4UCAC7O vnnYDSEcyydeOF4B3QTb+ISxXSLKOCIN9IsYDVOqYmYktjCcQlDBThaIplXRGYLW by/E/byKWNvrsOR1qOApyJbsh9R8A0d8qKbp+PzdEgXPwlzpRHSNZv4z9VmM+cUG ibuLd/dhEpxtOajywURBv4IPd+KT4xl+6EcCtOSwIleE9qDHx/1/RPj6ezH2D5qB 2Fv4S3DNf/b8kKJTak8QPFN4eRgB25JTBqQj+dsMlbLgnS762oxgleBGRUaxepkF KGc1Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeefieegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefogg ffhffvkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedflfhimhcurfhrhihorhdf uceoughusghiohhushhjihhmsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpe efteelueelhfetveefvddtteeuhedvheekteehtedtgefftedtieegkeeujedvjeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguuhgsihhouh hsjhhimhesghhmrghilhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhht phhouhhtpdhrtghpthhtohepmigrlhhpihhnvgdsuggvvhgvlheslhhishhtshdrrghlph hinhgvlhhinhhugidrohhrghdprhgtphhtthhopehsvghrthhonhhigiesphhoshhtvgho rdhnvght X-ME-Proxy: Feedback-ID: i5b2c416c:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id ADED61C20066; Tue, 18 Mar 2025 18:31:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: T3dbfd3abeb6d0148 Date: Tue, 18 Mar 2025 18:30:56 -0400 From: "Jim Pryor" To: Sertonix , ~alpine/devel@lists.alpinelinux.org Message-Id: <8c748e1c-78a2-4073-9d19-32501607d7e9@app.fastmail.com> In-Reply-To: References: <30674376-d675-4c1d-96ef-7afb88a0dabb@app.fastmail.com> Subject: Re: stack smashing protection? Content-Type: text/plain Content-Transfer-Encoding: 7bit On Tue, Mar 18, 2025, at 5:43 PM, Sertonix wrote: > Do you have any small command that can reproduce the issue? > > I tried gcc -o main main.c -fstack-protector-all with a simple test file > and it build fine. Unfortunately I don't have a minimal reproduction. For me the failure came when building the examples/features2 and examples/features3 files in the micropython source tree. This requires having a significant part of the micropython source tree installed (for included headers and makefile pieces). Also the linking is done by the tools/mpy_ld.py file, which uses CPython and the py3-elftools library. So a whole lot of infrastructure. I expect there'd be some way to get a smaller reproduction, but I'm not able to produce it now. I can build the other example Python C libraries (which the mpy_ld.py tool links into *.mpy files) besides those two, without disabling stack protection. And if I disable stack protection I can build all of them. -- dubiousjim@gmail.com