From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: Re: mc 4.8.19: segfaults while searching for contents Date: Wed, 04 Oct 2017 18:34:19 +0200 Message-ID: In-Reply-To: <1507131692.433.10.camel@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8415007652772346989==" List-Id: --===============8415007652772346989== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 04.10.2017 17:41, Michael Tremer wrote: > Hi, Hello, > this doesn't have anything to do with PaX. It's just a bug in mc. > > Probably has this problem with files that have the SUID bit set?! Perhaps. Will look at this when I have the time again. > Did you try to update mc? I tested with several versions and clean compilations - its always the same. On the 'Devel' machine (Ubuntu, mc 4.8.15, no PaX) everything works. Best, Matthias > -Michael > > On Tue, 2017-10-03 at 09:24 +0200, Matthias Fischer wrote: >> Hi, >> >> On 03.10.2017 08:50, Matthias Fischer wrote: >> > ... >> > >> > Suddenly 'mc 4.8.19' starts throwing segfaults... >> > >> > ... >> >> This is weird. >> >> As soon as directory (e.g. '/usr/local/bin') contains the file >> 'ipfirereboot', 'mc' crashes while searching for content 'flush' (e.g.). >> >> Thus, I would say, 'mc' has problems searching in (specific) binaries - >> searching in '/usr/bin' has the same effect. >> >> And: >> >> The following 'paxctl'-options had NO effect: >> >> ... >> root(a)ipfire: /usr/bin # paxctl -v /usr/bin/mc >> PaX control v0.9 >> Copyright 2004,2005,2006,2007,2009,2010,2011,2012,2014 PaX Team >> >> >> - PaX flags: -p-s-m-x-e-- [/usr/bin/mc] >> PAGEEXEC is disabled >> SEGMEXEC is disabled >> MPROTECT is disabled >> RANDEXEC is disabled >> EMUTRAMP is disabled >> ... >> >> Searching in text-only files is ok, but as soon as directory contains >> the above file (or something similar), 'mc' crashes. >> >> This does NOT happen on my devel with 'mc 4.8.15'... ;-) >> >> Best, >> Matthias > --===============8415007652772346989==--