* binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)
@ 2017-12-11 14:28 Rolf Eike Beer
2017-12-11 15:19 ` Nick Clifton
0 siblings, 1 reply; 6+ messages in thread
From: Rolf Eike Beer @ 2017-12-11 14:28 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]
The compiler is gcc 6.4.0. Switching to binutils 2.28.1 makes things work.
castor /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4 # sparc-
unknown-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-
z,relro,-z,now -O2 -mcpu=niagara2 -pipe -Wl,-O1 -Wl,--as-needed -o
cifs.upcall cifs.upcall.o data_blob.o asn1.o spnego.o -ltalloc -lkeyutils -
lkrb5
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
castor /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4 # sparc-
unknown-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -Wl,-z,relro,-
z,now -O2 -mcpu=niagara2 -pipe -Wl,-O1 -Wl,--as-needed -o cifs.upcall
cifs.upcall.o data_blob.o asn1.o spnego.o -ltalloc -lkeyutils -lkrb5
castor /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4 #
(gdb) bt
#0 0xf7d8d4e4 in free () from /lib/libc.so.6
#1 0xf7f89f3c in objalloc_free () from /usr/lib/binutils/sparc-unknown-linux-
gnu/2.29.1/libbfd-2.29.1.so
#2 0xf7f00ea4 in ?? () from /usr/lib/binutils/sparc-unknown-linux-gnu/2.29.1/
libbfd-2.29.1.so
--
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055
emlix – smart embedded open source
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)
2017-12-11 14:28 binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc) Rolf Eike Beer
@ 2017-12-11 15:19 ` Nick Clifton
2017-12-11 15:40 ` Rolf Eike Beer
2017-12-12 10:49 ` Rolf Eike Beer
0 siblings, 2 replies; 6+ messages in thread
From: Nick Clifton @ 2017-12-11 15:19 UTC (permalink / raw)
To: Rolf Eike Beer, binutils
[-- Attachment #1.1: Type: text/plain, Size: 893 bytes --]
Hi Rolf,
Please could you open a bug report about this. The URL is:
https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
> castor /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4 # sparc-
> unknown-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-
> z,relro,-z,now -O2 -mcpu=niagara2 -pipe -Wl,-O1 -Wl,--as-needed -o
> cifs.upcall cifs.upcall.o data_blob.o asn1.o spnego.o -ltalloc -lkeyutils -
> lkrb5
> collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
It will really help if you are able to provide a self-contained way to
reproduce this bug. Failing that, please could you capture the linker
command line generated by sparc-unknown-linux-gnu-gcc and include it in
the report, along with a compressed tarball of the cifs.upcall.o,
data_blob.o, asn1.o and spnego.o objecy files.
Cheers
Nick
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)
2017-12-11 15:19 ` Nick Clifton
@ 2017-12-11 15:40 ` Rolf Eike Beer
2017-12-12 1:04 ` Alan Modra
2017-12-12 10:49 ` Rolf Eike Beer
1 sibling, 1 reply; 6+ messages in thread
From: Rolf Eike Beer @ 2017-12-11 15:40 UTC (permalink / raw)
To: binutils
[-- Attachment #1.1: Type: text/plain, Size: 2844 bytes --]
Am Montag, 11. Dezember 2017, 16:19:07 CET schrieb Nick Clifton:
> Hi Rolf,
>
> Please could you open a bug report about this. The URL is:
>
> https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
Will do tomorrow.
> > castor /var/tmp/portage/net-fs/cifs-utils-6.4/work/cifs-utils-6.4 #
> > sparc-
> > unknown-linux-gnu-gcc -Wall -Wextra -D_FORTIFY_SOURCE=2 -fpie -pie -Wl,-
> > z,relro,-z,now -O2 -mcpu=niagara2 -pipe -Wl,-O1 -Wl,--as-needed -o
> > cifs.upcall cifs.upcall.o data_blob.o asn1.o spnego.o -ltalloc -lkeyutils
> > -
> > lkrb5
> > collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
>
> It will really help if you are able to provide a self-contained way to
> reproduce this bug. Failing that, please could you capture the linker
> command line generated by sparc-unknown-linux-gnu-gcc and include it in
> the report, along with a compressed tarball of the cifs.upcall.o,
> data_blob.o, asn1.o and spnego.o objecy files.
/usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../sparc-unknown-linux-
gnu/bin/ld -plugin-opt=/usr/libexec/gcc/sparc-unknown-linux-gnu/6.4.0/lto-
wrapper -plugin-opt=-fresolution=/tmp/ccHxes2d.res -plugin-opt=-pass-through=-
lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-
opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m
elf32_sparc -dynamic-linker /lib/ld-linux.so.2 -relax -pie -o cifs.upcall /
usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../lib/Scrt1.o /usr/lib/
gcc/sparc-unknown-linux-gnu/6.4.0/../../../../lib/crti.o /usr/lib/gcc/sparc-
unknown-linux-gnu/6.4.0/crtbeginS.o -L/usr/lib/gcc/sparc-unknown-linux-gnu/
6.4.0 -L/usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../sparc-unknown-
linux-gnu/lib/../lib -L/usr/lib/gcc/sparc-unknown-linux-gnu/6.4.0/../../../../
lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/sparc-unknown-linux-gnu/
6.4.0/../../../../sparc-unknown-linux-gnu/lib -L/usr/lib/gcc/sparc-unknown-
linux-gnu/6.4.0/../../.. -z relro -z now -O1 --as-needed cifs.upcall.o
data_blob.o asn1.o spnego.o -ltalloc -lkeyutils -lkrb5 -lgcc --as-needed -
lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/
gcc/sparc-unknown-linux-gnu/6.4.0/crtendS.o /usr/lib/gcc/sparc-unknown-linux-
gnu/6.4.0/../../../../lib/crtn.o
The lto plugin part can be removed and has no effect. Again, removing the "-
pie" argument cures the crash.
The objects are attached.
Eike
--
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055
emlix – smart embedded open source
[-- Attachment #1.2: cifs-objects.tar --]
[-- Type: application/x-tar, Size: 51200 bytes --]
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)
2017-12-11 15:40 ` Rolf Eike Beer
@ 2017-12-12 1:04 ` Alan Modra
2017-12-12 7:56 ` Rolf Eike Beer
0 siblings, 1 reply; 6+ messages in thread
From: Alan Modra @ 2017-12-12 1:04 UTC (permalink / raw)
To: Rolf Eike Beer; +Cc: binutils
On Mon, Dec 11, 2017 at 04:40:39PM +0100, Rolf Eike Beer wrote:
> Am Montag, 11. Dezember 2017, 16:19:07 CET schrieb Nick Clifton:
> > Hi Rolf,
> >
> > Please could you open a bug report about this. The URL is:
> >
> > https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
>
> Will do tomorrow.
Please test a binutils master build containing git commit a9d44aad42
first. Your bug may already be fixed.
> The objects are attached.
No, just some of them are. :-( You're missing a bunch of libraries,
crtendS.o and crtn.o
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)
2017-12-12 1:04 ` Alan Modra
@ 2017-12-12 7:56 ` Rolf Eike Beer
0 siblings, 0 replies; 6+ messages in thread
From: Rolf Eike Beer @ 2017-12-12 7:56 UTC (permalink / raw)
To: binutils
[-- Attachment #1.1: Type: text/plain, Size: 1024 bytes --]
Alan Modra wrote:
> On Mon, Dec 11, 2017 at 04:40:39PM +0100, Rolf Eike Beer wrote:
> > Am Montag, 11. Dezember 2017, 16:19:07 CET schrieb Nick Clifton:
> > > Hi Rolf,
> > >
> > > Please could you open a bug report about this. The URL is:
> > > https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
> >
> > Will do tomorrow.
>
> Please test a binutils master build containing git commit a9d44aad42
> first. Your bug may already be fixed.
That's my bug from last time, of course I have this patch ;)
> > The objects are attached.
>
> No, just some of them are. :-( You're missing a bunch of libraries,
> crtendS.o and crtn.o
Oops ;)
Eike
--
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055
emlix – smart embedded open source
[-- Attachment #1.2: crtn.o --]
[-- Type: application/x-object, Size: 444 bytes --]
[-- Attachment #1.3: crtendS.o --]
[-- Type: application/x-object, Size: 848 bytes --]
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc)
2017-12-11 15:19 ` Nick Clifton
2017-12-11 15:40 ` Rolf Eike Beer
@ 2017-12-12 10:49 ` Rolf Eike Beer
1 sibling, 0 replies; 6+ messages in thread
From: Rolf Eike Beer @ 2017-12-12 10:49 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
Am Montag, 11. Dezember 2017, 16:19:07 CET schrieb Nick Clifton:
> Hi Rolf,
>
> Please could you open a bug report about this. The URL is:
>
> https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
https://sourceware.org/bugzilla/show_bug.cgi?id=22592
--
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055
emlix – smart embedded open source
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-12-12 10:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-11 14:28 binutils 2.29.1 segfaults when compiling cifs-utils with "-pie" on Gentoo Linux (sparc) Rolf Eike Beer
2017-12-11 15:19 ` Nick Clifton
2017-12-11 15:40 ` Rolf Eike Beer
2017-12-12 1:04 ` Alan Modra
2017-12-12 7:56 ` Rolf Eike Beer
2017-12-12 10:49 ` Rolf Eike Beer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).