Bug 103180 - ld dumps core when linking optimized cryptcat
ld dumps core when linking optimized cryptcat
Status: CLOSED RAWHIDE
Product: Red Hat Linux Beta
Classification: Retired
Component: binutils (Show other bugs)
beta1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
: 102775 103885 (view as bug list)
Depends On:
Blocks: CambridgeTarget
  Show dependency treegraph
 
Reported: 2003-08-27 08:41 EDT by Chris Ricker
Modified: 2007-04-18 12:57 EDT (History)
5 users (show)

See Also:
Fixed In Version: 2.14.90.0.5-7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-09-08 04:05:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
cryptcat src rpm (90.63 KB, application/octet-stream)
2003-08-27 08:42 EDT, Chris Ricker
no flags Details

  None (edit)
Description Chris Ricker 2003-08-27 08:41:16 EDT
See attached cryptcat SRPM

On RHL 9, it's fine to rpmbuild -ba 
On severn yum'ed to rawhide, I get the following when building it:

cc -O2 -g -pipe -march=i386 -mcpu=i686 -c twofish2.cc
cc -O2 -g -pipe -march=i386 -mcpu=i686 -s         -DLINUX  -o cryptcat netcat.c
farm9crypt.o twofish2.o -lstdc++
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[1]: *** [cryptcat] Error 1

If I edit the spec file and change the line

make CFLAGS="$RPM_OPT_FLAGS" linux

to

make linux

then it compiles on rawhide, so it's only a problem when optimizing the code....
Comment 1 Chris Ricker 2003-08-27 08:42:11 EDT
Created attachment 93971 [details]
cryptcat src rpm
Comment 2 Chris Ricker 2003-08-27 12:22:59 EDT
Hmm, it's not an optimization issue after all, but the debugging info. The
problem is the -g that RPM_OPT_FLAGS adds.

cc -O2 -pipe -march=i386 -mcpu=i686 -s         -DLINUX  -o cryptcat netcat.c
farm9crypt.o twofish2.o -lstdc++

compiles just fine

cc -O2 -g -s -DLINUX -o cryptcat netcat.c farm9crypt.o twofish2.o -lstdc++

blows up when linking

this is

binutils-2.14.90.0.5-5
glibc-2.3.2-71
gcc-3.3.1-2

on an athlon
Comment 3 Chris Ricker 2003-08-27 12:33:00 EDT
Just yum'ed to today's rawhide

still true with glibc-2.3.2-78
Comment 4 Michael Lee Yohe 2003-08-28 12:17:21 EDT
I also get this whilst attempting to compile Rawhide man.
Comment 5 Michael Schwendt 2003-09-02 16:12:40 EDT
Same with svgalib from Fedora package request queue:

collect2: ld terminated with signal 11 [Segmentation fault]

* binutils-2.14.90.0.5-6 from Severn Updates (9.0.93-4)

The older binutils-2.14.90.0.4-19 from original Severn doesn't have that problem.
Comment 6 Jakub Jelinek 2003-09-08 04:03:43 EDT
*** Bug 103885 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Jelinek 2003-09-08 04:05:42 EDT
Should be fixed in 2.14.90.0.5-7.
Comment 8 Jakub Jelinek 2003-09-08 05:24:50 EDT
*** Bug 102775 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.