From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5302 invoked by alias); 11 Jul 2015 09:10:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5249 invoked by uid 48); 11 Jul 2015 09:10:09 -0000 From: "glaubitz at physik dot fu-berlin.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66780] [4.9 Regression] Compiling with -fstack-protector-strong causes binary to segfault Date: Sat, 11 Jul 2015 09:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg00922.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66780 --- Comment #7 from John Paul Adrian Glaubitz --- (In reply to John Paul Adrian Glaubitz from comment #0) > To reproduce: > > $ wget > http://http.debian.net/debian/pool/main/p/procps/procps_3.3.10.orig.tar.xz > $ tar xf procps_3.3.10.orig.tar.xz > $ cd procps-3.3.10 > $ export CFLAGS="-g -fstack-protector-strong -Wformat > -Werror=format-security" ; export "CXXFLAGS=-g -fstack-protector-strong > -Wformat -Werror=format-security" ; ./configure ; make > $ ./ps/pscommand > Signal 11 (SEGV) caught by lt-pscommand (procps-ng version 3.3.10). > /root/procps/procps-3.3.10/ps/.libs/lt-pscommand:display.c:66: please report > this bug > Segmentation fault > $ Alright, just re-tested this with gcc-4.9_4.9.3+sh4 which I built manually with Kaz' patch applied. The segmentation fault is gone, at least for procps. Will do further testing, just to be safe. Adrian