Date: Fri, 10 Dec 2021 19:45:33 +1030 From: Daniel O'Connor via freebsd-current <freebsd-current@freebsd.org> To: Marcin Wojtas <mw@semihalf.com> Cc: freebsd-current@freebsd.org, Fabien Thomas <fabien.thomas@stormshield.eu>, MARECHAL Boris <boris.marechal@stormshield.eu>, Rafal Jaworowski <raj@semihalf.com>, Damien DEVILLE <damien.deville@stormshield.eu> Subject: Re: HEADS-UP: ASLR for 64-bit executables enabled by default on main Message-ID: <7101CA73-DCAD-4DEF-9861-C62789D22596@dons.net.au> In-Reply-To: <CAPv3WKc=DUK8ukdqcYNgjxy96CN5kG40-ZO1SxTepUEZDavwpg@mail.gmail.com> References: <CAPv3WKc=DUK8ukdqcYNgjxy96CN5kG40-ZO1SxTepUEZDavwpg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 17 Nov 2021, at 09:00, Marcin Wojtas <mw@semihalf.com> wrote: > As of b014e0f15bc7 the ASLR (Address Space Layout > Randomization) feature becomes enabled for the all 64-bit > binaries by default. Firstly, thank your for your efforts here, it is appreciated :) I am finding that the lang/sdcc port is crashing with a seg fault and = the core dump is no help to me at all: [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] <snip> 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 If I disable ASLR (via proccontrol) then it does not crash, but I am not = sure how I can debug it further. I've raised a bug = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260303 if you (or = anyone else) has suggestions for what to try. Thanks. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7101CA73-DCAD-4DEF-9861-C62789D22596>