[HLFS Trac] #1643: uClibc apps segfault with -fstack-protector-all
HLFS Trac
trac at linuxfromscratch.org
Thu Apr 5 21:08:19 MDT 2007
#1643: uClibc apps segfault with -fstack-protector-all
-----------------------------------------+----------------------------------
Reporter: robert at linuxfromscratch.org | Owner: robert at linuxfromscratch.org
Type: defect | Status: new
Priority: highest | Milestone: future
Component: HLFS Book | Version: SVN
Severity: blocker | Keywords:
-----------------------------------------+----------------------------------
After uClibc is installed in chapter 5, and a new GCC is linked to it in
Cocoon (gcc-pass2), and a new program (conftest.c) is compiled with
-fstack-protector-all the new program always does a segfault.
Curiously, Embryo's GCC can link a program to uClibc and compile it with
-fstack-protector-all (after editing the specs to not use -lssp), and it's
fine.
If Cocoon is built with -fno-stack-protector and then installed, new apps
will still segfault.
This may be a bug in how Cocoon-toolchain builds itself, or a bug with
uClibc-snapshot.
I can think of two debugging strategies that I haven't tried... build
Cocoon with Binutils-pass2 installed first, and/or build uClibc with -g3,
and debugging options enabled, and work from there.
--
Ticket URL: <http://wiki.linuxfromscratch.org/hlfs/ticket/1643>
HLFS Trac <http://wiki.linuxfromscratch.org/hlfs>
Hardened Linux From Scratch
More information about the hlfs-book
mailing list