[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2024-02-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |OBSOLETE
 CC|amodra at gmail dot com|

--- Comment #9 from Alan Modra  ---
I'm closing this as obsolete since 2.30 is very old, and there has been quite a
lot of work done in catching memory allocation failures.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2018-08-01 Thread awilfox at adelielinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

--- Comment #7 from A. Wilcox  ---
What is the best way to provide you with all linker input?  I could make a full
tarball of the builder chroot, but it would be many gigabytes, even compressed.
 The issue is, after all, trying to link nearly 4 GB of object files.

You can likely duplicate the issue yourself by making an Adélie chroot on an
x86 (or x86_64), installing build-tools, checking out packages.git, and then
building user/qt5-qtwebkit, but that is of course a lot of steps and would
require a significant amount of time.

Would shell access to a builder work?


As for the linker command line, please give me a few hours.  We are trying to
solve other issues on that builder right now (specifically
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84823 at the moment) and it is
tied up with that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2018-08-01 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

--- Comment #6 from Alan Modra  ---
I meant "is not as useful"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2018-08-01 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

Alan Modra  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #5 from Alan Modra  ---
Please do show the linker command line.  A ld bug report without the ld
invocation is as useful as it could be.

ld of course ought to exit after hitting OOM, but there are places where ld
ignores an error status and continues on.  One such place is the
bfd_gc_sections call in ldlang.c.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2018-08-01 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

--- Comment #4 from H.J. Lu  ---
(In reply to A. Wilcox from comment #3)
> Same result/output using that tree, though it seems to segfault more
> reliably now (instead of just quitting with Memory exhausted).

If you can provide ALL linker input, I will take a look.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2018-07-31 Thread awilfox at adelielinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

--- Comment #3 from A. Wilcox  ---
Same result/output using that tree, though it seems to segfault more reliably
now (instead of just quitting with Memory exhausted).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2018-07-31 Thread awilfox at adelielinux dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

--- Comment #2 from A. Wilcox  ---
Just another note before I try that patch.  It happened again, *with*
--no-keep-memory, and it printed the following output:


linking ../lib/libQt5WebKit.so.5.9.1
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
can not read symbols: Memory exhausted
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
.eh_frame/.stab edit: Memory exhausted
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.gnu.hash' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.dynsym' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.dynstr' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.gnu.version' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.gnu.version_r' not in
segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.rel.dyn' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.rel.plt' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.init' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.plt' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.plt.got' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.text' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.fini' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.rodata' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.eh_frame' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.init_array' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.ctors' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.dtors' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.jcr' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.data.rel.ro' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.dynamic' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.got' not in segment
/usr/lib/gcc/i586-foxkit-linux-musl/6.4.0/../../../../i586-foxkit-linux-musl/bin/ld:
libQt5WebKit.so.5.9.1: warning: allocated section `.data' not in segment
make[2]: *** [Makefile.api:101: ../lib/libQt5WebKit.so.5.9.1] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23470] ld.bfd occasionally segfaults after running out of memory on 32-bit x86

2018-07-31 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23470

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu  ---
Can you try

https://github.com/hjl-tools/binutils-gdb/tree/users/hjl/pr18028

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils