From nobody Fri Dec 10 07:28:25 2021 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 4325B18D9AD1 for ; Fri, 10 Dec 2021 07:28:26 +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 4J9MvY6ybKz4RFf for ; Fri, 10 Dec 2021 07:28:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 C549F16809 for ; Fri, 10 Dec 2021 07:28:25 +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 1BA7SPCw079372 for ; Fri, 10 Dec 2021 07:28:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BA7SPcC079371 for ports-bugs@FreeBSD.org; Fri, 10 Dec 2021 07:28:25 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 260303] lang/sdcc: seg fault during build (ASLR fallout) Date: Fri, 10 Dec 2021 07:28:25 +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: darius@dons.net.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639121306; 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=pV6AQqReNFfjG9Qq+RvJ1vmNjOabwKqL2dTK4HZffsk=; b=WkIU6Bk7HUmhlKX9v2+YGtsFBFvjt+fXC/QrLtkGY5dTZkRQG5IAo+BKEVoC7UOGETGmAG U588qNeSc/UzbnxlUt0DS8IEk+NideZ+iMcpL5bBlLujsjBiWf5gDw0jv/XVAfrKSZ/CLX lxD9GmIohSQwtA3WXZEJ4R7LV/MCWR/CnWENOSZUYK8KjAYX0lFQVUzGwJ09CRqMtF4sXs tFrxNMTFHFB3ZWVoqC3Uz34fIA1OTj9zEyc6eo83+E/chs1xiJEBBwzVamiMBvrWCocr27 3OJHJL2X1J8A1JlLrDuPN61epKXI+oDtKuH3lL9EQnoHDmGDphNj3ZGjMuF7DQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639121306; a=rsa-sha256; cv=none; b=AM3QcOS4ND8D2Ru/G505uCvJFdZI4tn2sJ4U5hx4vwPIPJFVcWaHHN6aX7foKb8VznHerW ZffGIlXw+TToBCmLdhVGgrVKkGmnNBiWTGIqM0P/VGxAAarVTWe2mMOx6k34e3XYOQumd3 mR2TZwJ9mCbUv5eeZlygSPYtM9YHSMU6RLOztbxCA/kKIfaeKrmcnq4pKS0q00riA5xBZu 4uxOQ47ysQzptMSLIvyJ66i+h4jTBt/fQpW2f2JagW+q0Xvr+3Z2aqoweWcDuMO2fQLUIF iy5Tg2MnBSmN/Us5zdlQ0GSbbMkNZEOZfKvOKeerfOixAnu3UiyiXlIUILpElg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260303 Bug ID: 260303 Summary: lang/sdcc: seg fault during build (ASLR fallout) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: darius@dons.net.au I got a notice from a port builder it was crashing and reproduced the probl= em in a VM. It crashes at: ../../bin/sdcc -I../../device/include -I../../device/include/mcs51 -mds3= 90 --nostdinc --std-c11 -c _schar2fs.c -o ds390/_schar2fs.rel It appears to be caused by ASLR - with it disabled via proccontrol the above command runs reliably all the time, without it crashes ~90% of the time. I had a look at the core dumb but it seems quite uninformative: [freebsd14 7:06] /usr/ports/lang/sdcc/work/sdcc-4.0.0/device/lib >sudo gdb ../../bin/sdcc sdcc.core GNU gdb (GDB) 11.1 [GDB v11.1 for FreeBSD] Copyright (C) 2021 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-freebsd14.0". 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"... Reading symbols from ../../bin/sdcc... [New LWP 100122] Core was generated by `../../bin/sdcc -I../../device/include -I../../device/include/mcs51 -mds390 --nos'. Program terminated with signal SIGSEGV, Segmentation fault. Invalid permissions for mapped object. #0 0x0000000804e3fbc0 in setrlimit () from /lib/libc.so.7 (gdb) info thread Id Target Id Frame * 1 LWP 100122 0x0000000804e3fbc0 in setrlimit () from /lib/libc.= so.7 (gdb) bt #0 0x0000000804e3fbc0 in setrlimit () from /lib/libc.so.7 Backtrace stopped: Cannot access memory at address 0x7fffff87fd08 quit) --=20 You are receiving this mail because: You are the assignee for the bug.=