Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1076426 > unrolled thread
| Started by | Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> |
|---|---|
| First post | 2021-10-18 09:50 +0200 |
| Last post | 2021-10-21 08:30 +0200 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#996752: clang-13: -static-pie AND -fuse-ld=lld produce unusable a.out Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> - 2021-10-18 09:50 +0200
Bug#996752: clang-13: -static-pie AND -fuse-ld=lld produce unusable a.out Sylvestre Ledru <sylvestre@debian.org> - 2021-10-18 10:00 +0200
Bug#996752: clang-13: -static-pie AND -fuse-ld=lld produce unusable a.out Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> - 2021-10-18 10:50 +0200
Bug#996752: clang-13: -static-pie AND -fuse-ld=lld produce unusable a.out Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> - 2021-10-21 02:00 +0200
Bug#996752: clang-13: -static-pie AND -fuse-ld=lld produce unusable a.out Sylvestre Ledru <sylvestre@debian.org> - 2021-10-21 08:30 +0200
| From | Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> |
|---|---|
| Date | 2021-10-18 09:50 +0200 |
| Subject | Bug#996752: clang-13: -static-pie AND -fuse-ld=lld produce unusable a.out |
| Message-ID | <D9vzd-8aS-13@gated-at.bofh.it> |
Package: clang-13 Version: 1:13.0.0-5 Severity: normal X-Debbugs-Cc: 996659@bugs.debian.org Dear Maintainer, The following transcript should be self-explanatory. gcc-11 also procudes unusable a.out with -static-pie as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996659 This issue could be a duplicate of #996659 but I am unsure. This could also be an issue of lld-13 instead of clang-13... $ clang-13 -g -static-pie -fPIE hello.c $ ./a.out hello world! $ clang-13 -g -fuse-ld=lld -static-pie -fPIE hello.c $ ./a.out Segmentation fault $ ldd a.out statically linked $ gdb a.out GNU gdb (Debian 10.1-2) 10.1.90.20210103-git Reading symbols from a.out... (gdb) run Starting program: /home/ryutaroh/clang-test/a.out Program received signal SIGSEGV, Segmentation fault. 0x0000fffff7fd8210 in _dl_relocate_static_pie () (gdb) info stack #0 0x0000fffff7fd8210 in _dl_relocate_static_pie () #1 0x0000fffff7f8663c in __libc_start_main () #2 0x0000fffff7f864b8 in _start () (gdb) info local No symbol table info available. (gdb) quit A debugging session is active. Inferior 1 [process 530049] will be killed. Quit anyway? (y or n) y Best regards, Ryutaroh Matsumoto -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: arm64 (aarch64) Kernel: Linux 5.14.12-clang13 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN, TAINT_CRAP Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages clang-13 depends on: ii binutils 2.37-7 ii libc6 2.32-4 ii libc6-dev 2.32-4 ii libclang-common-13-dev 1:13.0.0-5 ii libclang-cpp13 1:13.0.0-5 ii libclang1-13 1:13.0.0-5 ii libgcc-11-dev 11.2.0-9 ii libgcc-s1 11.2.0-9 ii libllvm13 1:13.0.0-5 ii libobjc-11-dev 11.2.0-9 ii libstdc++-11-dev 11.2.0-9 ii libstdc++6 11.2.0-9 Versions of packages clang-13 recommends: ii llvm-13-dev 1:13.0.0-5 ii python3 3.9.2-3 Versions of packages clang-13 suggests: pn clang-13-doc <none> -- no debconf information
[toc] | [next] | [standalone]
| From | Sylvestre Ledru <sylvestre@debian.org> |
|---|---|
| Date | 2021-10-18 10:00 +0200 |
| Message-ID | <D9vIS-8e1-7@gated-at.bofh.it> |
| In reply to | #1076426 |
Hello It seems an upstream issue, not a packaging issue. Could you please report this bug upstream? Thanks Sylvestre Le 18/10/2021 à 09:39, Ryutaroh Matsumoto a écrit : > Package: clang-13 > Version: 1:13.0.0-5 > Severity: normal > X-Debbugs-Cc: 996659@bugs.debian.org > > Dear Maintainer, > > The following transcript should be self-explanatory. > gcc-11 also procudes unusable a.out with -static-pie as > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996659 > > This issue could be a duplicate of #996659 > but I am unsure. > This could also be an issue of lld-13 instead of clang-13... > > $ clang-13 -g -static-pie -fPIE hello.c > $ ./a.out > hello world! > $ clang-13 -g -fuse-ld=lld -static-pie -fPIE hello.c > $ ./a.out > Segmentation fault > $ ldd a.out > statically linked > $ gdb a.out > GNU gdb (Debian 10.1-2) 10.1.90.20210103-git > Reading symbols from a.out... > (gdb) run > Starting program: /home/ryutaroh/clang-test/a.out > > Program received signal SIGSEGV, Segmentation fault. > 0x0000fffff7fd8210 in _dl_relocate_static_pie () > (gdb) info stack > #0 0x0000fffff7fd8210 in _dl_relocate_static_pie () > #1 0x0000fffff7f8663c in __libc_start_main () > #2 0x0000fffff7f864b8 in _start () > (gdb) info local > No symbol table info available. > (gdb) quit > A debugging session is active. > > Inferior 1 [process 530049] will be killed. > > Quit anyway? (y or n) y > > Best regards, Ryutaroh Matsumoto > > -- System Information: > Debian Release: bookworm/sid > APT prefers testing > APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') > Architecture: arm64 (aarch64) > > Kernel: Linux 5.14.12-clang13 (SMP w/4 CPU threads; PREEMPT) > Kernel taint flags: TAINT_WARN, TAINT_CRAP > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages clang-13 depends on: > ii binutils 2.37-7 > ii libc6 2.32-4 > ii libc6-dev 2.32-4 > ii libclang-common-13-dev 1:13.0.0-5 > ii libclang-cpp13 1:13.0.0-5 > ii libclang1-13 1:13.0.0-5 > ii libgcc-11-dev 11.2.0-9 > ii libgcc-s1 11.2.0-9 > ii libllvm13 1:13.0.0-5 > ii libobjc-11-dev 11.2.0-9 > ii libstdc++-11-dev 11.2.0-9 > ii libstdc++6 11.2.0-9 > > Versions of packages clang-13 recommends: > ii llvm-13-dev 1:13.0.0-5 > ii python3 3.9.2-3 > > Versions of packages clang-13 suggests: > pn clang-13-doc <none> > > -- no debconf information > > _______________________________________________ > Pkg-llvm-team mailing list > Pkg-llvm-team@alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-llvm-team >
[toc] | [prev] | [next] | [standalone]
| From | Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> |
|---|---|
| Date | 2021-10-18 10:50 +0200 |
| Message-ID | <D9wvf-hN-3@gated-at.bofh.it> |
| In reply to | #1076429 |
Control: tags -1 + upstream Control: forwarded -1 https://bugs.llvm.org/show_bug.cgi?id=52201 From: Sylvestre Ledru <sylvestre@debian.org> > It seems an upstream issue, not a packaging issue. > Could you please report this bug upstream? Thank you for your quick response. I brought this to the upstream as above. Ryutaroh
[toc] | [prev] | [next] | [standalone]
| From | Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> |
|---|---|
| Date | 2021-10-21 02:00 +0200 |
| Message-ID | <DatEZ-2YK-1@gated-at.bofh.it> |
| In reply to | #1076435 |
Control: clone -1 -2 Control: reassign -2 clang-12 1:12.0.1-12 Control: retitle -2 -static-pie AND -fuse-ld=lld-12 produce unusable a.out The same symptom appears with clang-12 -static-pie AND -fuse-ld=lld-12 Best regards, Ryutaroh
[toc] | [prev] | [next] | [standalone]
| From | Sylvestre Ledru <sylvestre@debian.org> |
|---|---|
| Date | 2021-10-21 08:30 +0200 |
| Message-ID | <DazKq-6QM-3@gated-at.bofh.it> |
| In reply to | #1077055 |
Hello, Le 21/10/2021 à 01:51, Ryutaroh Matsumoto a écrit : > Control: clone -1 -2 > Control: reassign -2 clang-12 1:12.0.1-12 > Control: retitle -2 -static-pie AND -fuse-ld=lld-12 produce unusable a.out > > The same symptom appears with > clang-12 -static-pie AND -fuse-ld=lld-12Don't spend too much time on Debian. You should carry this information on the upstream bug tracker as it is an upstream issue. Cheers, Sylvestre
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web