Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902991 - dev-db/sqlitestudio-3.4.4-r1 - collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
Summary: dev-db/sqlitestudio-3.4.4-r1 - collect2: fatal error: ld terminated with sign...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2023-03-24 22:44 UTC by Toralf Förster
Modified: 2024-10-09 12:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,20.50 KB, text/plain)
2023-03-24 22:44 UTC, Toralf Förster
Details
dev-db:sqlitestudio-3.4.3:20230324-201611.log.bz2 (dev-db:sqlitestudio-3.4.3:20230324-201611.log.bz2,16.02 KB, application/x-bzip)
2023-03-24 22:44 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,65.36 KB, application/x-bzip)
2023-03-24 22:44 UTC, Toralf Förster
Details
environment (environment,114.90 KB, text/plain)
2023-03-24 22:44 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,711 bytes, application/x-bzip)
2023-03-24 22:44 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.99 KB, application/x-bzip)
2023-03-24 22:44 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,43.55 KB, application/x-bzip)
2023-03-24 22:44 UTC, Toralf Förster
Details
sqlitestudio-3.4.4-r1:20240820-155754.log.xz (sqlitestudio-3.4.4-r1:20240820-155754.log.xz,47.81 KB, application/x-xz)
2024-08-20 16:35 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-03-24 22:44:46 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-rpath,. -Wl,-rpath,. -Wl,-rpath,.. -Wl,-rpath,../lib -shared -o libCsvExport.so ../../../build/csvexport.o ../../../build/qrc_csvexport.o ../../../build/qrc_qmake_qmake_qm_files.o
rm -f libCsvImport.so
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-rpath,. -Wl,-rpath,. -Wl,-rpath,.. -Wl,-rpath,../lib -shared -o libCsvImport.so ../../../build/csvimport.o ../../../build/qrc_csvimport.o ../../../build/qrc_qmake_qmake_qm_files.o
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error in ../../../build/qrc_qmake_qmake_qm_files.o(.eh_frame); no .eh_frame_hdr table will be created
make[1]: Entering directory '/var/tmp/portage/dev-db/sqlitestudio-3.4.3/work/sqlitestudio-3.4.3/output/build/Plugins/PdfExport'
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DPROJECT_MODULE_NAME=PdfExport -DPDFEXPORT_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../Plugins/PdfExport -I. -I../../../../SQLiteStudio3/coreSQLiteS
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[1]: *** [Makefile:236: ../../../SQLiteStudio/plugins/libCsvExport.so] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-j4-20230320-130004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.0
Python 3.10.10
Available Rust versions:
  [1]   rust-bin-1.68.1
  [2]   rust-1.68.1 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 17.0.6_p10 [openjdk-17]
3)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
*)	Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17]
5)	Eclipse Temurin JRE 8.362_p09 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-17 
  [3]   openjdk-bin-17 
  [4]   openjdk-jre-bin-8 
  [5]   openjdk-jre-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  (none found)

  HEAD of ::gentoo
commit 04792a4922d8f2f3f3ea2fc753182dc36b9917ec
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Mar 24 19:18:58 2023 +0000

    2023-03-24 19:18:58 UTC

emerge -qpvO dev-db/sqlitestudio
[ebuild  N    ] dev-db/sqlitestudio-3.4.3  USE="cups -cli -python -tcl -test" PYTHON_SINGLE_TARGET="python3_10 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2023-03-24 22:44:47 UTC
Created attachment 858869 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-03-24 22:44:48 UTC
Created attachment 858871 [details]
dev-db:sqlitestudio-3.4.3:20230324-201611.log.bz2
Comment 3 Toralf Förster gentoo-dev 2023-03-24 22:44:50 UTC
Created attachment 858873 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2023-03-24 22:44:51 UTC
Created attachment 858875 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-03-24 22:44:52 UTC
Created attachment 858877 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-03-24 22:44:55 UTC
Created attachment 858879 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-03-24 22:44:56 UTC
Created attachment 858881 [details]
temp.tar.bz2
Comment 8 onkobu 2023-04-28 17:50:43 UTC
Does the same host compile the previous version successfully? Segmentation fault in ld should preferrably be fixed in ld so it prints out a more meaningful error. Does it fail reproducible or change with different compiler or linker settings for the particular ebuild? (-O or so?)
Comment 9 Andreas Sturmlechner gentoo-dev 2023-10-21 18:54:09 UTC

*** This bug has been marked as a duplicate of bug 895704 ***
Comment 10 Andreas Sturmlechner gentoo-dev 2023-10-21 19:34:41 UTC
Undo sans segfault in the other bug.
Comment 11 Agostino Sarubbo gentoo-dev 2024-07-29 12:35:32 UTC
ci has reproduced this issue with version 3.4.4-r1 - Updating summary.
Comment 12 Agostino Sarubbo gentoo-dev 2024-07-29 12:38:21 UTC
Additionally I get:

[Mon Jul 29 14:32:53 2024] ld[2369]: segfault at 60 ip 00007a044329a947 sp 00007ffe19fc2500 error 4 in libbfd-2.42.0.gentoo-sys-devel-binutils-st.so[7a044324d000+c8000] likely on CPU 7 (core 7, socket 0)


maybe this is interesting for toolchain
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-09 17:05:03 UTC
I got `lto1: error: ../../../build/qrc_qmake_qmake_qm_files.o: file too short` when using LTO which makes me think it's a race.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-09 17:06:08 UTC
(In reply to Agostino Sarubbo from comment #12)
> Additionally I get:
> 
> [Mon Jul 29 14:32:53 2024] ld[2369]: segfault at 60 ip 00007a044329a947 sp
> 00007ffe19fc2500 error 4 in
> libbfd-2.42.0.gentoo-sys-devel-binutils-st.so[7a044324d000+c8000] likely on
> CPU 7 (core 7, socket 0)
> 
> 
> maybe this is interesting for toolchain

Can you give me a fresh build.log + emerge --info, and tell me if you can reproduce with -j1? Thanks.
Comment 15 Agostino Sarubbo gentoo-dev 2024-08-20 16:35:27 UTC
atm I can't reproduce the error  in the summary. I can reproduce a failure but not at 100% of times ( dunno if binutils version changed in the middle ). Attaching a fresh build log.
Comment 16 Agostino Sarubbo gentoo-dev 2024-08-20 16:35:31 UTC
Created attachment 900832 [details]
sqlitestudio-3.4.4-r1:20240820-155754.log.xz

sqlitestudio-3.4.4-r1:20240820-155754.log (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 17 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-21 04:07:13 UTC
How about with -j1?
Comment 18 Larry the Git Cow gentoo-dev 2024-10-09 12:52:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efcad109bf466b26305cb3cd6be714971d3c50c7

commit efcad109bf466b26305cb3cd6be714971d3c50c7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-09 12:52:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-09 12:52:36 +0000

    dev-db/sqlitestudio: build with -j1
    
    The build system is qmake so a pain to fix.
    
    Closes: https://bugs.gentoo.org/902991
    Closes: https://bugs.gentoo.org/924672
    Closes: https://bugs.gentoo.org/928736
    Closes: https://bugs.gentoo.org/941074
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/sqlitestudio/sqlitestudio-3.4.4-r1.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)